Библиотека / Мониторинг, эксплуатация и инциденты
Мониторинг, эксплуатация и инциденты
Отправка уведомлений о сбоях workflow n8n в Discord и запись в Data Table
Запускается, когда production-workflow с этим workflow в роли error workflow завершается с ошибкой. Отправляет в Discord имя упавшего узла, ошибку и ссылку на выполнение, а также сохраняет строку в data table.
Что делает
## 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.
Шаги
- On Workflow Error
- Test Alert (manual)
- Build Config
- Format Alert
- Post Alert to Discord
- Log Failure to Data Table
- Hand Off to Failure Triage
Похожие автоматизации
Мониторинг, эксплуатация и инцидентыДиагностика сбойных воркфлоу n8n с помощью Ollama и отправка отчёта в DiscordШагов: 16Мониторинг, эксплуатация и инцидентыНочная очистка каналов DiscordШагов: 10Мониторинг, эксплуатация и инцидентыУведомление пяти каналов при сбое рабочего процесса n8nШагов: 7Код, Git и инструменты разработчикаКлонирование рабочих процессов n8n между экземплярами через API n8nШагов: 33