Templates / Sort Gmail emails with GPT-4o into action required and no action labels

Sort Gmail emails with GPT-4o into action required and no action labels

Ready for 3.0

by Khaled · 1,649 views · created 2025-05-14 · Personal Productivity, 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 a schedule (every day). Along the way it connects OpenAI Chat Model and Gmail.

How it runs

Trigger: On a schedule (every day).

  1. Get Emails (Gmail): get many
  2. Email Classifier (Text Classifier): classifies text into categories with AI, with model: OpenAI Chat Model
  3. Add "Action Required" Label (Gmail): add labels
  4. Add "No Action" Label (Gmail): add labels
  5. Remove "Inbox" Label (Gmail): remove labels
  6. Remove "Inbox" Label (Gmail): remove labels

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

From the author

🧾 Description: This automation uses GPT-4o to scan unread Gmail emails and intelligently classify them as: Action → Requires your attention (reply, review, schedule, or respond) No Action → Informational or promotional; no action needed The result? You…

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