Smart Gmail Labeling Automation with Text Classifier and GPT-5
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 minute). Along the way it connects OpenAI Chat Model and Gmail.
How it runs
Trigger: On a schedule (every minute).
- Gmail: get many
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Label Classifier (Text Classifier): classifies text into categories with AI, with model: OpenAI Chat Model
- Add Label (High Priority) (Gmail): add labels (thread)
- Add Label (Personal) (Gmail): add labels (thread)
- Add Label (Promotions) (Gmail): add labels (thread)
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 (5)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Gmail
n8n-nodes-base.gmail - Text Classifier
@n8n/n8n-nodes-langchain.textClassifier
From the author
What this workflow does This workflow automatically organizes your Gmail inbox by fetching recent emails, analyzing their content with AI, and applying the appropriate Gmail labels based on the results. Step by step: 1. Schedule Trigger runs the workflow…