Templates / Automate Gmail email categorization with GPT-4o AI and reasoning

Automate Gmail email categorization with GPT-4o AI and reasoning

Ready for 3.0

by Seb · 566 views · created 2025-10-13 · Support Chatbot, 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 6 nodes and runs on Gmail events. Along the way it connects Gmail and OpenAI.

How it runs

Trigger: On Gmail events.

  1. Mark Email As Read (Gmail): mark as read
  2. Select most appropriate Label (OpenAI): uses OpenAI, with 1 tool (Justify/Reason the Label AI has chosen)
  3. Add Label (Gmail): add labels
  4. Get Label Id's (Gmail): work with label

Services it uses

GmailOpenAI

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) (Watch Incoming Emails).

Nodes used (4)

From the author

An AI inbox labelling manager that has reasoning attached to the ChatGPT inbox manager within n8n. Super simple yet highly effective automation. How it works: • Monitors Gmail inbox → triggers workflow when a new unread email is received. • Fetches email…

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