Log n8n workflow errors to your REST API with Slack alerts and metrics
Ready for 3.0What this workflow does
This workflow has 24 nodes and runs when another workflow fails (error workflow). Along the way it connects Slack.
How it runs
Trigger: When another workflow fails (error workflow).
- Extract Metadata (Code): runs custom JavaScript code
- Extract Environment (Code): runs custom JavaScript code
- Classify Error (Code): runs custom JavaScript code
- Generate Error Hash (Code): runs custom JavaScript code
- API - Check Duplicate (HTTP Request): calls an HTTP API
- Is New Error? (If): checks a condition and branches into true / false
- Format Log Entry (Code): runs custom JavaScript code
- API - Save Log (HTTP Request): calls an HTTP API
- Alert Router (Switch): routes items into branches
- Format Critical Alert (Code): runs custom JavaScript code
…plus 11 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (7)
- Error Trigger
n8n-nodes-base.errorTrigger - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Switch
n8n-nodes-base.switch - Slack
n8n-nodes-base.slack - No Operation, do nothing
n8n-nodes-base.noOp
From the author
Track all n8n workflow failures with automatic error capture, severity classification, duplicate detection, Slack alerting, performance metrics, and log retention. WHAT IT DOES: Runs as an error sub-workflow attached to any workflow you want to monitor…