This workflow corresponds to n8n.io template #13197 — we link there as the canonical source.
This workflow follows the Error Trigger → Gmail recipe pattern — see all workflows that pair these two integrations.
The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"nodes": [
{
"id": "10963ed1-5a79-443b-82a7-0151c863576b",
"name": "Overview",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1232,
-800
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "2daef120-1c65-46ff-9226-a6b802cc6bd9",
"name": "Order intake",
"type": "n8n-nodes-base.stickyNote",
"position": [
-768,
-800
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "7e7aa3ff-60dc-47cb-9d87-059e47315a64",
"name": "Webhook - New Order",
"type": "n8n-nodes-base.webhook",
"position": [
-736,
-704
],
"parameters": {},
"typeVersion": 2
},
{
"id": "33d00f5e-593e-420c-a02b-0079ccbb0c37",
"name": "Validate Order",
"type": "n8n-nodes-base.code",
"position": [
-496,
-704
],
"parameters": {},
"typeVersion": 2
},
{
"id": "b69e3cef-44d7-4b7a-ad4c-f7c6f0eab52a",
"name": "IF - Valid Order",
"type": "n8n-nodes-base.if",
"position": [
-256,
-704
],
"parameters": {},
"typeVersion": 2
},
{
"id": "89ed09c6-8748-464f-9e57-00d592b0e039",
"name": "Format Validation Error",
"type": "n8n-nodes-base.code",
"position": [
-256,
-512
],
"parameters": {},
"typeVersion": 2
},
{
"id": "4ae44d47-9b7e-4f0c-8706-248434167e99",
"name": "Respond - Validation Error",
"type": "n8n-nodes-base.respondToWebhook",
"position": [
-16,
-512
],
"parameters": {},
"typeVersion": 1.1
},
{
"id": "f5ebae09-a199-4fb0-b89a-5641c40b2232",
"name": "Payment verification",
"type": "n8n-nodes-base.stickyNote",
"position": [
-16,
-800
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "25374fac-9d11-468d-964a-0df1c009e68a",
"name": "API - Verify Payment",
"type": "n8n-nodes-base.httpRequest",
"position": [
16,
-704
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "6392edc5-0eda-4bae-ba04-6867b219c6da",
"name": "IF - Payment OK",
"type": "n8n-nodes-base.if",
"position": [
256,
-704
],
"parameters": {},
"typeVersion": 2
},
{
"id": "3a3442bf-e139-4ecb-ad07-ad2e8b43c049",
"name": "Format Payment Failed",
"type": "n8n-nodes-base.code",
"position": [
256,
-512
],
"parameters": {},
"typeVersion": 2
},
{
"id": "c0b23edc-7ef1-447b-92f3-9d60d59cf3bb",
"name": "Respond - Payment Failed",
"type": "n8n-nodes-base.respondToWebhook",
"position": [
432,
-512
],
"parameters": {},
"typeVersion": 1.1
},
{
"id": "659351e9-36ff-4c1f-be8d-bc28785384f0",
"name": "Stock verification",
"type": "n8n-nodes-base.stickyNote",
"position": [
576,
-800
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "3e3d127c-5262-4c49-94a8-180c3988da57",
"name": "API - Check Stock",
"type": "n8n-nodes-base.httpRequest",
"position": [
608,
-704
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "3517f2c4-9df3-4149-9cbf-44013c870228",
"name": "IF - In Stock",
"type": "n8n-nodes-base.if",
"position": [
848,
-704
],
"parameters": {},
"typeVersion": 2
},
{
"id": "7b4e1a65-3b84-4614-822a-a71165bbd894",
"name": "Format Out of Stock",
"type": "n8n-nodes-base.code",
"position": [
848,
-512
],
"parameters": {},
"typeVersion": 2
},
{
"id": "38a41cfb-70ca-429f-a3c8-83d9a9009a5c",
"name": "Respond - Out of Stock",
"type": "n8n-nodes-base.respondToWebhook",
"position": [
1088,
-512
],
"parameters": {},
"typeVersion": 1.1
},
{
"id": "785142e8-88f1-4cb6-b2ea-dbd8440f72c1",
"name": "Order fulfillment",
"type": "n8n-nodes-base.stickyNote",
"position": [
1088,
-800
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "50f64b06-480f-423d-861d-240da6986d3b",
"name": "API - Reserve Inventory",
"type": "n8n-nodes-base.httpRequest",
"position": [
1120,
-704
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "efa37994-fbf9-432a-8ba9-88d224bffe6a",
"name": "API - Create Order",
"type": "n8n-nodes-base.httpRequest",
"position": [
1360,
-704
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "8a77bd60-598f-4510-ab95-d23e893fa792",
"name": "API - Generate Shipping",
"type": "n8n-nodes-base.httpRequest",
"position": [
1600,
-704
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "03cd9ba9-8ae9-4c89-a7b2-aaf23dc88f56",
"name": "Format Email",
"type": "n8n-nodes-base.code",
"position": [
1840,
-704
],
"parameters": {},
"typeVersion": 2
},
{
"id": "dc136064-1843-40ed-a366-75609a0c1722",
"name": "Notifications",
"type": "n8n-nodes-base.stickyNote",
"position": [
2080,
-800
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "32c99bb4-130b-4b76-9db4-6492d091dfa5",
"name": "Send Confirmation Email",
"type": "n8n-nodes-base.gmail",
"position": [
2112,
-704
],
"parameters": {},
"typeVersion": 2.1
},
{
"id": "71baf8d6-db31-4667-a7c1-83db0d9a1cfa",
"name": "Slack - Notify Team",
"type": "n8n-nodes-base.slack",
"position": [
2352,
-704
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "635e3050-5502-4d61-97e6-d268dccf789c",
"name": "Audit and response",
"type": "n8n-nodes-base.stickyNote",
"position": [
2672,
-800
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "06060e67-11df-41e6-8873-447baa4cc9db",
"name": "Prepare Audit Entry",
"type": "n8n-nodes-base.code",
"position": [
2704,
-704
],
"parameters": {},
"typeVersion": 2
},
{
"id": "e8ce5fc9-edc2-4cfd-a4bd-7d55a3223ff8",
"name": "API - Log Audit",
"type": "n8n-nodes-base.httpRequest",
"position": [
2944,
-704
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "24760e20-92fe-4d35-adb8-7f20e228375d",
"name": "Format Success",
"type": "n8n-nodes-base.code",
"position": [
2944,
-512
],
"parameters": {},
"typeVersion": 2
},
{
"id": "1f1cf588-e744-48cd-a5cd-f69ab03d964c",
"name": "Respond - Success",
"type": "n8n-nodes-base.respondToWebhook",
"position": [
3184,
-512
],
"parameters": {},
"typeVersion": 1.1
},
{
"id": "010b08f5-70cf-4b39-9f2f-4d768ff1744a",
"name": "Error handling",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1232,
352
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "19fcaba6-467b-4b68-836e-44a6d2eecebb",
"name": "Error Trigger",
"type": "n8n-nodes-base.errorTrigger",
"position": [
-1200,
464
],
"parameters": {},
"typeVersion": 1
},
{
"id": "2ecbb557-f82e-4f8a-bcb6-959f586aea0a",
"name": "Format Error",
"type": "n8n-nodes-base.code",
"position": [
-960,
464
],
"parameters": {},
"typeVersion": 2
},
{
"id": "2a196152-17f0-4073-baad-e3c779e4e9ef",
"name": "Slack - Error Alert",
"type": "n8n-nodes-base.slack",
"position": [
-720,
464
],
"parameters": {},
"typeVersion": 2.2
}
],
"connections": {
"Format Email": {
"main": [
[
{
"node": "Send Confirmation Email",
"type": "main",
"index": 0
}
]
]
},
"Format Error": {
"main": [
[
{
"node": "Slack - Error Alert",
"type": "main",
"index": 0
}
]
]
},
"Error Trigger": {
"main": [
[
{
"node": "Format Error",
"type": "main",
"index": 0
}
]
]
},
"IF - In Stock": {
"main": [
[
{
"node": "API - Reserve Inventory",
"type": "main",
"index": 0
}
],
[
{
"node": "Format Out of Stock",
"type": "main",
"index": 0
}
]
]
},
"Format Success": {
"main": [
[
{
"node": "Respond - Success",
"type": "main",
"index": 0
}
]
]
},
"Validate Order": {
"main": [
[
{
"node": "IF - Valid Order",
"type": "main",
"index": 0
}
]
]
},
"API - Log Audit": {
"main": [
[
{
"node": "Format Success",
"type": "main",
"index": 0
}
]
]
},
"IF - Payment OK": {
"main": [
[
{
"node": "API - Check Stock",
"type": "main",
"index": 0
}
],
[
{
"node": "Format Payment Failed",
"type": "main",
"index": 0
}
]
]
},
"IF - Valid Order": {
"main": [
[
{
"node": "API - Verify Payment",
"type": "main",
"index": 0
}
],
[
{
"node": "Format Validation Error",
"type": "main",
"index": 0
}
]
]
},
"API - Check Stock": {
"main": [
[
{
"node": "IF - In Stock",
"type": "main",
"index": 0
}
]
]
},
"API - Create Order": {
"main": [
[
{
"node": "API - Generate Shipping",
"type": "main",
"index": 0
}
]
]
},
"Format Out of Stock": {
"main": [
[
{
"node": "Respond - Out of Stock",
"type": "main",
"index": 0
}
]
]
},
"Prepare Audit Entry": {
"main": [
[
{
"node": "API - Log Audit",
"type": "main",
"index": 0
}
]
]
},
"Slack - Notify Team": {
"main": [
[
{
"node": "Prepare Audit Entry",
"type": "main",
"index": 0
}
]
]
},
"Webhook - New Order": {
"main": [
[
{
"node": "Validate Order",
"type": "main",
"index": 0
}
]
]
},
"API - Verify Payment": {
"main": [
[
{
"node": "IF - Payment OK",
"type": "main",
"index": 0
}
]
]
},
"Format Payment Failed": {
"main": [
[
{
"node": "Respond - Payment Failed",
"type": "main",
"index": 0
}
]
]
},
"API - Generate Shipping": {
"main": [
[
{
"node": "Format Email",
"type": "main",
"index": 0
}
]
]
},
"API - Reserve Inventory": {
"main": [
[
{
"node": "API - Create Order",
"type": "main",
"index": 0
}
]
]
},
"Format Validation Error": {
"main": [
[
{
"node": "Respond - Validation Error",
"type": "main",
"index": 0
}
]
]
},
"Send Confirmation Email": {
"main": [
[
{
"node": "Slack - Notify Team",
"type": "main",
"index": 0
}
]
]
}
}
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Receive orders via webhook with automatic payment verification, stock checking, inventory reservation, shipping label generation, confirmation emails, and Slack notifications.
Source: https://n8n.io/workflows/13197/ — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
Receive booking requests via webhook with automatic validation, duplicate detection, availability checking, confirmation emails, Google Calendar sync, and Slack notifications.
Receive inventory movements via webhook, validate data, update stock levels, and trigger automatic alerts when products need reordering.
Receive support tickets via webhook, categorize by priority, track SLA deadlines, notify your team on Slack, and send confirmation emails to customers.
This workflow is a fully automated AI matte painting generation system for VFX pipelines, designed to convert a single environment prompt into multiple cinematic background variations. It handles gene
Deliver coordinated messages through multiple channels with priority-based formatting, delivery tracking, and compliance logging.