İçeriğe geç
YENİPazar yeri ve trig8n Agent: geliştirdiğinizi satın; planlar ve değişiklikler siz görmeden önce test edilsin. Yeniliklere bak

Kütüphane / İzleme, Operasyon ve Olaylar

İzleme, Operasyon ve Olaylar

n8n iş akışı hatası uyarılarını Discord'a gönder ve Data Table'a kaydet

Üretimdeki bir iş akışı bunu hata iş akışı olarak kullandığında ve başarısız olduğunda çalışır; başarısız düğümü, hatayı ve yürütme bağlantısını Discord'a gönderir ve veri tablosuna bir satır kaydeder.

Ne yapar

## 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.

Adımlar

  1. On Workflow Error
  2. Test Alert (manual)
  3. Build Config
  4. Format Alert
  5. Post Alert to Discord
  6. Log Failure to Data Table
  7. Hand Off to Failure Triage

Benzer otomasyonlar