Templates / Diagnose failed workflows with OpenAI and send throttled Telegram alerts

Diagnose failed workflows with OpenAI and send throttled Telegram alerts

Ready for 3.0

by Israel · 20 views · created 2026-11-14 · DevOps, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 12 nodes and runs when another workflow fails (error workflow). Along the way it connects OpenAI Chat Model and Telegram.

How it runs

Trigger: When another workflow fails (error workflow).

  1. Configuration (Edit Fields (Set)): sets 4 fields: telegramChatId, cooldownMinutes, maxStackLines…
  2. Fingerprint and Throttle Check (Code): runs custom JavaScript code
  3. Should Send Alert? (If): checks a condition and branches into true / false
  4. Diagnose Error with AI (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model; output parser: Diagnosis Output Parser
  5. Record Suppressed Duplicate (Edit Fields (Set)): sets 4 fields: status, fingerprint, suppressedSinceLastAlert…
  6. Build Alert Message (Code): runs custom JavaScript code
  7. Is Critical or High? (If): checks a condition and branches into true / false
  8. Send Urgent Alert (Telegram): uses Telegram
  9. Send Silent Alert (Telegram): uses Telegram

Services it uses

OpenAI Chat ModelTelegram

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 (8)

From the author

Quick overview This workflow triggers on n8n workflow failures, fingerprints and throttles duplicate errors, uses an OpenAI chat model to generate a structured diagnosis, and sends formatted Telegram alerts that notify loudly for high/critical issues and…

Excerpt from Israel's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.