
n8n Error Analyzer
A monitoring sub-workflow that catches every failed run across my n8n automations, remembers each error it has seen, and uses AI to explain new failures and suggest a fix.
Challenge. The default n8n alert only says that something failed. Finding out why meant opening the execution and reading raw errors, and repeat failures buried the new ones. For client automations, slow diagnosis means the client notices first. Solution. Errors arrive through n8n's Error Trigger or a failure email. The workflow pulls the failed execution and workflow definition through the n8n API, builds a full error context and creates a fingerprint, logging each event to PostgreSQL. It then routes by history: new errors go to Claude for a structured analysis of cause and fix; repeat errors skip AI; reopened errors are flagged as a fix that didn't hold. Every path ends in a clear Telegram message. Stack. n8n on a VPS, n8n API, Claude with structured output, PostgreSQL, Gmail, Telegram. Result. Failures arrive with a cause and a suggested fix, not just an alert. Repeat errors stop flooding my phone, AI costs stay low, and every automation I build becomes more reliable.
Share
- Categories
- AI & AutomationsUncategorized
- Release Date
- 21/11/2026