Automatically Categorize Gmail Messages with GPT-4 Mini Classification

Go to Workflow
0 views
Built by Ilyass Kanissi Ilyass Kanissi
Created on August 19, 2025

Description

šŸ› ļø Smart Email Classifier Workflow

Intelligent AI-powered email classification system that automatically sorts incoming Gmail messages into Business, Meetings, Cold Emails, and other categories using OpenAI.

⚔ Quick Setup
Import this workflow into your n8n instance
Setup your OpenAI credentials at: OpenAI api key
Configure your Gmail credentials and you're ready to go: Google Cloud Console
Activate the workflow to start automatic email classification

šŸ”§ How it Works

Gmail Trigger: Monitors incoming emails in real-time
Text Classifier: AI-powered categorization using OpenAI Chat Model
Smart Routing: Automatically sorts emails into predefined categories
Gmail Integration: Adds appropriate labels and organizes emails automatically
Fallback Handling: "No Operation" path for unclassifiable emails

Every email gets intelligently sorted into:

šŸ¢ Business

Work-related correspondence
Client communications
Project updates

šŸ“… Meetings

Meeting invitations and requests
Calendar-related emails
Scheduling communications

ā„ļø Cold Emails

Sales outreach and pitches
Unsolicited business proposals
Marketing communications

šŸ”€ Random

Personal emails
Newsletters
Miscellaneous content

Nodes Used (3)

Gmail
n8n-nodes-base.gmail
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
Text Classifier
@n8n/n8n-nodes-langchain.textClassifier