Templates / Categorise and label Gmail emails with GPT-4o and OpenAI

Categorise and label Gmail emails with GPT-4o and OpenAI

Ready for 3.0

by Zac Nielsen · 294 views · created 2026-02-05 · 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-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 7 nodes and runs on Gmail events. Along the way it connects OpenAI and Gmail.

How it runs

Trigger: On Gmail events.

  1. Categorize Email (OpenAI): uses OpenAI
  2. Not Worthwhile (Filter): keeps only the items that match a condition
  3. Get Email (Gmail): get many
  4. Remove from Inbox (Gmail): remove labels
  5. Add to folder (Gmail): add labels
  6. Get many labels (Gmail): work with label

Services it uses

OpenAIGmail

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

Automatically organise your Gmail inbox using AI. This workflow categorises every incoming email and applies Gmail labels, keeping only important emails in your inbox while filing everything else automatically. Who is this for? Anyone overwhelmed by email…

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