Classify and auto-reply to Gmail with OpenAI, Google Sheets RAG and Telegram
Ready for 3.0What this workflow does
This AI workflow has 34 nodes and runs on Gmail events (plus 1 other trigger). Along the way it connects Gmail, OpenAI, Telegram and Google Sheets.
How it runs
Trigger: On Gmail events (plus 1 other trigger).
- Email Classifier Agent (OpenAI): uses OpenAI
- Get row(s) in sheet (Google Sheets): uses Google Sheets
- Switch: routes items into 4 branches
- Send Demo Emails (Gmail): uses Gmail
- High Priority (Gmail): add labels
- Customer Support (Gmail): add labels
- Promotion (Gmail): add labels
- Finance/Billing (Gmail): add labels
- Creating Draft (OpenAI): uses OpenAI
- Creating Email (OpenAI): uses OpenAI, with 1 tool (FTAI Info)
…plus 21 more steps. See the full node list below.
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) (Gmail Trigger1).
Nodes used (9)
- Gmail
n8n-nodes-base.gmail - OpenAI
@n8n/n8n-nodes-langchain.openAi - Telegram
n8n-nodes-base.telegram - Gmail Trigger
n8n-nodes-base.gmailTrigger - Google Sheets
n8n-nodes-base.googleSheets - Manual Trigger
n8n-nodes-base.manualTrigger - Switch
n8n-nodes-base.switch - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Google Sheets Tool
n8n-nodes-base.googleSheetsTool
From the author
📨 Gmail Classifier —Classify emails using AI and automate responses This workflow delivers a complete, enterprise-grade Gmail automation system designed for high-volume teams. It classifies incoming emails, applies labels, generates AI-powered responses, and…