Send workflow failure alerts to Discord and log them in a data table
Ready for 3.0What this workflow does
This workflow has 7 nodes and runs when another workflow fails (error workflow) (plus 1 other trigger). Along the way it connects Discord.
How it runs
Trigger: When another workflow fails (error workflow) (plus 1 other trigger).
- Build Config (Edit Fields (Set)): sets 1 field: timezone
- Hand Off to Failure Triage (Execute Sub-workflow): calls another n8n workflow
- Format Alert (Code): runs custom JavaScript code
- Post Alert to Discord (Discord): send legacy (webhook)
- Log Failure to Data Table (Data table): insert (row)
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 (7)
- Error Trigger
n8n-nodes-base.errorTrigger - Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - Discord
n8n-nodes-base.discord - Data table
n8n-nodes-base.dataTable - Execute Sub-workflow
n8n-nodes-base.executeWorkflow
From the author
Quick overview This workflow catches n8n production workflow failures, formats a readable error alert, posts it to Discord via a webhook, and logs key details (workflow, node, error, mode, execution URL) to an n8n Data Table for later reporting. How it works…