Templates / AI-powered Gmail assistant: send replies by analyzing thread ID with Sonnet 4.5

AI-powered Gmail assistant: send replies by analyzing thread ID with Sonnet 4.5

Ready for 3.0

by Davide Boizza ✓ · 539 views · created 2025-10-02 · AI Chatbot

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 9 nodes and runs on Gmail events. Along the way it connects Gmail, OpenAI Chat Model and Anthropic Chat Model.

How it runs

Trigger: On Gmail events.

  1. Merge: merges the data from its input branches
  2. Email Classifier (Text Classifier): classifies text into categories with AI, with model: OpenAI Chat Model
  3. Create a draft (Gmail): work with draft
  4. Get a thread (Gmail): get (thread)
  5. Code: runs custom JavaScript code
  6. Replying email Agent (AI Agent): runs an AI agent, with model: Anthropic Sonnet 4.

Services it uses

GmailOpenAI Chat ModelAnthropic 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.

  • Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (Gmail Trigger).

Nodes used (8)

From the author

This workflow automates analyzing Gmail threads and drafting AI-powered replies with the new model Anthropic Sonnet 4.5. This workflow automates the process of analyzing incoming emails and generating context-aware draft replies by examining the entire email…

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