Sort Gmail emails with GPT-4o into action required and no action labels
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 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).
- Get Emails (Gmail): get many
- Email Classifier (Text Classifier): classifies text into categories with AI, with model: OpenAI Chat Model
- Add "Action Required" Label (Gmail): add labels
- Add "No Action" Label (Gmail): add labels
- Remove "Inbox" Label (Gmail): remove labels
- Remove "Inbox" Label (Gmail): remove labels
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.
Nodes used (4)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Gmail
n8n-nodes-base.gmail - Text Classifier
@n8n/n8n-nodes-langchain.textClassifier
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…