Library / Monitoring, Ops & Incidents
Monitoring, Ops & Incidents
Send n8n workflow failure alerts to Discord and log them in Data Table
Runs when a production workflow using it as the error workflow fails, posting the failing node, error and execution link to Discord and saving a row to a data table.
What it does
## Send n8n workflow failure alerts to Discord and log them to a data table ### Who's it for Anyone running n8n who wants to know within seconds when a production workflow fails, with enough detail to act before opening the editor. ### How it works 1. Set this workflow as the Error workflow of your other workflows (Workflow Settings). It fires when one of them fails a production run. Manual test runs never trigger it. 2. Build Config holds the time zone used in alerts. 3. Format Alert builds one message: workflow, failing node, error, detail, mode, time and a link to the execution. 4. Post Alert to Discord sends it with 3 retries. Log Failure to Data Table records it for later reporting (fail-soft). 5. Optional: Hand Off to Failure Triage passes the failure to an AI triage workflow without waiting. It sits lowest so it runs last and is fail-soft, so the alert never depends on AI. ### Setup - A Discord webhook credential (channel settings > Integrations > Webhooks) - A data table named workflow_failures with text columns workflow, failed_node, error, mode, execution_url. Select it in Log Failure to Data Table. - Set N8N_EDITOR_BASE_URL so execution links open your editor - Run Test Alert (manual) to check delivery ### Customization Swap the Discord node for Slack, Telegram or email, or change the time zone in Build Config. For AI diagnosis, import the companion template *Diagnose failed n8n workflows with a local Ollama model* and select it in the hand-off node. Otherwise delete that node.
The steps
- On Workflow Error
- Test Alert (manual)
- Build Config
- Format Alert
- Post Alert to Discord
- Log Failure to Data Table
- Hand Off to Failure Triage
Similar automations
Monitoring, Ops & IncidentsDiagnose failed n8n workflows with Ollama and post triage to Discord16 stepsMonitoring, Ops & IncidentsSend Workflow Failure Alerts to Five Channels7 stepsMonitoring, Ops & IncidentsSend n8n Failure Notifications to Five Channels9 stepsMonitoring, Ops & IncidentsSet Up Global n8n Error Handling with Gmail Alerts12 steps