Automatic Error Reporting to Telegram - n8n Workflow

Learn how to use this robust n8n workflow template for automatic error reporting. Send instant Telegram notifications when any connected n8n workflow fails.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

n8n developers and administrators requiring immediate notification of system failures.
Users deploying critical n8n templates that must be monitored 24/7.


  • Anyone needing robust error handling using an n8n node dedicated to monitoring.

Overview

Maintaining reliable automation is crucial. This specialized n8n workflow addresses the pain point of silent failures by implementing a centralized error handling system. When any primary n8n workflow fails, this setup automatically intercepts the error, extracts critical debugging information (like the workflow name and execution URL), and immediately posts a succinct warning to a designated Telegram chat. This ensures that operators are instantly alerted to issues, minimizing downtime and guaranteeing the health of their overall n8n system. This is a must-have n8n workflow for running professional n8n automation.

How it Works

This sophisticated n8n workflow operates solely as an error handler, triggered by failure events elsewhere in your n8n environment.


  1. Error Interception: The process begins with the On Error n8n trigger node. This n8n trigger waits passively until a connected primary n8n workflow fails to execute successfully.

  2. Message Construction: Upon triggering, the Set message n8n node dynamically constructs the notification text. It pulls metadata provided by the error context, specifically the name of the failing n8n workflow and the URL to the exact execution log, formatting it into an easy-to-read alert message.

  3. Telegram Notification: Finally, the Telegram n8n node receives the constructed message and immediately broadcasts the failure alert to the specified Telegram chat ID, completing the error notification process. This robust n8n node ensures rapid communication.

Installation Guide

To use this centralized error handling n8n workflow template, follow these steps:


  1. Import: Copy the provided n8n workflow JSON and import it directly into your n8n instance.

  2. Credentials: Set up your Telegram Bot API credentials within the n8n credentials section. Ensure these credentials are linked to the Telegram n8n node.

  3. Configure Chat ID: In the Telegram n8n node, replace the placeholder Chat ID (e.g., 1688282582) with the ID of the group or user who should receive the error notifications. A sticky note in the n8n template guides this step.

  4. Connect Handler: In your main production n8n workflows, navigate to the workflow settings (Gear Icon) -> Error Workflow, and select the name of this newly imported error n8n workflow. This links the failure mechanism, ensuring this n8n trigger is activated upon error.

Node Details

This efficient n8n workflow uses the following essential n8n nodes:

On Error (n8n trigger):
Function: Serves as the dedicated n8n trigger for error handling. It activates only when another workflow explicitly calls it due to a runtime error.
Key Configuration: No specific parameters are required as it automatically receives the error context data from the failing execution.

Set message (n8n node):
Function: Prepares the content for the Telegram alert. It ensures the message is clear and actionable, using data provided by the n8n trigger.
Key Configuration: Uses dynamic expressions to embed the failing n8n workflow's name and the execution URL: =⚠️ Workflow \{{$json["workflow"]["name"]}}\ failed to run! execution.

Telegram (n8n node):
Function: Sends the formatted error message to the monitoring channel.
* Key Configuration: Requires a configured Telegram API credential and a specific Chat ID where the alerts are posted.

Related n8n Workflows

Free

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

Team lead @ n8n

Featured*