Log workflow failures to Google Sheets and send Telegram alerts
Quick overview This companion error workflow captures failed n8n executions, logs each failure as a row in a Google Sheets “Error Log” tab, and sends a Telegram alert with the failing node, error details, and a link to the execution.
How it works Triggers when the assigned n8n workflow execution fails via the Error Trigger. Builds a standardized error record including the last executed node, error code/message, execution URL, and timestamp. Appends the error record as a new row in a Google Sheets tab named “Error Log.” Sends a Telegram message containing the formatted failure summary and next-step guidance. If the Google Sheets append fails, sends an alternate Telegram message noting that the Error Log row was not written.
Setup Add Google Sheets credentials and select the target spreadsheet in the Google Sheets append step. Create an “Error Log” sheet tab with columns: template, correlation_id, status, stage, summary, entity_type, entity_id, error_code, error_message, error_node, execution_url, and timestamp. Add Telegram credentials and set the target chat ID in both Telegram message steps. In the main workflow, set this workflow as its Settings → Error Workflow so failures are routed here.
Requirements Google Sheets OAuth and a Telegram bot
Customization Change the template value in Prepare Error Record to reuse it for another workflow. Swap Telegram for another chat or email node, and keep the second alert so a failed sheet write is never silent.
Additional info For anyone running a production n8n workflow who wants to hear about failures the per-node error branches can't catch: timeouts, crashes between nodes, and nodes with no error output. Need this built and run for your business? See the lead to reply system: https://signalnine.io/systems/lead-to-reply?utm_source=n8n-template&utm_medium=template&utm_campaign=growth-listings&utm_content=revenue-lifecycle-engine-errors-desc
Related Templates
Transform Gmail Newsletters into Insightful LinkedIn Posts Using OpenAI
Who Is This For? This workflow is perfect for content creators, marketers, and business professionals who receive regu...
Subscribe to new releases of a Github repository via Gmail
This is a very simple workflow that lets you subscribe to any github repository for the latest release (using n8n as ex...
AI Email Classifier & Auto-Delete for Gmail (SPAM/OFFER Cleaner)
This workflow is designed for freelancers, solopreneurs, and business owners who receive a high volume of irrelevant mes...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments