This workflow corresponds to n8n.io template #6920 — 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 →
{
"name": "My Error workflow",
"tags": [],
"nodes": [
{
"id": "bb79f784-ce85-49ad-af14-666d8beee75c",
"name": "Sticky Note \u2014 Read Me",
"type": "n8n-nodes-base.stickyNote",
"position": [
-416,
96
],
"parameters": {
"width": 520,
"height": 320,
"content": "## Setup (read me)\n1) Open the Gmail node and connect credentials.\n2) Set the **To** field to your email or team list.\n3) Save this workflow, then in each target workflow go to **Options \u2192 Settings \u2192 Error workflow** and select this.\n\n### About the payload\nThis uses Error Trigger fields:\n- `{{$json[\"workflow\"][\"name\"]}}` / `{{$json[\"workflow\"][\"id\"]}}`\n- `{{$json[\"execution\"][\"id\"] || \"N/A\"}}`\n- `{{$json[\"execution\"][\"url\"] || \"N/A\"}}`\n- `{{$json[\"execution\"][\"lastNodeExecuted\"] || \"N/A\"}}`\n- `{{$json[\"execution\"][\"error\"][\"message\"]}}`\n\nFor trigger-time failures, execution fields may be missing\u2014email still sends with fallbacks."
},
"typeVersion": 1
},
{
"id": "6d160f0f-6637-42af-acef-52aaa8ceb2d7",
"name": "Error Trigger",
"type": "n8n-nodes-base.errorTrigger",
"position": [
144,
112
],
"parameters": {},
"typeVersion": 1
},
{
"id": "7b16e9f0-16e7-4ca0-9858-0c5b73e08d76",
"name": "Send a message",
"type": "n8n-nodes-base.gmail",
"position": [
528,
112
],
"parameters": {
"toList": "user@example.com",
"message": "A workflow failed.\\n\\nWorkflow: {{$json[\"workflow\"][\"name\"]}} ({{$json[\"workflow\"][\"id\"]}})\\nExecution ID: {{$json[\"execution\"][\"id\"] || \"N/A\"}}\\nLast node: {{$json[\"execution\"][\"lastNodeExecuted\"] || \"N/A\"}}\\nError: {{$json[\"execution\"][\"error\"][\"message\"]}}\\nExecution URL: {{$json[\"execution\"][\"url\"] || \"N/A\"}}",
"subject": "n8n: {{$json[\"workflow\"][\"name\"]}} (ID {{$json[\"workflow\"][\"id\"]}}) failed",
"resource": "message",
"additionalFields": {}
},
"typeVersion": 1
},
{
"id": "065d4139-3ed8-4d52-ba06-7964336fa2c9",
"name": "Sticky Note \u2014 Publishing",
"type": "n8n-nodes-base.stickyNote",
"position": [
416,
272
],
"parameters": {
"width": 420,
"height": 220,
"content": "## Publishing checklist\n- Keep this template **Free**.\n- No hardcoded secrets in HTTP nodes.\n- Description uses Markdown with **## headings**.\n- Leave detailed instructions here in sticky notes."
},
"typeVersion": 1
}
],
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "",
"connections": {
"Error Trigger": {
"main": [
[
{
"node": "Send a message",
"type": "main",
"index": 0
}
]
]
}
}
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Sends you an email (via Gmail) whenever any workflow that references this one fails. The message includes the workflow name/ID, execution URL, last node executed, and the error message.
Source: https://n8n.io/workflows/6920/ — 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.
This workflow sends an alert to the channel of your choice when an execution fails. Connect the tool where you want alerts to be sent (eg. Gmail, Slack, Teams, etc.) Save the workflow Turn on error no
This workflow creates a comprehensive error monitoring system for your n8n instance by automatically capturing workflow failures, logging them to Google Sheets, and sending immediate email notificatio
This n8n workflow provides a robust error handling and notification system for your n8n workflows. When an error occurs, it automatically logs the error details to Google Sheets, sends a notification
Report N8N Workflow Errors Directly To Your Email. Uses errorTrigger, stickyNote, gmail. Event-driven trigger; 4 nodes.
Error workflows are an important part of running workflows in production. Get alerts for errors directly in your inbox. Add your Gmail creds Add your target email Add this error workflow to other work