Centralized Workflow Failure Alert System - n8n Workflow

Use this essential n8n workflow template to manage execution errors. It uses the n8n Error Trigger to format detailed alerts and send instant notifications via Gmail and Slack.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

Automation Developers: Individuals responsible for maintaining mission-critical n8n workflows.
System Administrators: Users needing immediate notification when automated background processes fail.


  • n8n Users: Anyone looking to implement professional, reliable error handling across their entire n8n automation stack.

Overview

Silent workflow failures can lead to significant operational issues. This critical n8n workflow template solves the problem of unreliable monitoring by providing a single, centralized alert mechanism. Instead of relying on manual checks, this n8n automation leverages the specialized n8n Error Trigger node to listen for failures from any designated n8n workflow. It automatically compiles comprehensive details—such as the failing workflow's name and the direct execution link—and relays this information immediately via your preferred channel (Gmail or Slack). Utilizing this n8n template ensures operational stability and rapid response times, making your overall n8n implementation much more robust.

How it Works

This automation is initiated by the specialized n8n trigger designed for system monitoring, the Error Trigger n8n node. Unlike typical HTTP or schedule triggers, this n8n trigger only activates when a connected n8n workflow experiences an execution failure.


  1. Error Trigger Activation: The process begins when any monitored n8n workflow fails. The Error Trigger n8n node captures all relevant metadata about the failure (including the execution ID, the workflow name, and the error details).

  2. Data Formatting: The flow immediately proceeds to the Set error message n8n node. This essential n8n node uses expressions to construct a clear, actionable message. It dynamically pulls data like {{$json["workflow"]["name"]}} and the execution URL to give context to the alert.

  3. Multi-Channel Alerting: The formatted message is then passed to the chosen notification service. The example shows parallel paths for Alert on Gmail and Alert on slack.

  4. Gmail Notification: The Alert on Gmail n8n node sends an email where the subject line is set dynamically to the constructed error message, ensuring immediate visibility in the user's inbox.

  5. Alternative Slack Notification: The Alert on slack n8n node serves as an alternative or supplementary alerting method, pushing the error details directly to a team channel for collaborative resolution. This setup demonstrates the flexibility of this standard n8n workflow.

Installation Guide

To deploy this n8n workflow template and begin monitoring your automation:


  1. Import: Copy the provided JSON data and import it into your n8n instance via the 'New' menu > 'Import from JSON'.

  2. Credentials Setup: Configure the required credentials for the notification nodes (Gmail and Slack). Click on the respective notification n8n node, select 'Create New Credential', and follow the authentication steps.

  3. Customize Message (Optional): Review the Set error message n8n node to ensure the alert text meets your operational standards.

  4. Activate Error Handling: This is the crucial step. In every existing n8n workflow you wish to monitor, go to Settings > Error Handling and select 'Enable error workflow'. Then, choose this newly imported workflow (myerrorwftemplate) from the dropdown list. This links the n8n trigger to your execution failures.

  5. Activate Workflow: Save and activate this centralized error handling n8n workflow.

Node Details

This robust n8n workflow relies on core n8n node types for its functionality:

Error Trigger (n8n trigger):
Function: This is the starting n8n node for the workflow. It listens for execution failures from other configured workflows within the n8n instance.
Key Configuration: None required within the node itself; configuration occurs in the settings of the monitored n8n workflow.
Set error message (Set n8n node):
Function: Formats the incoming raw error data into a human-readable and actionable message.
Key Configuration: Uses an expression to define the message variable: =⚠️ Workflow {{$json["workflow"]["name"]}} failed to run! execution.
Alert on Gmail (Gmail n8n node):
Function: Sends an email notification to the specified recipient using the formatted message as the email subject.
Key Configuration: Subject field is dynamically set via expression: ={{ $json.message }}.
Alert on slack (Slack n8n node):
Function: Provides an alternative notification route, allowing the user to post the failure message directly to a Slack channel. It is provided as a common option in this n8n template.
Key Configuration: Requires connection credentials and channel selection.

Related n8n Workflows

Free

Nodes: 5 Nodes
Updated: December 26 2025
View all
Created by
Paul I
Paul I

Featured*