Templates / Smart Gmail Labeling Automation with Text Classifier and GPT-5

Smart Gmail Labeling Automation with Text Classifier and GPT-5

Ready for 3.0

by Billy Christi ✓ · 2,762 views · created 2025-08-20 · 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 8 nodes and runs on a schedule (every minute). Along the way it connects OpenAI Chat Model and Gmail.

How it runs

Trigger: On a schedule (every minute).

  1. Gmail: get many
  2. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  3. Label Classifier (Text Classifier): classifies text into categories with AI, with model: OpenAI Chat Model
  4. Add Label (High Priority) (Gmail): add labels (thread)
  5. Add Label (Personal) (Gmail): add labels (thread)
  6. Add Label (Promotions) (Gmail): add labels (thread)

Services it uses

OpenAI Chat ModelGmail

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

From the author

What this workflow does This workflow automatically organizes your Gmail inbox by fetching recent emails, analyzing their content with AI, and applying the appropriate Gmail labels based on the results. Step by step: 1. Schedule Trigger runs the workflow…

Excerpt from Billy Christi'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.