Templates / Triage and reply to Gmail emails with GPT-4.1 mini and Telegram

Triage and reply to Gmail emails with GPT-4.1 mini and Telegram

Ready for 3.0

by NodeFlow Studio ✓ · 0 views · created 2026-07-31 · Ticket Management, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 10 nodes and runs on Gmail events. Along the way it connects OpenAI Chat Model, Gmail and Telegram.

How it runs

Trigger: On Gmail events.

  1. Get Email from Gmail (Gmail): get
  2. AI Email Analysis Agent (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI GPT-4 Mini
  3. Parse AI Response (Code): runs custom JavaScript code
  4. Route by AI Decision (Switch): routes items into 3 branches
  5. Auto Reply via Gmail (Gmail): reply
  6. Label for Human Review (Gmail): add labels
  7. Label as Spam in Gmail (Gmail): add labels
  8. Send Telegram Notification (Telegram): uses Telegram

Services it uses

OpenAI Chat ModelGmailTelegram

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)

From the author

Quick overview This workflow monitors unread Gmail inbox messages, uses OpenAI GPT-4.1 mini to classify and summarize each email and decide a reply strategy, then either sends an automatic Gmail reply, labels messages for human review and notifies via…

Excerpt from NodeFlow Studio's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.