Templates / Automatically categorize Gmail messages with GPT-4 mini classification

Automatically categorize Gmail messages with GPT-4 mini classification

Ready for 3.0

by Ilyass Kanissi ✓ · 1,291 views · created 2025-08-19 · AI Summarization, Multimodal AI

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

How it runs

Trigger: On Gmail events.

  1. Text Classifier: classifies text into categories with AI, with model: OpenAI Chat Model
  2. Business (Gmail): add labels (thread)
  3. Cold Emails (Gmail): delete (thread)
  4. Meetings (Gmail): add labels (thread)

Services it uses

GmailOpenAI 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 (5)

From the author

🛠️ Smart Email Classifier Workflow Intelligent AI-powered email classification system that automatically sorts incoming Gmail messages into Business, Meetings, Cold Emails, and other categories using OpenAI. ⚡ Quick Setup 1. Import this workflow into your…

Excerpt from Ilyass Kanissi'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.