{"product_id":"n8n-error-workflow-route-failures-by-severity-to-slack-sheets","title":"n8n Error Workflow: Route Failures by Severity to Slack \u0026 Sheets","description":"\u003ch3\u003eRoute n8n workflow errors by severity—send critical alerts to Slack, log bad inputs to Google Sheets, and forward transient failures to a webhook\u003c\/h3\u003e\n\u003cp\u003eIf your n8n automations fail, you shouldn’t sift through execution logs manually. This \u003cstrong\u003en8n Error Workflow\u003c\/strong\u003e automatically catches failures from other workflows, classifies each incident (credentials, bad-input, transient, or unclassified), and routes the right alerts to the right destination—\u003cstrong\u003eSlack\u003c\/strong\u003e, \u003cstrong\u003eGoogle Sheets\u003c\/strong\u003e, or your custom HTTP endpoint.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eTriggers on workflow failure\u003c\/strong\u003e whenever another workflow has this workflow configured as its \u003cem\u003en8n Error Workflow\u003c\/em\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eExtracts failure details\u003c\/strong\u003e such as workflow name, execution URL, failing node, error message, and HTTP status.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eClassifies severity from the error message and HTTP status\u003c\/strong\u003e, grouping incidents into:\n    \u003cul\u003e\n      \u003cli\u003e\n\u003cstrong\u003eCredentials\u003c\/strong\u003e (high urgency)\u003c\/li\u003e\n      \u003cli\u003e\n\u003cstrong\u003eBad-input\u003c\/strong\u003e (needs data cleanup)\u003c\/li\u003e\n      \u003cli\u003e\n\u003cstrong\u003eTransient\u003c\/strong\u003e (may resolve on retry)\u003c\/li\u003e\n      \u003cli\u003e\n\u003cstrong\u003eUnclassified\u003c\/strong\u003e (catch-all)\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRoutes alerts by type\u003c\/strong\u003e:\n    \u003cul\u003e\n      \u003cli\u003e\n\u003cstrong\u003eCredentials-related failures\u003c\/strong\u003e → posts a high-urgency \u003cstrong\u003eSlack\u003c\/strong\u003e message to your configured channel.\u003c\/li\u003e\n      \u003cli\u003e\n\u003cstrong\u003eBad-input failures\u003c\/strong\u003e → appends rows to \u003cstrong\u003eGoogle Sheets\u003c\/strong\u003e for later review.\u003c\/li\u003e\n      \u003cli\u003e\n\u003cstrong\u003eTransient and unclassified failures\u003c\/strong\u003e → sends a \u003cstrong\u003eJSON payload\u003c\/strong\u003e to your \u003cstrong\u003eHTTP endpoint\u003c\/strong\u003e (via the catch-all branch).\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eNotify your team immediately when \u003cstrong\u003eauthentication\/credential\u003c\/strong\u003e issues break critical automations (e.g., Slack, Gmail, APIs).\u003c\/li\u003e\n  \u003cli\u003eBuild a backlog of \u003cstrong\u003ebad-input\u003c\/strong\u003e errors in Google Sheets to improve validation and cleanup processes.\u003c\/li\u003e\n  \u003cli\u003eForward \u003cstrong\u003etransient\u003c\/strong\u003e failures to downstream incident handling (retry queues, monitoring, or ticketing) via an HTTP webhook.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eIntegrations \/ nodes used:\u003c\/strong\u003e code, switch, sticky note, Slack, Google Sheets, and optional branches for Gmail and Notion.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eConfiguration:\u003c\/strong\u003e set the monitored workflows’ \u003cem\u003eError Workflow\u003c\/em\u003e to this workflow.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eWebhook:\u003c\/strong\u003e use the environment variable \u003cstrong\u003eERROR_ALERT_WEBHOOK_URL\u003c\/strong\u003e (replace the default if needed).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eOptional enhancements:\u003c\/strong\u003e configure Gmail notifications or Notion incident pages (Gmail recipient + Notion database).\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45938211684531,"sku":"N8N-19029","price":51.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/uirRtEs9j-wCnuvpwk_a_8xd9azPH.png?v=1788340332","url":"https:\/\/buyflowscripts.com\/products\/n8n-error-workflow-route-failures-by-severity-to-slack-sheets","provider":"N8N Commerce","version":"1.0","type":"link"}