AcademyWorkflowsProductivity

Automatic Gmail labels with AI classification

Professionals with a busy Gmail inbox who want unread messages sorted by priority before they read them.

  • Recommendedour rating
  • 2,640views on n8n
Open on n8n.io ↗

Paste it straight onto an n8n canvas with Ctrl+V or Cmd+V.

automatic-gmail-categorization-and-labeling-with-ai.json

Loading the file...

What it does

An n8n workflow that checks unread Gmail messages every hour and sends each one to OpenAI, which returns one of four labels: Action, Receipt, Informational or Spam. It applies the matching Gmail label, moves spam to the trash and marks each processed email as read. It uses community nodes, so it needs a self-hosted n8n.

Use cases

  1. 01Flagging emails that need a reply
  2. 02Finding receipts under one Gmail label
  3. 03Moving spam to the trash automatically

Connects

Gmail · AI Agent · OpenAI Chat Model · Structured Output Parser

Questions about
Automatic Gmail labels with AI classification.

What is Automatic Gmail labels with AI classification used for?

Professionals with a busy Gmail inbox who want unread messages sorted by priority before they read them. An n8n workflow that checks unread Gmail messages every hour and sends each one to OpenAI, which returns one of four labels: Action, Receipt, Informational or Spam. It applies the matching Gmail label, moves spam to the trash and marks each processed email as read. It uses community nodes, so it needs a self-hosted n8n.

How do I import Automatic Gmail labels with AI classification into n8n?

Copy the workflow JSON from this page and paste it onto the n8n canvas with Ctrl+V or Cmd+V. Then connect your credentials in each node.

Is Automatic Gmail labels with AI classification safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.