Templates / Automatic email classification with Gmail and Claude AI

Automatic email classification with Gmail and Claude AI

Ready for 3.0

by Ayis Saliaris Fasseas ✓ · 1,229 views · created 2025-11-21 · 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 8 nodes and runs on Gmail events. Along the way it connects Gmail and Anthropic Chat Model.

How it runs

Trigger: On Gmail events.

  1. Email Content Classifier (Text Classifier): classifies text into categories with AI, with model: Anthropic Chat Model
  2. Add "Ads" label to message (Gmail): add labels
  3. Add "Work" label to message (Gmail): add labels
  4. Add "Personal" label to message (Gmail): add labels
  5. Add "Financial" label to message (Gmail): add labels
  6. Add "Other" label to message (Gmail): add labels

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.

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

Nodes used (4)

From the author

How It Works 1.Gmail Trigger - Continuously monitors your Gmail inbox for new messages. - Captures the email’s subject, body, and metadata. - Sends the extracted content to the Email Content Classifier. 2.Email Content Classification The Email Content…

Excerpt from Ayis Saliaris Fasseas'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.