Smart email classifier & auto-responder with AI
Needs changesWhat this workflow does
This AI workflow has 22 nodes and runs on Gmail events. Along the way it connects Azure OpenAI Chat Model, Gmail, Telegram and Google Calendar.
How it runs
Trigger: On Gmail events.
- $INPUTS$ (Edit Fields (Set)): sets or maps fields
- Sentiment Analysis: scores sentiment with AI, with model: Azure OpenAI Chat Model
- Spam (Gmail): uses Gmail
- Important (Gmail): uses Gmail
- Promotion (Gmail): uses Gmail
- Notification (Gmail): uses Gmail
- Personal (Gmail): uses Gmail
- Call request (Gmail): uses Gmail
- Needs Reply (Gmail): uses Gmail
- Gmail: uses Gmail
…plus 5 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in Draft Reply (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
- Also check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll).
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Draft Reply (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (11)
- Sentiment Analysis
@n8n/n8n-nodes-langchain.sentimentAnalysis - Azure OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatAzureOpenAi - Gmail
n8n-nodes-base.gmail - AI Agent
@n8n/n8n-nodes-langchain.agent - Edit Fields (Set)
n8n-nodes-base.set - Gmail Tool
n8n-nodes-base.gmailTool - No Operation, do nothing
n8n-nodes-base.noOp - Telegram
n8n-nodes-base.telegram - Google Calendar Tool
n8n-nodes-base.googleCalendarTool - Gmail Trigger
n8n-nodes-base.gmailTrigger - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured
From the author
This n8n workflow automates email management by classifying incoming messages, drafting replies, and sending alerts—all powered by AI. Features 🚀 AI-Powered Email Categorization - Classifies emails into Spam, Important, Promotion, Notification, Personal,…