Automate email responses with OpenAI and Telegram approval for Gmail
Ready for 3.0Ready 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.
- Check: Is Email in Inbox? (If): checks a condition and branches into true / false
- AI: Should We Reply? (AI Agent): runs an AI agent, with model: OpenAI Chat Model; output parser: Parse: Reply Decision JSON
- Check: Response Required? (If): checks a condition and branches into true / false
- AI: Generate Email Reply (AI Agent): runs an AI agent, with model: OpenAI Chat Model; output parser: Structured Output Parser
- Telegram: send and wait for a reply
- Check: Telegram Approved? (If): checks a condition and branches into true / false
- Send a message (Gmail): uses Gmail
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.
- Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (Trigger: New Email).
Nodes used (8)
- Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Gmail
n8n-nodes-base.gmail - Gmail Trigger
n8n-nodes-base.gmailTrigger - If
n8n-nodes-base.if - AI Agent
@n8n/n8n-nodes-langchain.agent - No Operation, do nothing
n8n-nodes-base.noOp - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Telegram
n8n-nodes-base.telegram
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…