Smart Gmail inbox management with Gemini: Auto-label and draft replies
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.
Worth a look
- 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
What it does
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 labels and drafts a professional reply when follow-up is needed. How it works - Gmail Trigger starts the workflow whenever a new email arrives. - AI Classifier (Gemini or compatible model) analyzes the message, checks your previous conversations and sent emails, and assigns the correct Gmail label. - Smart rules ensure irrelevant messages are deleted or archived, while actionable ones are prepared for a response. - AI Draft Node creates a concise, friendly, and professional draft reply — stored safely in your Gmail drafts folder (never auto-sent). - Optional tools like CheckCalendar can suggest time slots for meetings automatically. Together, these steps make your inbox work for you: sorting, prioritizing, and drafting responses. Set up steps 1. Connect your Gmail account and ensure your label categories already exist. 2. Connect your Gemini (or other AI) credentials. 3. (Optional) Enable CheckCalendar for scheduling suggestions. 4. Adjust the labeling rules and prompt text to match your personal or business workflow. Requirements - Gemini account for LLM - Google OAuth2 credentials