AutomationMart
Home/Browse/Automatic Gmail categorization and labeling with AI
n8n

Automatic Gmail categorization and labeling with AI

n8nn8n13 modulesv1.0
GmailOpenAI

This workflow contains community nodes that are only compatible with the self-hosted version of n8n. Who is this for? If your inbox is full of unread emails, this workflow is for you. Instead of reading through them one by one, let AI do the sorting. It reads your emails and flags only what needs action. What does it solve? This workflow reads your unread Gmail emails and uses AI to decide what’s important — and what’s not. It labels emails that need your attention, identifies re

At a glance

Automatic Gmail categorization and labeling with AI 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
13
Price
Free
Version
v1.0
Automatic Gmail categorization and labeling with AI workflow diagram

About this workflow

This workflow contains community nodes that are only compatible with the self-hosted version of n8n. Who is this for? If your inbox is full of unread emails, this workflow is for you. Instead of reading through them one by one, let AI do the sorting. It reads your emails and flags only what needs action. What does it solve? This workflow reads your unread Gmail emails and uses AI to decide what’s important — and what’s not. It labels emails that need your attention, identifies receipts, and trashes everything else. No more manual reading. Just an inbox that uses AI to take care of itself. How it works 1. Every hour, the workflow runs automatically. 2. It searches for unread emails in your Gmail inbox. 3. For each email: - It extracts the content and sends it to OpenAI. 4. The AI returns one of four labels: Action, Receipt, Informational or Spam. 5. Based on the label: - Emails are marked with the appropriate label. - Or moved to trash it is spam. 6. It marks the email as read once processed. How to set up? 1. Connect these services in your n8n credentials: - Gmail (OAuth2) - OpenAI (API key) 2. Create the Gmail labels: - In your Gmail account, create these labels exactly as written: Action, Receipt, and Informational - The workflow will apply these labels based on AI classification. How to customize this workflow to your needs - Change the AI prompt to detect more types of emails like Meeting or Newsletter. - Add more branches to the Switch node to apply custom logic. - Change the schedule to fit your workflow. By default, it runs every hour, but you can update this in the Schedule Trigger node.

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

Webpage change detection & alerts with Google Suite and hash tracking

This n8n template can monitor and detect changes to a webpage's contents and notify you only when a change occurs. Great to keep an eye on and track publicly available documents such as company TOS, government policy or competitor pages. How it works A scheduled trigger is used so we can run everyday to automate this process. A website page is then fetched with the HTTP request node and the contents we want to track are extracted using the HTML node. To detect changes, we generate a hash on t

Free

Split test different agent prompts with Supabase and OpenAI

Split Test Agent Prompts with Supabase and OpenAI Use Case Oftentimes, it's useful to test different settings for a large language model in production against various metrics. Split testing is a good method for doing this. What it Does This workflow randomly assigns chat sessions to one of two prompts, the baseline and the alternative. The agent will use the same prompt for all interactions in that chat session. How it Works 1. When messages arrive, a table containing information regarding sessi

Free

Screen and score investment deals with AI using OpenAI, Gmail, and Telegram

Screen and Score Investment Deals with AI using OpenAI, Gmail, and Telegram Automatically screens incoming deal submissions using AI, scores them against investment criteria, and routes to the right action. Who is this for? VC firms, PE funds, angel investors, or M&A advisors who receive deal flow via email or form submissions. What problem does this solve? Manually reviewing every pitch deck and deal memo is time-consuming. Most deals don't meet investment criteria. This agent screens, scores,

Free

AI image generator from text built on fal.ai

Who this template is for This template is for developers, content creators, or application builders who want to integrate an AI-powered text-to-image generation service into their applications or systems via an API endpoint. Use case Creating a secure API endpoint that converts text prompts into AI-generated images, with built-in content moderation to prevent inappropriate content generation. This can be used for creative applications, content creation tools, prototyping interfaces, or

Free

Daily AI news digest to LinkedIn posts with OpenAI GPT and RSS feeds

What This Workflow Does This automation fetches daily AI-related articles from trusted RSS feeds, summarizes them using OpenAI (GPT), and generates a ready-to-post LinkedIn update in your writing style. It then emails the post to you every morning for review and publishing. High-Level Steps: 1. Triggers every morning via Cron. 2. Fetches latest AI news from multiple RSS sources. 3. Filters recent articles (last 24 hrs). 4. Summarizes each article using OpenAI (ChatGPT). 5. Generates a

Free

Send to data to Google Sheets with ChatGPT using converted HTML to text from HTTP

Automatically send data to Google Sheets using ChatGPT after converting the HTML to text received from HTTP. Add rows for streamlined data management and analysis.

Free

Free AI image generator - n8n automation workflow with Gemini/ChatGPT

This n8n template demonstrates how to use AI to generate custom images from scratch - fully automated, prompt-driven, and ready to deploy at scale. Use cases are many: You can use it for marketing visuals, character art, digital posters, storyboards, or even daily image generation for your personal purposes. How It Works - The flow is triggered by a chat message in N8N or via Telegram. The default image size is 1080 x 1920 pixels. To use a different size, update the values in the “Fie

Free

Generate images from text with IBM Granite Vision 3.3 2B AI model

Generate Images from Text with IBM Granite Vision 3.3 2B AI Model 🌍 Overview This workflow uses the ibm-granite/granite-vision-3.3-2b model (hosted on Replicate) to generate AI images. It starts manually, sends a request to the Replicate API, waits for the result, and finally outputs the generated image link. Think of it as your AI art assistant — you click once, and it handles the full request/response cycle for image generation. --- 🟢 Section 1: Trigger & API Setup 🔗 Nodes: Manual Trigger → S

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