Library / Monitoring, Ops & Incidents
Monitoring, Ops & Incidents
Log n8n workflow failures to Google Sheets and alert on Telegram
Acts as the error workflow for other n8n workflows, appending each failure's details to Google Sheets for audit and sending a Telegram alert when a run fails.
What it does
## Log n8n workflow failures to Google Sheets and alert on Telegram (lead qualification companion) ### How it works This workflow acts as an error handler for another n8n workflow, capturing failures as soon as they occur. It builds a structured error record, appends it to Google Sheets for audit/history, then sends Telegram notifications. A secondary alert path is positioned below the main notification path to report issues related to logging or sheet availability. ### Setup steps - Configure this workflow as the error workflow for the relevant n8n workflow, such as the lead qualification companion workflow. - Connect Google Sheets credentials and select the spreadsheet and sheet where error rows should be appended. - Configure Telegram bot credentials and the target chat ID for both Telegram alert nodes. - Review the fields created in the error record so they match the columns in the Google Sheet, including template, correlation_id, status, and stage. ### Customization Adjust the Set node fields and the two Code nodes to include additional context such as workflow name, execution URL, lead ID, or severity. You can also customize the Telegram message format or route the sheet-down alert to a different chat.
The steps
- When Workflow Error Occurs
- Prepare Error Record
- Append Error to Sheets
- Create Failure Alert Message
- Send Failure Alert to Telegram
- Create Sheet Down Alert Message
- Send Sheet Down Alert to Telegram
Similar automations
Monitoring, Ops & IncidentsDetect silent n8n workflow failures with OpenAI diagnosis and Slack alerts17 stepsEmail AutomationMonitor workflow failures via the n8n API and send alerts by email and Slack9 stepsMonitoring, Ops & IncidentsVerify signed crypto prices via Verity MCP and alert Slack on failures17 stepsMonitoring, Ops & IncidentsCheck Website URLs Daily and Alert Telegram on Failures17 steps