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.
Download this n8n workflow template and start using it instantly.
Automation Developers: Individuals responsible for maintaining mission-critical n8n workflows.
System Administrators: Users needing immediate notification when automated background processes fail.
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.
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.
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.Alert on Gmail and Alert on slack.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.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.To deploy this n8n workflow template and begin monitoring your automation:
Set error message n8n node to ensure the alert text meets your operational standards.myerrorwftemplate) from the dropdown list. This links the n8n trigger to your execution failures.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.
Automate single image posting to Instagram using this advanced n8n workflow. Includes media preparation, status checks, and failure notifications via n8n templates.

Deploy a comprehensive n8n workflow to create a Telegram customer service bot. This powerful n8n template handles scheduling via Google Calendar, pricing checks using Google Sheets, and internal knowledge base lookups using AI Agents and the MCP protocol.

Learn how to build a reliable SMS notification system using Textbelt and this customizable n8n workflow. Perfect for technical users needing instant message delivery.

Automate Stripe payment link creation instantly using an n8n workflow. Input product details via a simple form and generate a redirect link for instant payments. Explore this n8n template now.

Automate medical report interpretation using a powerful n8n workflow connected to local Ollama AI. This n8n node setup extracts PDFs, simplifies medical jargon, and securely emails results.









































