Skip to main content

๐Ÿง  Flowatch ๐Ÿ‘๏ธ analyze and diagnose n8n workflow errors via OpenAI and email

Workflow preview

Workflow preview
100%
๐Ÿง  Flowatch ๐Ÿ‘๏ธ analyze and diagnose n8n workflow errors via OpenAI and email preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Analyze and Diagnose n8n Workflow Errors Automatically via OpenAI and Email ๏ธ This template is available on ๏ธ Cl...

Best for

  • DevOps automation workflows
  • AI Summarization automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.errortrigger, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.set, n8n-nodes-base.stickynote, n8n-nodes-base.if, n8n-nodes-base.n8n, n8n-nodes-base.code

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by RealSimple Solutions.

Original n8n.io source

1.1 Workflow description

Title
๐Ÿง  Flowatch ๐Ÿ‘๏ธ analyze and diagnose n8n workflow errors via OpenAI and email
Workflow name
๐Ÿง  Flowatch ๐Ÿ‘๏ธ analyze and diagnose n8n workflow errors via OpenAI and email

๐Ÿง  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, 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.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Error Trigger

Type / Role
n8n-nodes-base.errorTrigger - errorTrigger
Config choices
Version 1

Block 2 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 3 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.2

Block 4 - SET EMAIL

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 5 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Remove Manual Exec

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 8 - Get Failed Exec

Type / Role
n8n-nodes-base.n8n - n8n
Config choices
Version 1

Block 9 - Extract Error Details

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 10 - Error Solver Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.8

Block 11 - Set Diagnosis Fields

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 12 - Send Gmail

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 13 - Generate Email

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

3. Summary Table

Workflow ๐Ÿง  Flowatch ๐Ÿ‘๏ธ analyze and diagnose n8n workflow errors via OpenAI and email
Complexity intermediate
Nodes 13
Categories DevOps, AI Summarization
Author RealSimple Solutions
Published 17 Apr 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3595/3595.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does ๐Ÿง  Flowatch ๐Ÿ‘๏ธ analyze and diagnose n8n workflow errors via OpenAI and email do?

Analyze and Diagnose n8n Workflow Errors Automatically via OpenAI and Email ๏ธ This template is available on ๏ธ Cl...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your DevOps, AI Summarization use case.