Templates / Draft Gmail reply drafts automatically with Google Gemini

Draft Gmail reply drafts automatically with Google Gemini

Ready for 3.0

by Kanishka Shrivastava ✓ · 70 views · created 2026-06-21 · Ticket Management, AI Summarization

Ready 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.

📬 Weekly n8n 3.0 breakage alerts, free

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.

  1. Set Configuration (Edit Fields (Set)): sets 2 fields: ai_drafted_label_id, needs_review_label_id
  2. Classify Email (Basic LLM Chain): sends a prompt to an LLM, with model: Classifier Chat Model; output parser: Classify Praser
  3. Route by Classification (Switch): routes items into 3 branches
  4. Generate Reply with Gemini (AI Agent): runs an AI agent, with model: Reply Chat Model
  5. Label Email as Needs Review (Gmail): add labels
  6. Save Reply as Gmail Draft (Gmail): work with draft
  7. Label Email as AI Drafted (Gmail): add labels

Services it uses

Google Gemini Chat ModelGmail

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)

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…

Excerpt from Kanishka Shrivastava 's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.