Library / Monitoring, Ops & Incidents
Monitoring, Ops & Incidents
Send Telegram alerts when other n8n workflows fail
Runs whenever another workflow hits an error and posts the error details to a configured Telegram group or channel.
What it does
### How to Use Telegram Error Notifier ### Step 1: Prerequisites 1. Telegram Bot: - Create a bot using [BotFather]({{ $env.API_BASE_URL }} and get the bot token. - Add the bot to your Telegram group/channel and note the chatId. 2. n8n Setup: - Ensure the Telegram and Error Trigger nodes are installed. --- ### Step 2: Configure the Workflow 1. Update Telegram Chat ID: - Open the Config node. - Replace telegramChatId with your actual Telegram group/channel ID: json return [ { "telegramChatId": 123456789, // Replace with your chat ID, format 123456789 or -123456789 } ]; 2. Set Telegram Bot Credentials: - Open the Telegram node. - Add your bot token in the Credentials section. 3. Activate the Workflow: - Toggle the Active switch to enable the workflow. --- ### Step 3: Set Up Error Workflow 1. Open the workflow where you want error notifications. 2. Go to Settings > Error Workflow. 3. Select Telegram Error Notifier from the dropdown. 4. Save the changes. --- ### Step 4: Test the Workflow 1. Trigger an error in the workflow. 2. Check your Telegram for the error notification, which includes: - Workflow name - Date and time - Execution URL - Last node executed - Error details --- ### Example Notification Workflow: My Workflow 1 Data & Time: 2023-10-27T12:34:56Z URL: {{ $env.WEBHOOK_URL }} Last Node: HTTP Request Error Detail: Failed to connect to the server. --- ### Troubleshooting - No Notifications: Ensure the workflow is active, and the bot token/chat ID is correct. - Permission Issues: Ensure the bot can send messages in your Telegram group/channel. ---
The steps
- Telegram
- Error Trigger
- Config
- Error Handler
Similar automations
Code, Git & Developer ToolsClone n8n Workflows Between Instances via the n8n API33 stepsMonitoring, Ops & IncidentsSend n8n Audits and Failed Workflows to InfluxDB24 stepsMonitoring, Ops & IncidentsAuto-Resume Disabled n8n Workflows5 stepsMonitoring, Ops & IncidentsReactivate Disabled n8n Workflows Automatically6 steps