# Diagnose failed workflows with OpenAI and send throttled Telegram alerts

> 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 silently for lower-severity ones. How it works 1. Triggers whenever a connected n8n workflow execution fails via the Error Trigger. 2. Builds an error fingerprint from the workflow, failing node, and normalized error message, then throttles repeats during a configurable cooldown window using workflow static data. 3. If the error is not throttled, sends the failure context (message, description, truncated stack trace, and metadata) to an OpenAI chat model to return a structured diagnosis. 4. Formats an HTML-safe Telegram message including severity, likely cause, suggested fix, fix steps, and the number of suppressed repeats (or falls back to raw error details if the AI step fails). 5. Routes the alert by severity and sends it to Telegra

- **Domain**: `n8n-workflow-22869.n8n.io`
- **Provider**: n8n.io (https://n8n.io)
- **Kind**: workflow
- **Live-responds (last probe)**: None
- **Signed card**: False
- **Streaming**: False
- **Quality score**: 40%

## URLs
- Agent card: https://n8n.io/workflows/22869
- Page (HTML): https://agenstry.com/agents/n8n-workflow-22869.n8n.io
- Documentation: https://n8n.io/workflows/22869
