Auto-label Gmail messages with custom categories using GPT-4o-mini
Needs changesWhat this workflow does
This AI workflow has 8 nodes and runs on a schedule (legacy Cron node). Along the way it connects OpenAI Chat Model and Gmail.
How it runs
Trigger: On a schedule (legacy Cron node).
- Fetch New Emails (Gmail): uses Gmail
- Email Classifier (Text Classifier): classifies text into categories with AI, with model: OpenAI Chat Model
- Job Opportunity (Gmail): uses Gmail
- Application Status (Gmail): uses Gmail
- Others (Gmail): uses Gmail
- Enquiries (Gmail): uses Gmail
Services it uses
Other OpenAI + Gmail templates (1,623)
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- Cron in Daily Email Check: replace with Schedule Trigger.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
Published 2025 — 19% of 2025 templates need changes for 3.0. See how template age affects 3.0 readiness →
| Removed in 3.0 | Replace with |
|---|---|
| Cron Daily Email Check | Schedule Trigger |
Nodes used (4)
- OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Gmail
n8n-nodes-base.gmail - Text Classifier
@n8n/n8n-nodes-langchain.textClassifier - Cron
n8n-nodes-base.cron
From the author
Why settle for Gmail’s default tabs when AI can sort your inbox your way? Who is this for? Job seekers, freelancers, and students who receive job-related emails and want them auto-sorted into labels Use case - Problem: Job emails get buried.Manually reading,…