⚙️ n8n Workflow Error Alerts with Google Sheets, Telegram, and Gmail

2,384 views · ⚙️ DevOps & CI/CD

Description

This n8n workflow provides a robust error handling and notification system for your n8n workflows. When an error occurs, it automatically logs the error details to Google Sheets, sends a notification to a Telegram channel, and dispatches an email alert, ensuring you’re immediately aware of any issues.

How it works

Set up steps

This setup will take approximately 10-15 minutes.

  1. Download the workflow: Download this workflow and import it into your n8n instance.
  2. Configure the Error Trigger: This trigger will automatically activate when an error occurs in any workflow. Make sure you set this workflow as the “Error Workflow” inside the workflows where you want to be alerted.
  3. Configure Log error (Google Sheets):
    • Connect your Google Sheets account credentials.
    • Specify the Google Sheet ID and the sheet name where you want to log the errors.
    • Ensure the sheet has appropriate headers (e.g., “Timestamp”, “Workflow Name”, “Error Message”, “Error Details”) to receive the data.
  4. Configure Edit Fields:
    • In the “Edit Fields” node, manually enter your Telegram chat ID. This is the ID of the chat or channel where you want to receive Telegram notifications.
    • Insert the recipient’s email address where you want to receive email alerts.
  5. Configure Notify in channel (Telegram):
    • Connect your Telegram account credentials.
    • Ensure the “Chat ID” field is correctly linked to the output from the “Edit Fields” node.
  6. Configure Send email (Gmail):
    • Connect your Gmail account credentials.
    • Ensure the “To” email address is correctly linked to the output from the “Edit Fields” node.
    • Customize the subject and body of the email to include relevant error information from the “Error Trigger” node.
  7. Test the workflow: To test, you can intentionally create an error in another simple n8n workflow. This error workflow should then trigger this error handling workflow, and you can verify if the log is updated, Telegram message is sent, and email is received. Make sure that the workflow you are testing has the “Error Workflow” selected in the workflow’s settings.

Requirements

Need help?

Feel free to contact us at 1 Node. Get instant access to a library of free resources we created.

🔗 Nodes Used

Google Sheets, Telegram, Gmail

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup