🧠 Flowatch 👁️ analyze and diagnose n8n workflow errors via OpenAI and email
Needs changesWhat this workflow does
This AI workflow has 11 nodes and runs when another workflow fails (error workflow). Along the way it connects OpenAI Chat Model and Gmail.
How it runs
Trigger: When another workflow fails (error workflow).
- SET EMAIL (Edit Fields (Set)): sets 3 fields: TO, CC, BCC
- Get Failed Exec (n8n): get (execution)
- Remove Manual Exec (If): checks a condition and branches into true / false
- Extract Error Details (Code): runs custom JavaScript code
- Error Solver Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; output parser: Structured Output Parser
- Set Diagnosis Fields (Edit Fields (Set)): sets 13 fields: error.diagnosis, error.cause, error.resolution…
- Generate Email (Code): runs custom JavaScript code
- Send Gmail (Gmail): uses Gmail
Services it uses
Other OpenAI + Gmail templates (1,623)
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in Error Solver Agent (v1.8): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
Published 2025 — 19% of 2025 templates need changes for 3.0. See how template age affects 3.0 readiness →
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Error Solver Agent (v1.8) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (9)
- Error Trigger
n8n-nodes-base.errorTrigger - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - n8n
n8n-nodes-base.n8n - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - Gmail
n8n-nodes-base.gmail
From the author
🧠 Analyze and Diagnose n8n Workflow Errors Automatically via OpenAI and Email > ⚠️ This template is available on ☁️ Cloud & 🖥️ self-hosted n8n instances with the OpenAI node enabled. --- 👤 Who is this for? This workflow is designed for n8n developers,…