⚙️ Monitor workflow errors via n8n API with Gemini analysis and Telegram alerts

103 views · ⚙️ DevOps & CI/CD

Description

Monitor n8n Workflow Errors with AI Diagnosis & Instant Telegram Alerts

Ảnh đại diện workflow 1.png

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 Telegram — including error classification, root cause analysis, and specific fix steps.

If you manage multiple n8n workflows in production and want to stop manually debugging failures, this workflow is your always-on error watch.

How it works

How to use

  1. Connect credentials: Add your Google Gemini (googlePalmApi) credential to the Google Gemini Chat Model node, and your Telegram Bot credential to the Send Telegram Notification node.
  2. Configure Set Context: Open the Set Context node and update n8n_instance_url (your public n8n URL), n8n_api_key (from n8n → Settings → API), and telegram_chat_id.
  3. Activate this workflow.
  4. Link to other workflows: In each workflow you want to monitor, go to Settings → Error Workflow and select this workflow.

Requirements

Customizing this workflow


About the Author

Created by: Nguyễn Thiệu Toàn (Jay Nguyen)
Email: me@nguyenthieutoan.com
Website: nguyenthieutoan.com
Company: GenStaff (genstaff.net)
Socials (Facebook / X / LinkedIn): @nguyenthieutoan
More templates: n8n.io/creators/nguyenthieutoan

🔗 Nodes Used

HTTP Request, Telegram, AI Agent, Structured Output Parser, Google Gemini Chat Model

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup