Monitor workflow errors via n8n API with Gemini analysis and Telegram alerts
Ready for 3.0What this workflow does
This AI workflow has 7 nodes and runs when another workflow fails (error workflow). Along the way it connects Google Gemini Chat Model and Telegram.
How it runs
Trigger: When another workflow fails (error workflow).
- Set Context (Edit Fields (Set)): sets 10 fields: n8n_instance_url, n8n_api_key, telegram_chat_id…
- Get Workflow Content (HTTP Request): calls an HTTP API
- AI Agent: runs an AI agent, with model: Google Gemini Chat Model; output parser: Structured Output Parser
- Send Telegram Notification (Telegram): uses Telegram
Services it uses
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 (7)
- Error Trigger
n8n-nodes-base.errorTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - AI Agent
@n8n/n8n-nodes-langchain.agent - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Telegram
n8n-nodes-base.telegram
From the author
Monitor n8n Workflow Errors with AI Diagnosis & Instant Telegram Alerts This n8n template automatically catches errors from any workflow on your instance, analyzes them with Google Gemini AI, and delivers a structured diagnostic report directly to your…