Classify Gmail with Google Gemini, label messages, and log triage to Sheets
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.
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.
- Read Triage Log (Google Sheets): uses Google Sheets
- If: checks a condition and branches into true / false
- Email Classification Agent (AI Agent): runs an AI agent, with model: Gemini Flash Model; output parser: Triage Schema
- Set Email Analysis Fields (Edit Fields (Set)): sets 14 fields: category, needsReply, priorityScore…
- Add Label in Gmail (Gmail): add labels
- Append to Sheets (Google Sheets): append
- If: checks a condition and branches into true / false
- Draft Reply Agent (AI Agent): runs an AI agent, with model: Gemini Reply Model
- Draft Email in Gmail (Gmail): work with draft
Services it uses
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)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Google Sheets
n8n-nodes-base.googleSheets - If
n8n-nodes-base.if - AI Agent
@n8n/n8n-nodes-langchain.agent - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Edit Fields (Set)
n8n-nodes-base.set - Gmail
n8n-nodes-base.gmail
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…