π§ Flowatch ποΈ analyze and diagnose n8n workflow errors via OpenAI and email
Needs changesNeeds changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.
What to replace before upgrading
| 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
What it does
π§ Analyze and Diagnose n8n Workflow Errors Automatically via OpenAI and Email !FlowatchLogodark.png(fileId:1137) !FloWatchScreenCap.png(fileId:1138) > β οΈ 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, automation engineers, and DevOps teams who want to automatically capture and analyze workflow errors, and receive professional HTML-styled diagnostics directly in their inbox. --- π₯ What problem does this solve? Manually troubleshooting failed workflows in n8n can be time-consuming. This template streamlines error detection by: - Capturing workflow failures using the Error Trigger node - Diagnosing root causes with the help of OpenAI - Sending a fully-formatted, human-readable HTML error report via email - Including practical resolutions and next-step suggestions This helps you or your team resolve issues faster and avoid repeated manual debugging. --- βοΈ What this workflow does - β‘ Triggers on any n8n workflow error - π¦ Extracts relevant error metadata including node, execution ID, and timestamps - π§ Sends error content to OpenAI for analysis and recommendations - π Generates an HTML email report with inline styles and clear formatting - π₯ Emails the result to a system administrator or support email --- π οΈ Setup 1. Install the OpenAI node in your self-hosted n8n instance. 2. Add your OpenAI API Key securely in credentials. 3. Configure the SMTP Email node with your email credentials. 4. Adjust the Error Trigger to monitor specific workflows or all workflows. 5. Set your preferred admin or dev email address in the final node. --- π§ How to customize this workflow to your needs - π§© Use a Set node to define your variables, such as: - Default admin email - Workflow filter (optional) - βοΈ Customize the prompt sent to OpenAI if you want deeper or more specific analysis - π¨ Modify the email HTML styles to match your brand or internal format - πΎ Add additional logging (e.g., to Airtable, Google Sheets, or Notion) for long-term error tracking --- π Sticky Note Title: Automated Error Reporter with AI-Powered Diagnosis Description: Captures any n8n error, sends it to OpenAI, and emails a beautiful HTML report to the administrator with steps to resolve the issue. Requires OpenAI credentials and SMTP configured.