Skip to content
FlowHubFluxonLab
A
AI Automationfree

Automatically Classify and Label Gmail Emails with Google Gemini AI

by Jakkrapat Ampringadapted from n8n official workflow galleryUpdated Aug 2026
RequiresAAI AgentGmailGmailGoogle Gemini Chat ModelGroq Chat ModelGroq Chat ModelText ClassifierText Classifier
Share Post Share
Gmail TriggerGoogle Gemini Chat ModelGoogle Gemini C…AgAI AgentGroq Chat ModelGmail3TCClassification AgentClassification …Add Label PromotionAdd Label Promo…Add Label (KS Work Related)Add Label (KS W…Add Label (High Priority)Add Label (High…12345
1/5
FLOWS
STEPS · 5
Starts on a Gmail event

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 Gmail Trigger: Detects every new incoming email. Text Classifier Node: Classifies the email content into predefined categories. Google Gemini Chat Model: Provides the AI-powered understanding behind the classification. 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. 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!

Tags

n8nreference-onlyagentgmaillm-chat-google-geminilm-chat-groqtext-classifier
Connects
AAI AgentgmailGmailGoogle Gemini Chat ModelgroqchatmodelGroq Chat ModeltextclassifierText Classifier
CategoryAI Automation
Triggermanual
Complexitycomplex
Nodes9
AddedApr 28, 2025

Related workflows

See all AI Automation
Agmailopenaichatmodeltextclassifier
free

Suggest meeting slots using AI

The purpose of this n8n workflow is to automate the process of identifying incoming Gmail emails that are requesting an appointment, evaluating their content, checking calendar availability, and then composing and sending a response email. Note that to use this template, you need to be on n8n version 1.19.4 or later.

by n8n Team
ACDgmail
free

AI: Summarize podcast episode and enhance using Wikipedia

The workflow automates the process of creating a summarized and enriched podcast digest, which is then sent via email. Note that to use this template, you need to be on n8n version 1.19.4 or later.

by n8n Team
Agmailopenaichatmodeltelegram
free

Send daily AI news digests from RSS feeds with OpenAI, Telegram and Gmail

Quick overview This workflow runs every morning at 8 AM, pulls articles from multiple RSS feeds, deduplicates and trims the list, uses OpenAI (GPT-5 Mini) to write a short plain-text news digest, and delivers the same digest to a Telegram chat and a Gmail inbox. How it works Runs daily at 8:00 AM on a schedule. Splits your configured RSS feed URL list into individual feeds and fetches the latest articles from each one, continuing even if a feed fails. Removes duplicate articles by link, keeps only the newest items up to your maxArticles limit, and trims each item to title, link, publish date, and a short snippet. Combines all cleaned articles into a single JSON list and sends it to OpenAI (GPT-5 Mini) to select 5–8 top stories and generate a single plain-text digest under 3,500 characters. Sends the generated digest to your specified Telegram chat. Emails the same digest as a plain-text message through Gmail. Setup Add an OpenAI credential and ensure the GPT-5 Mini model is available in your account. Create a Telegram bot with @BotFather, add the Telegram credential in n8n, and set your target telegramChatId (for example by using @get_id_bot). Connect a Gmail account in n8n and set

by Manik Chandra Dhor