Automate Gmail email categorization with GPT-4o AI and reasoning
Ready for 3.0Ready 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.
- Mark Email As Read (Gmail): mark as read
- Select most appropriate Label (OpenAI): uses OpenAI, with 1 tool (Justify/Reason the Label AI has chosen)
- Add Label (Gmail): add labels
- Get Label Id's (Gmail): work with label
Services it uses
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)
- Gmail
n8n-nodes-base.gmail - Gmail Trigger
n8n-nodes-base.gmailTrigger - Think Tool
@n8n/n8n-nodes-langchain.toolThink - OpenAI
@n8n/n8n-nodes-langchain.openAi
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…