Automated error handling with email alerts & smart workflow deactivation
Ready for 3.0What this workflow does
This workflow has 17 nodes and runs when another workflow fails (error workflow). It uses only n8n's built-in nodes.
How it runs
Trigger: When another workflow fails (error workflow).
- Point Out Message & Node (Edit Fields (Set)): sets 2 fields: error_message, node_with_error
- Send Email: sends an email over SMTP
- If: checks a condition and branches into true / false
- Deactivate Workflow (n8n): deactivate
- Send Deactivation Email (Send Email): sends an email over SMTP
- Error Message & Node (Edit Fields (Set)): sets 2 fields: error_message, node_with_error
- Inform User & Wait for Response (Send Email): sends an email over SMTP
- User Deactivates (If): checks a condition and branches into true / false
- Deactivate n8n Workflow (n8n): deactivate
- Reroute Error Message (Send Email): sends an email over SMTP
…plus 4 more steps. See the full node list below.
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (6)
- Error Trigger
n8n-nodes-base.errorTrigger - Edit Fields (Set)
n8n-nodes-base.set - Send Email
n8n-nodes-base.emailSend - n8n
n8n-nodes-base.n8n - If
n8n-nodes-base.if - No Operation, do nothing
n8n-nodes-base.noOp
From the author
How it works This workflow automatically handles errors in your n8n workflows by: 1. Detecting when an error occurs and capturing the error details 2. Sending an email notification with the error message and affected node 3. Allowing you to deactivate the…