Automatically Classify and Label Gmail Emails with Google Gemini AI
### Description Quickly organize your inbox with AI! This simple workflow automatically classifies incoming emails into different categories - like High Priority, Work Related, or Promotions - and applies Gmail labels accordingly. Setup takes less than 2 minutes, and it runs 24/7, helping you stay focused on what matters most without manual sorting. ### Tools/Services Needed * Gmail: To trigger the workflow and label emails. * Google Gemini (or any LLM Model): To intelligently classify email content. ### How It Works 1. Gmail Trigger: Detects every new incoming email. 2. Text Classifier Node: Classifies the email content into predefined categories. 3. Google Gemini Chat Model: Provides the AI-powered understanding behind the classification. 4. Conditional Labeling: - If the email is High Priority, label it accordingly. - If it's Work Related (e.g., internal emails), apply the work label. - If it's a Promotion, sort it into the promotions label. 5. Gmail Labeling: Automatically adds the correct label to the email. ### Setup Instructions * Connect your Gmail account to n8n. * Connect your Google Gemini (or other LLM) credentials. * Customize the categories and labels if needed. * Activate the workflow - and that's it! ### Notes * You can easily add more categories (like Finance, Newsletters, etc.) by adjusting the classification prompt. * Works best with a clean and minimal set of categories to avoid overlap. * Can be adapted to work with any other large language model (OpenAI, Claude, etc.) if preferred.
- Platform
- n8n
- Category
- Communication
- Price
- $9.99
- Creator
- Jakkrapat Ampring
- gmail
- stickyNote
- gmailTrigger
- agent
- lmChatGroq
- textClassifier
- lmChatGoogleGemini
How to import this workflow into n8n
- 1Purchase or download the workflow to get the n8n workflow JSON file.
- 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
- 3Open each node marked with a credential warning and connect your own accounts and API keys.
- 4Run the workflow once manually to verify the data flow, then toggle it to Active.
Related Communication workflows
- Automate Outbound Calls with Ultravox AI and Twilio$4.99
- Automate Intelligent Email Classification with AI in Gmail$4.99
- Generate AI videos and carousels with Blotato for Instagram and TikTok$9.99
- Automating WhatsApp Replies Using GoHighLevel with Redis and Anthropic$24.99
- Automate Gmail Email Labeling with AI for Enhanced Organization$14.99
- Automate Email Summarization and Logging with AI and Google Sheets$9.99
Need this deployed? We'll set it up for you.
Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.