CV Evaluation - Error Handling

This workflow is designed to automatically monitor and handle errors within the workflow, promptly capturing issues that arise during the triggering and execution processes. It automatically sends detailed error notification emails via Gmail, which include error messages, stack traces, relevant workflow links, and complete error data in JSON format, helping to quickly locate and resolve issues. It supports flexible configuration of recipient email addresses and sender names, enhancing the readability of error notifications and effectively improving the stability and operational efficiency of the automated system.

Workflow Diagram
CV Evaluation - Error Handling Workflow diagram

Workflow Name

CV Evaluation - Error Handling

Key Features and Highlights

This workflow focuses on automatically capturing and handling errors within n8n workflows, including both trigger errors and execution errors. It sends detailed error notification emails via Gmail, containing error messages, stack traces, relevant workflow links, and the complete error data in JSON format. This facilitates rapid identification and troubleshooting of issues. The workflow supports flexible configuration of recipient email addresses and sender names, enhancing the readability and management efficiency of error notifications.

Core Problems Addressed

  • Automatically monitors trigger and execution errors in the main workflow.
  • Sends instant error notification emails to prevent missing critical error information.
  • Provides comprehensive error context and trace details to reduce troubleshooting time.
  • Supports a unified error handling process to improve workflow stability and operational efficiency.

Use Cases

  • Scenarios requiring stable operation and timely exception response in automated business processes.
  • Centralized error management and monitoring in multi-workflow collaborative environments.
  • Automated systems that notify team members of error details via email.
  • Suitable for development, operations, and QA teams needing rapid response and resolution of workflow errors.

Main Process Steps

  1. The Error Trigger node listens for error events (trigger and execution errors) from the main workflow.
  2. The Config node defines basic settings such as the base URL of the n8n instance, recipient email addresses, and sender name.
  3. The Constants node dynamically generates links and identifiers related to the error information.
  4. The If node determines the type of error (execution error or trigger error).
  5. Based on the error type, the HTML for Execution Error and HTML for Trigger Error nodes generate corresponding detailed HTML content describing the error.
  6. The KeepEitherOfHTMLs node merges the two types of error HTML outputs to ensure the email content is complete.
  7. The Merge node consolidates all error information and passes it to the Gmail node.
  8. The Gmail node sends the error notification email, with the subject and body containing detailed error information and workflow links.

Involved Systems or Services

  • n8n: The core automation platform responsible for triggering and executing workflows.
  • Gmail: Sends error notification emails securely via OAuth2 authentication to ensure email safety and reliability.

Target Audience and Value

  • Developers, operations personnel, and automation administrators using the n8n automation platform.
  • Teams aiming to enhance the stability of automated processes and accelerate error response times.
  • Business stakeholders who need timely email notifications of automation workflow exceptions.
  • Helps teams reduce business interruption risks caused by overlooked errors, improving operational efficiency and user satisfaction.