Automated error notifications with optional GPT-4o diagnostics via email
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
What this workflow does
This AI workflow has 6 nodes and runs when another workflow fails (error workflow). Along the way it connects OpenAI.
How it runs
Trigger: When another workflow fails (error workflow).
- Config - Set Fields (Edit Fields (Set)): sets 4 fields: fromEmail, toEmail, emailSubject…
- Use AI Analysis? (If): checks a condition and branches into true / false
- Analyze Error with AI (OpenAI): uses OpenAI
- Format Email Body (Edit Fields (Set)): sets 1 field: emailBody
- Send Email: sends an email over SMTP
Services it uses
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 (5)
- Error Trigger
n8n-nodes-base.errorTrigger - Send Email
n8n-nodes-base.emailSend - Edit Fields (Set)
n8n-nodes-base.set - OpenAI
@n8n/n8n-nodes-langchain.openAi - If
n8n-nodes-base.if
From the author
++Who’s it for++ This template is ideal for anyone who needs reliable, real-time visibility into failed executions in n8n. Whether you’re a developer, operator, founder, or part of a small team, this workflow helps you detect issues quickly without digging…