Smart Gmail inbox management with Gemini: Auto-label and draft replies
Ready for 3.0What this workflow does
This AI workflow has 16 nodes and runs on Gmail events. Along the way it connects Gmail, Google Gemini Chat Model and Google Calendar.
How it runs
Trigger: On Gmail events.
- RemoveLabel (Gmail): remove labels
- AI Email Classifier (AI Agent): runs an AI agent, with model: Gemini; 2 tools (CheckSent, GetThread); output parser: Structured Output Parser
- If: checks a condition and branches into true / false
- TrashMessage (Gmail): add labels
- AddLabel (Gmail): add labels
- If: checks a condition and branches into true / false
- AI Draft Maker (AI Agent): runs an AI agent, with model: Gemini; 2 tools (GetThread, CheckCalendar); output parser: Structured Output Parser
- Create a draft (Gmail): work with draft
Services it uses
Other Google Gemini + Gmail templates (518) · Other Google Calendar + Gmail templates (239) · Other Google Gemini + Google Calendar templates (82)
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 Trigger).
Nodes used (8)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Gmail
n8n-nodes-base.gmail - Gmail Tool
n8n-nodes-base.gmailTool - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - If
n8n-nodes-base.if - Google Calendar Tool
n8n-nodes-base.googleCalendarTool - AI Agent
@n8n/n8n-nodes-langchain.agent
From the author
Keep your Gmail inbox organized and stress-free with this AI-powered workflow. Ideal for freelancers, small business owners, and productivity enthusiasts who receive a high volume of mixed emails. This template automatically sorts messages into predefined…