Automatic Error Notification System via Email - n8n Workflow

Set up reliable devops monitoring with this essential n8n workflow. Get instant Gmail notifications when any connected n8n workflow fails, detailing the error and execution data.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?


  • n8n developers and administrators needing reliable devops monitoring.

  • Teams running mission-critical n8n workflow automations.

  • Users looking for a pre-built n8n template for system health checks.

Overview

This automation is a critical component for production-ready n8n environments, designed to prevent silent failures. When a crucial n8n workflow encounters an issue—such as an API rate limit, invalid credentials, or unexpected data—it ensures that the relevant team is immediately notified. By designating this specific n8n workflow as the global error handler in your production automations, you establish robust monitoring.

This system leverages a specialized n8n trigger to capture detailed execution metadata and utilizes a Gmail n8n node to deliver a concise, actionable error report directly to your inbox. This setup is one of the most essential n8n templates for maintaining system stability and operational awareness, making it easy to track which specific n8n node failed.

How it Works

This error handler n8n workflow operates passively until triggered by a failure in another connected automation.


  1. Error Initiation: A separate, primary n8n workflow fails during execution (e.g., a key service returns an error).

  2. Trigger Activation: Instead of failing silently, the primary n8n workflow passes a complete error payload to the dedicated Error Trigger n8n node in this error handler automation.

  3. Data Extraction: The error handler workflow processes the input, extracting vital details including the failing workflow’s name, ID, execution URL, the last n8n node executed, and the specific error message.

  4. Notification Creation: The Send a message Gmail n8n node uses expressions to compile this data into a highly informative custom email subject and body.

  5. Delivery: The Gmail n8n node delivers the detailed error report to the designated recipient list, providing immediate visibility into the failed n8n workflow.

Installation Guide

To deploy this essential n8n template and link the n8n trigger to your production processes, follow these steps:


  1. Import Workflow: Import the n8n workflow JSON into your self-hosted or cloud n8n instance.

  2. Configure Gmail Credentials: Open the Send a message Gmail n8n node and set up or select your existing Gmail service credentials.

  3. Set Recipients: Update the placeholder To List parameter in the Gmail n8n node with your actual email address or team distribution list.

  4. Activate Handler: Save and activate this error handler n8n workflow.

  5. Link to Production Workflows (Crucial): For every primary n8n workflow you wish to monitor, navigate to that workflow’s Options → Settings → Error workflow and select the name of this newly imported automation. This ensures the Error Trigger n8n node is connected to handle exceptions.

Node Details

Error Trigger
Function: This specialized n8n trigger is the starting point for all error management in this n8n workflow. It monitors for failures reported by other linked n8n workflows, passing the failure context data downstream.
Key Configuration: No manual configuration is required on the n8n node itself; its activation is controlled by the Error workflow settings of other workflows.

Send a message (Gmail)
Function: This Gmail n8n node is responsible for formatting and sending the final notification email, turning the raw error payload into a readable alert.
Key Configuration: The subject and message body utilize dynamic n8n expressions (e.g., {{$json["workflow"]["name"]}}, {{$json["execution"]["error"]["message"]}}) to embed the exact name of the failed n8n workflow, the execution ID, and the specific error message, providing all necessary context in one alert.

Related n8n Workflows

Free

Nodes: 3 Nodes
Updated: December 26 2025
View all
Created by

Featured*