Route workflow error incidents to Slack alerts with a Notion incident log
Ready for 3.0What this workflow does
This workflow has 21 nodes and runs when another workflow fails (error workflow) (plus 1 other trigger). Along the way it connects Notion and Slack.
How it runs
Trigger: When another workflow fails (error workflow) (plus 1 other trigger).
- Set Error Notification Config (Edit Fields (Set)): sets 6 fields: notion_database_id, slack_channel_id, minimum_slack_severity…
- Retrieve Open Incidents (Notion): get many (database page)
- Clean Error Details (Code): runs custom JavaScript code
- Craft Digest Message (Code): runs custom JavaScript code
- Classify Error Severity (Code): runs custom JavaScript code
- Check Digest Transmission (If): checks a condition and branches into true / false
- Build Incident Info (Code): runs custom JavaScript code
- Deliver Daily Digest to Slack (Slack): uses Slack
- Search Existing Incidents (Notion): get many (database page)
- Check Incident Exists (If): checks a condition and branches into true / false
…plus 7 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.
Nodes used (8)
- Error Trigger
n8n-nodes-base.errorTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - Notion
n8n-nodes-base.notion - If
n8n-nodes-base.if - Slack
n8n-nodes-base.slack - No Operation, do nothing
n8n-nodes-base.noOp - Schedule Trigger
n8n-nodes-base.scheduleTrigger
From the author
Quick overview This workflow captures n8n workflow execution errors, classifies and deduplicates them, logs incidents to a Notion database, and routes high-severity alerts to a Slack channel, with an optional daily Slack digest of open incidents. How it works…