Templates / Automate email responses with OpenAI and Telegram approval for Gmail

Automate email responses with OpenAI and Telegram approval for Gmail

Ready for 3.0

by Roshan Ramani ✓ · 1,606 views · created 2025-07-15 · Ticket Management, AI Chatbot

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-10-19.

What this workflow does

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

How it runs

Trigger: On Gmail events.

  1. Check: Is Email in Inbox? (If): checks a condition and branches into true / false
  2. AI: Should We Reply? (AI Agent): runs an AI agent, with model: OpenAI Chat Model; output parser: Parse: Reply Decision JSON
  3. Check: Response Required? (If): checks a condition and branches into true / false
  4. AI: Generate Email Reply (AI Agent): runs an AI agent, with model: OpenAI Chat Model; output parser: Structured Output Parser
  5. Telegram: send and wait for a reply
  6. Check: Telegram Approved? (If): checks a condition and branches into true / false
  7. Send a message (Gmail): uses Gmail

Services it uses

GmailOpenAI Chat ModelTelegram

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.

  • Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (Trigger: New Email).

Nodes used (8)

From the author

Overview An intelligent email automation workflow that revolutionizes how you handle email responses. This sophisticated system monitors your Gmail inbox, uses AI to determine which emails require replies, generates professional responses, and sends them only…

Excerpt from Roshan Ramani'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.