Get plain-language diagnoses when an automation fails
When a workflow breaks, a model reads the error, suggests a likely cause and fix, and sends one alert per problem instead of a flood of repeats.
The use case
Teams that run many automations find out about failures from a wall of raw error messages. A published n8n template catches any connected workflow failure, builds a fingerprint from the workflow, node and error text, and mutes repeats for a set cooldown. For new errors it sends the details to an OpenAI model that returns a severity rating, a probable reason and repair steps, and posts a formatted Telegram message, loud for serious issues and silent for minor ones. If the model call fails, the raw error is sent instead. A person applies any fix; the model only explains, so it never edits workflows itself.
Example workflow
- Create a dedicated error workflow and set it as the error handler on each automation you want watched.
- Fingerprint each error from the workflow name, failing step and normalized message, and suppress repeats during a cooldown period.
- Send the trimmed error details to a model asking for a severity rating, a probable reason and repair steps.
- Post the diagnosis to a chat channel, noisy for high severity and silent for low, with a count of suppressed repeats.
- The workflow owner reads the message, makes the fix themselves, and tunes the prompt with details of their own setup.
Tools
- n8n
- OpenAI
- Telegram
Risks and guardrails
- Error text can contain customer data or keys; trim it before sending to a model.
- A confident but wrong diagnosis wastes time; treat it as a hint and read the actual error.
- Too long a cooldown can hide a growing problem; review suppressed counts.
Sources
Written by Agents Lookup. Credits and official pages for the tools this use case names:
- n8n template: diagnose failed workflows with alerts: n8n.io/workflows/22869
- n8n MCP server (official page): docs.n8n.io/connect/connect-to-n8n-mcp-server (checked 2026-11-09)
- Codex Skills Catalog (official page): github.com/openai/skills (checked 2026-11-09)