Email AI Agent (with step by step video)
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 9 nodes and runs on Gmail events. Along the way it connects Gmail, OpenAI Chat Model and Telegram.
How it runs
Trigger: On Gmail events.
- Get Knowledge Base Data (Data table): get
- Get Gmail Labels List (Gmail): work with label
- Aggregate: combines items into one
- Email Categorization AI Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 3 tools (Create a draft in Gmail, Add label to message in Gmail, Send a text message in Telegram)
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) (New Email Trigger).
Nodes used (8)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Data table
n8n-nodes-base.dataTable - Gmail
n8n-nodes-base.gmail - Aggregate
n8n-nodes-base.aggregate - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Gmail Tool
n8n-nodes-base.gmailTool - Telegram Tool
n8n-nodes-base.telegramTool
From the author
Video Introduction Want to automate your inbox or need a custom workflow? 📞 Book a Call | 💬 DM me on Linkedin --- What This Workflow Does This AI-powered email assistant automatically processes incoming Gmail messages, categorizes them, adds appropriate…