AutomationMart
Home/Browse/Auto-label Gmail messages with custom categories using GPT-4o-mini
n8n

Auto-label Gmail messages with custom categories using GPT-4o-mini

n8nn8n8 modulesv1.0
GmailOpenAI

Why settle for Gmail’s default tabs when AI can sort your inbox your way? Who is this for? Job seekers, freelancers, and students who receive job-related emails and want them auto-sorted into labels Use case - Problem: Job emails get buried.Manually reading, labeling, and tracking them in a sheet is error-prone and time-consuming. - Use Case: An n8n workflow that fetches new Gmail messages on a schedule, classifies them with OpenAI, adds customised Gmail labels defined by the user. What this wor

At a glance

Auto-label Gmail messages with custom categories using GPT-4o-mini is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects Gmail, OpenAI. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Gmail, OpenAI
Modules
8
Price
Free
Version
v1.0
Auto-label Gmail messages with custom categories using GPT-4o-mini workflow diagram

About this workflow

Why settle for Gmail’s default tabs when AI can sort your inbox your way? Who is this for? Job seekers, freelancers, and students who receive job-related emails and want them auto-sorted into labels Use case - Problem: Job emails get buried.Manually reading, labeling, and tracking them in a sheet is error-prone and time-consuming. - Use Case: An n8n workflow that fetches new Gmail messages on a schedule, classifies them with OpenAI, adds customised Gmail labels defined by the user. What this workflow does? 1. Runs on a schedule (Cron) to fetch new Gmail messages. 1. Uses OpenAI to classify each email into: Job Opportunity, Application Status, Enquiries, or Others (you can edit categories). 1. Adds Gmail labels accordingly (auto-creates them if missing). Prerequisites - n8n (Cloud or self-hosted). - Credentials set up in n8n: - Gmail OAuth - OpenAI (API key) Setup - Import the JSON (below) into n8n. - Open Credentials for Gmail, OpenAI. - In the OpenAI node, pick your model (e.g., gpt-4o-mini or any GPT-4 class model). - In the Gmail Add Labels nodes, confirm/adjust label names: - Job Opportunity, Application Status, Enquiries, Others How to customize it for your needs - Add a Follow-Up Date parser (e.g., “We’ll get back in 2 weeks”) → push to Calendar. - Extend categories (e.g., Interview Invite, Offer, Rejection, HR Enquiry). - Threaded Gmail Draft Reply for Enquiries using a template. Troubleshooting - No items flowing? Check Gmail scope/label filters and Cron timing. - Labels not created? The Gmail node can create them; ensure the label names match exactly. Why Use This Template? Gmail can classify messages into Spam, Promotions, or Social, but have you ever wished you could sort emails your own way? With this AI-powered workflow, you can create custom categories that fit your needs — like Job Opportunity, Application Status, or Enquiries — so you never lose track of what matters. Need Assistance? For setup guidance, customization, or business inquiries, Email: phoenixaiagentsolutions@gmail.com

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Extract data from emails with ChatGPT and add new leads to Keap

Automate lead management by extracting email data from various lead sources in a uniformed way with ChatGPT and integrating transferring them into Keap. The template is part of this [webinar.](https://www.youtube.com/watch?v=dZtZFPAtpHY)

Free

Email support agent w/ Gemini & GPT fallback using Gmail + Google Sheets

Master Your First AI Email Agent with Smart Fallback! Welcome to your hands-on guide for building a resilient, intelligent email support system in n8n! This workflow is specifically designed as an educational tool to help you understand advanced AI automation concepts in a practical, easy-to-follow way. --- 🚀 What You'll Learn & Build: This powerful template enables you to create an automated email support agent that: Monitors Gmail for new customer inquiries in real-t

Free

Binance SM 15min indicators tool

A short-term technical analysis agent for 15-minute candles on Binance Spot Market pairs. Calculates and interprets key trading indicators (RSI, MACD, BBANDS, ADX, SMA/EMA) and returns structured summaries, optimized for Telegram or downstream AI trading agents. This tool is designed to be triggered by another workflow (such as the Binance SM Financial Analyst Tool or Binance Quant AI Agent) and is not intended for standalone use. --- 🔧 Key Features ⏱️ Uses 15-minute kline data (last 100 candle

Free

Create personalized property listing emails for Facebook leads with ChatGPT and Claude

Automatically route Facebook leads to ChatGPT and Claude to create bespoke emails for your estate agency which includes a personalized properties listing for enhancing communication and boosting client engagement. The template is part of this [webinar.](https://www.youtube.com/watch?v=01Sf0ZWR-8c)

Free

Reliable AI agent output without structured output parser - w/ OpenAI & Switch

This workflow serves as a solid foundation when you need an AI Agent to return output in a specific JSON schema, without relying on the often-unreliable Structured Output Parser. What It Does The example workflow takes a simple input (like a food item) and expects a JSON-formatted output containing its nutritional values. Why Use This Instead of Structured Output Parser? The built-in Structured Output Parser node is known to be unreliable when working with AI Agents. While the n8n documentation

Free

Generate and email PDF invoices from Tally Forms with Google Docs

Stop copy-pasting invoice details! This gentle workflow turns a simple Tally form into a beautiful PDF invoice and delivers it to your client before you finish your latte ☕. Perfect for Etsy sellers, coaches, freelancers and side-hustlers who want soft-tech automation that feels like magic, not middleware. How it works 1️⃣ You (or your VA) fill a 4-question Tally form: client name, email, amount, due date. 2️⃣ n8n instantly merges the data into a Google Docs template you pre-design (logo, colour

Free

University FAQ & calendar assistant with Telegram, MongoDB and Gemini AI

Interactive Academic Chatbot (Telegram + MongoDB) Overview 📋 This project is a template for building a complete academic virtual assistant using n8n. It connects to Telegram, answers frequently asked questions by querying MongoDB, keeps the community informed about key dates (via web scraping), and collects user feedback for continuous improvement. How It Works Architecture and Workflow ⚙️ n8n: Orchestration of 3 workflows (chatbot, scraping worker, a

Free

Voice-to-email response system with Telegram, OpenAI Whisper & Gmail

This workflow gives you the ability to reply to a long email with a voice note, rather than having to type everything out. ChatGPT will format your audio response and create an email draft for you. How it works When a new email arrives in your inbox, the workflow checks if it needs a response, and it it does, it sends a message to you on Telegram via a VoiceEmailer bot. When you reply to that message with an audio message, the second part of this workflow is triggered. It checks if the message

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free