Templates / Triage Gmail inbox emails and draft AI replies with Claude Sonnet 4.6

Triage Gmail inbox emails and draft AI replies with Claude Sonnet 4.6

Ready for 3.0

by Swapnil Mandloi ✓ · 368 views · created 2026-07-28 · 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 11 nodes and runs on Gmail events. Along the way it connects Gmail and Anthropic Chat Model.

How it runs

Trigger: On Gmail events.

  1. Extract Email (Edit Fields (Set)): sets 6 fields: from, sender_email, subject…
  2. AI Triage (AI Agent): runs an AI agent, with model: Claude Sonnet 4.; output parser: Triage Schema
  3. Shape Triage Record (Edit Fields (Set)): sets 13 fields: from, sender_email, subject…
  4. Log to Triage Table (Data table): uses Data table
  5. Create Draft Reply (Gmail): work with draft
  6. Route by Urgency (Switch): routes items into 1 branches
  7. Send Urgent Alert (Gmail): uses Gmail

Services it uses

GmailAnthropic 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 (9)

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…

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