AcademyWorkflowsProductivity

Automatic Gmail labelling with OpenAI

Anyone who handles a busy shared or personal inbox uses it to keep email sorted by label automatically.

  • Recommendedour rating
  • 13,623views on n8n
Open on n8n.io ↗

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

basic-automatic-gmail-email-labelling-with-openai-and-gmail-api.json

Loading the file...

What it does

An n8n workflow that checks Gmail every 5 minutes, reads each new email and asks an OpenAI chat model to pick a matching label from your existing ones. If none fits, it creates a new label and applies it. Less relevant mail such as ads is removed from the inbox.

Use cases

  1. 01Label incoming emails by topic automatically
  2. 02Create new labels when no existing one fits
  3. 03Move advertising emails out of the inbox

Connects

AI Agent · OpenAI Chat Model · Simple Memory

Questions about
Automatic Gmail labelling with OpenAI.

What is Automatic Gmail labelling with OpenAI used for?

Anyone who handles a busy shared or personal inbox uses it to keep email sorted by label automatically. An n8n workflow that checks Gmail every 5 minutes, reads each new email and asks an OpenAI chat model to pick a matching label from your existing ones. If none fits, it creates a new label and applies it. Less relevant mail such as ads is removed from the inbox.

How do I import Automatic Gmail labelling with OpenAI 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 labelling with OpenAI 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.