Draft Gmail reply drafts automatically with Google Gemini
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-12-01.
What this workflow does
This AI workflow has 11 nodes and runs on Gmail events. Along the way it connects Google Gemini Chat Model and Gmail.
How it runs
Trigger: On Gmail events.
- Set Configuration (Edit Fields (Set)): sets 2 fields: ai_drafted_label_id, needs_review_label_id
- Classify Email (Basic LLM Chain): sends a prompt to an LLM, with model: Classifier Chat Model; output parser: Classify Praser
- Route by Classification (Switch): routes items into 3 branches
- Generate Reply with Gemini (AI Agent): runs an AI agent, with model: Reply Chat Model
- Label Email as Needs Review (Gmail): add labels
- Save Reply as Gmail Draft (Gmail): work with draft
- Label Email as AI Drafted (Gmail): add labels
Services it uses
Other Google Gemini + Gmail templates (518)
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.
Nodes used (8)
- Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - AI Agent
@n8n/n8n-nodes-langchain.agent - Gmail
n8n-nodes-base.gmail - Gmail Trigger
n8n-nodes-base.gmailTrigger - Edit Fields (Set)
n8n-nodes-base.set - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Switch
n8n-nodes-base.switch
From the author
Quick overview This workflow watches for new Gmail messages, uses Google Gemini to draft a concise reply based on the email content, and saves the response as a Gmail draft in the original thread for you to review before sending. How it works 1. Triggers…