Templates / 🧠 Flowatch πŸ‘οΈ analyze and diagnose n8n workflow errors via OpenAI and email

🧠 Flowatch πŸ‘οΈ analyze and diagnose n8n workflow errors via OpenAI and email

Needs changes

by RealSimple Solutions βœ“ Β· 1,209 views Β· created 2025-04-17 Β· DevOps, AI Summarization

Needs 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.0Replace 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)

OpenAI Chat ModelStructured Output ParserAI AgentGmail

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.

View the original on n8n.io β†’ Check your own copy

Get the weekly β€œwhat broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.