Automatically Categorize Gmail Messages with GPT-4 Mini Classification

πŸ› οΈ 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

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

πŸ”§ How it Works

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

Every email gets intelligently sorted into:

🏒 Business

  1. Work-related correspondence
  2. Client communications
  3. Project updates

πŸ“… Meetings

  1. Meeting invitations and requests
  2. Calendar-related emails
  3. Scheduling communications

❄️ Cold Emails

  1. Sales outreach and pitches
  2. Unsolicited business proposals
  3. Marketing communications

πŸ”€ Random

  1. Personal emails
  2. Newsletters
  3. Miscellaneous content