Gmail email classifier with GPT-4 auto-generated draft replies
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-12-01.
What this workflow does
This AI workflow has 12 nodes and runs on Gmail events. Along the way it connects Gmail, OpenAI and OpenAI Chat Model.
How it runs
Trigger: On Gmail events.
- Gmail Category Classifier (Text Classifier): classifies text into categories with AI, with model: LLM Support Model
- Label: High Priority (Gmail): add labels
- Label: Inquiry (Gmail): add labels
- Label: Finance/Billing (Gmail): add labels
- Generate Draft: High Priority (OpenAI): uses OpenAI
- Generate Draft: Inquiry (OpenAI): uses OpenAI
- Generate Draft: Finance/Billing (OpenAI): uses OpenAI
- Save Draft: High Priority (Gmail): work with draft
- Save Draft: Inquiry (Gmail): work with draft
- Save Draft: Finance/Billing (Gmail): work with draft
Services it uses
Other OpenAI + Gmail templates (1,623)
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) (Gmail Trigger).
Nodes used (5)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Gmail
n8n-nodes-base.gmail - Text Classifier
@n8n/n8n-nodes-langchain.textClassifier - OpenAI
@n8n/n8n-nodes-langchain.openAi - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
From the author
How It Works This workflow automatically classifies incoming Gmail messages into categories such as High Priority, Inquiry, and Finance/Billing, and then generates professional draft replies using GPT-4. By combining Gmail integration with AI-powered text…