n8n error alerts that don't spam you: Error Trigger + dedupe (n8n 2.x)
说明与用途
在 n8n 中实现了错误工作流,每次失败仅发送一次警报,并在 30 分钟内抑制重复警报,且需要在 2.x 版本中发布工作流。
问题
n8n does not notify when a workflow fails unless configured, leading to repeated alerts for the same error.
结果
Implemented a single‑alert error workflow that deduplicates repeated failures within a 30‑minute window and requires publishing in n8n 2.x to function.
工作流
- Create a workflow named "Error alert router".
- Add an Error Trigger node to receive failure details.
- Add a Code node that formats the message and implements deduplication using static data.
- Add an alert node (Slack, Discord, Telegram, or Send Email).
- Publish the error workflow (must be active in n8n 2.x).
- Configure each workflow’s settings to point to the "Error alert router" error workflow.
- Test by creating a throwaway workflow that throws an error and executing it via webhook.
证据
n8n doesn't tell you when a workflow fails unless you ask it to.
In n8n 2.x the error workflow must be published (active). We tested this on 2.40.6.
After publishing, the same failure produced exactly one alert, and two identical follow-up failures were suppressed.
- 记录日期: 2026-10-15T17:55:59.964Z