Triage Gmail inbox emails and draft AI replies with Claude Sonnet 4.6
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 11 nodes and runs on Gmail events. Along the way it connects Gmail and Anthropic Chat Model.
How it runs
Trigger: On Gmail events.
- Extract Email (Edit Fields (Set)): sets 6 fields: from, sender_email, subject…
- AI Triage (AI Agent): runs an AI agent, with model: Claude Sonnet 4.; output parser: Triage Schema
- Shape Triage Record (Edit Fields (Set)): sets 13 fields: from, sender_email, subject…
- Log to Triage Table (Data table): uses Data table
- Create Draft Reply (Gmail): work with draft
- Route by Urgency (Switch): routes items into 1 branches
- Send Urgent Alert (Gmail): uses Gmail
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 (9)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Edit Fields (Set)
n8n-nodes-base.set - AI Agent
@n8n/n8n-nodes-langchain.agent - Anthropic Chat Model
@n8n/n8n-nodes-langchain.lmChatAnthropic - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Data table
n8n-nodes-base.dataTable - Gmail
n8n-nodes-base.gmail - Switch
n8n-nodes-base.switch - No Operation, do nothing
n8n-nodes-base.noOp
From the author
Quick overview This workflow monitors a Gmail inbox for unread messages, uses Anthropic Claude to classify and summarize each email, auto-drafts an HTML reply in the same thread, logs the triage result to an n8n Data Table, and sends an urgent alert email for…