Error Alert and Summarizer

This workflow automatically captures and analyzes errors within the workflow, utilizing the OpenAI GPT-4 model for intelligent diagnosis. It generates detailed error reports and promptly sends them via email to designated recipients. It can quickly identify error nodes, provide explanations for the causes of failures, and offer solutions, significantly reducing the difficulty of manual troubleshooting and improving error handling efficiency. This helps the team to stay updated on the system's operational status in real-time, ensuring the stability and reliability of automated processes.

Workflow Diagram
Error Alert and Summarizer Workflow diagram

Workflow Name

Error Alert and Summarizer

Key Features and Highlights

This workflow automatically captures and analyzes failed executions within n8n workflows. By integrating the OpenAI GPT-4 model, it intelligently diagnoses error causes, generates detailed error reports, and promptly sends formatted emails to designated recipients. It not only identifies the error nodes but also provides fault diagnosis, cause analysis, and solution recommendations, enabling intelligent and automated error handling.

Core Problems Addressed

  • Rapid and accurate capture of error information in n8n workflows
  • Automated analysis of complex error logs to reduce manual troubleshooting effort
  • Provision of professional error diagnosis and solution suggestions to shorten downtime
  • Real-time email notifications to relevant personnel to improve error response efficiency

Application Scenarios

  • Operation monitoring and fault alerting on the n8n automation platform
  • Automated error analysis and handling by DevOps teams
  • Automatic error summarization and report delivery in enterprise automation systems
  • Quick localization and resolution of automation process anomalies by technical support teams

Main Workflow Steps

  1. Error Trigger: Listen for and trigger on error execution events
  2. SET EMAIL: Configure recipient email addresses for error report delivery
  3. Get Failed Exec: Retrieve details of failed executions
  4. Remove Manual Exec: Filter out manually triggered executions to focus on automated run errors
  5. Extract Error Details: Extract error nodes and related execution metadata
  6. OpenAI Chat Model + Error Solver Agent: Invoke the OpenAI GPT-4 model to intelligently analyze error details and generate a diagnostic report (diagnosis, cause, solution)
  7. Set Diagnosis Fields: Structurally save diagnostic results and related execution information
  8. Generate Email: Create a formatted HTML error report email based on diagnostic data
  9. Send Gmail: Send the error report email to specified recipients via the Gmail node (supports TO, CC, BCC)

Involved Systems or Services

  • n8n: Automation platform and its API for data retrieval and control
  • OpenAI GPT-4: Natural language processing and intelligent diagnosis
  • Gmail: Sending formatted error report emails
  • Built-in nodes such as Code, Set, If, Error Trigger, etc., for data processing and workflow control

Target Users and Value

  • Users and maintainers of the n8n automation platform
  • DevOps engineers and automation operations teams
  • Enterprise automation process administrators
  • Technical support personnel requiring rapid response and localization of automation workflow errors
  • Teams aiming to leverage AI to enhance error handling efficiency and accuracy

This workflow significantly improves the speed of error detection, analysis, and feedback in n8n workflows, helping teams promptly grasp system health status, reduce business impact caused by failures, and achieve intelligent operation and maintenance management.

Error Alert and Summarizer