Templates / Classify Gmail with Google Gemini, label messages, and log triage to Sheets

Classify Gmail with Google Gemini, label messages, and log triage to Sheets

Ready for 3.0

by iamvaar ✓ · 11 views · created 2026-08-09 · 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-10-19.

What this workflow does

This AI workflow has 13 nodes and runs on Gmail events. Along the way it connects Gmail, Google Sheets and Google Gemini Chat Model.

How it runs

Trigger: On Gmail events.

  1. Read Triage Log (Google Sheets): uses Google Sheets
  2. If: checks a condition and branches into true / false
  3. Email Classification Agent (AI Agent): runs an AI agent, with model: Gemini Flash Model; output parser: Triage Schema
  4. Set Email Analysis Fields (Edit Fields (Set)): sets 14 fields: category, needsReply, priorityScore…
  5. Add Label in Gmail (Gmail): add labels
  6. Append to Sheets (Google Sheets): append
  7. If: checks a condition and branches into true / false
  8. Draft Reply Agent (AI Agent): runs an AI agent, with model: Gemini Reply Model
  9. Draft Email in Gmail (Gmail): work with draft

Services it uses

GmailGoogle SheetsGoogle Gemini Chat Model

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 Youtube Video: https://youtu.be/Bie6K1odgrEhttps://youtu.be/Bie6K1odgrE This workflow monitors unread Gmail inbox messages, uses Google Gemini to classify and score each email, applies a corresponding Gmail label, logs the triage details to…

Excerpt from iamvaar'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.