How to automatically label emails in Gmail
Gmail's built-in way (a filter), the AI workflows people build in n8n or Zapier, and an AI sorter with no workflow to build. What each one catches, what it misses, and what you have to keep running. We build MailManager, the third option, so we'll also say when the free one is enough.
How do you automatically label emails in Gmail?
There are three ways to auto-label Gmail: create a native Gmail filter for known senders or exact keywords (free), build a DIY n8n or Zapier AI workflow on your own API key, or connect an AI sorter like MailManager that runs your rules first and files the rest into real Gmail labels.
If you can name the sender or the words, a Gmail filter labels that mail for free, forever, in about two minutes. "Everything from my bank goes to Finance" is a filter.
Filters fall short when the label is about what an email is. "Receipts" arrive from every shop you've ever used, each with its own subject line. A filter can only catch the ones you predicted. For that kind of label you need AI, and there are two routes: build a workflow that calls an AI model yourself, or use an AI sorter that does it for you.
Method 1: Automatically label emails with a Gmail filter
These steps follow Google's Gmail Help pages (see Sources) for Gmail on a computer.
Create the label
On the left side of Gmail, next to Labels, click Create new label and enter a name. To put it inside another label, tick Nest label under. Google allows up to 5,000 labels.
Describe the mail you want labeled
In the search box at the top, click Show search options and fill in a sender, subject, or words. Click Search to check what matches before going further. Shortcut: tick an email from that sender, click More, then Filter messages like these.
Choose Apply the label
Click Create filter at the bottom of the search window. Tick Apply the label and choose your label from the dropdown. Want the mail out of your inbox too, the way a folder works? Also tick Skip the Inbox (Archive it). That's how you automatically move emails to a label in Gmail.
Label the mail you already have
Google describes filters as a way to "manage your incoming mail," so by default they only touch new mail. Tick the last box, Also apply filter to matching conversations, and the label goes on your existing matching mail too.
Save it, and repeat
Click Create filter. Each filter is one search, so each new sender or pattern is another filter, or another edit under Settings > See all settings > Filters and Blocked Addresses. Setting up several at once? The free Gmail filter builder writes each search for you and a file Gmail imports in one go.
Labels aren't copies. Google: "If you apply a label to a message, it doesn't result in a copy of the message specifically for the label. Multiple labels may be applied to your copy of a message." Filter not doing what you expected? Seven reasons Gmail filters stop working covers the usual ones.
Where Gmail filters stop
- Exact matches only. Google's accessibility guide describes filter actions as what happens "when a message is an exact match for your search criteria."
invoicemisses "Your payment confirmation." - One pattern at a time. A filter knows the senders and words you've typed into it. The shop you first order from next month isn't in any of them.
- No sense of meaning. A filter can't tell a shipping update from a sale email when both come from the same address.
- Gmail's automatic sorting is fixed. Gmail sorts mail into its own inbox tabs, but in Google's words, "You can't create your own categories."
Does Gmail have AI labels built in?
On work accounts, partly. Google Workspace Studio, which Google says is "now generally available with all Business and Enterprise Workspace plans," builds automations across Gmail and other Google apps. Its page lists a template called "Label emails that have action items" and an example that will "intelligently detect and label high priority emails in your inbox." If your Gmail is on one of those plans, try Studio first; it comes with the plan. Google's Studio page doesn't mention personal Gmail accounts.
On personal accounts, Gmail's AI Inbox (US and English only, for Google AI Plus, Pro, and Ultra subscribers) surfaces "Suggested to-dos" and "Topics to catch up on." Google's page describes those two sections, not mail sorted into labels you choose.
Method 2: Build an AI labeling workflow yourself
This is what most "auto label Gmail with AI" tutorials teach: connect Gmail to an automation tool, send each new email to an AI model with a prompt, and apply whichever label it picks. Two templates we opened:
- n8n, "Basic automatic Gmail email labelling with OpenAI and Gmail API": it "triggers every 5 minutes to check for new emails," fetches your existing labels to find the best match, and "if no existing label matches, a new label is created dynamically based on the email's content." You set up Gmail OAuth2 credentials and OpenAI credentials in n8n, and the template suggests improving the prompt "by giving it more personal rules on how to categorize."
- Zapier, "Add labels to incoming emails automatically with ChatGPT": a New Email trigger, a ChatGPT step, a Formatter step "to make sure your Gmail Label IDs match," then Add Label to Email. On Zapier's free plan, "Zapier checks for new data every 15 min."
Or write it yourself in Google Apps Script with an AI API key. Whichever you pick, here's what you're signing up to maintain:
- The prompt. It's your sorting logic. When a category drifts, you rewrite it.
- The API key and its usage. Every email is an AI call on your own key, so the bill and the rate limits are yours to watch.
- The label list. The Zapier template maps AI answers to Gmail label IDs; the n8n one creates new labels when nothing matches, so your label list can grow on its own.
- The workflow itself. Expired credentials, a retired model name, a failed run: when something breaks, labeling stops until you fix it.
- The backlog. Both templates start from new email, so the mail already in your inbox needs a separate run.
If you like building this kind of thing, it's flexible and you control every piece. If you wanted labels, not a side project, read on.
Method 3: An AI sorter, no workflow to build
MailManager is AI that sorts your Gmail into categories you choose, as labels inside the Gmail you already use. It isn't a new email app, and there's no prompt, API key, or workflow to look after. Sign in with Google, pick your categories, and it does two jobs:
- Live sorting labels new mail as it arrives, on our servers, with Gmail open or closed.
- Bulk sorting labels the mail already in your inbox.
Your rules run first. MailManager has its own (match on from, subject, body, or recipient), and they never use credits. Whatever they don't catch goes to the AI (Google Gemini), which sees the sender, subject, and up to 500 characters, then picks one of your categories. It doesn't invent new labels. A sorted email gets its label and leaves the inbox. We keep no copy of your inbox. How it works has the details.
The free plan sorts into five ready-made labels: OTP / Security Codes, SuperSpam, Newsletters & Promotions, Receipts & Bills, and Important / Action Needed. It includes 25 live credits a month and 50 bulk credits once, and needs no card. Labels you describe yourself in plain English, like "anything about the house renovation," come with paid plans: 1 on the $2 plan, 3 on $4, 10 on $8. One email sorted by AI uses one credit.
It will get some wrong
AI labeling is a judgment call, and some calls miss. When an email gets the wrong label, correct it in your processing history: MailManager moves it and learns from that correction for your account only. For a sender that keeps getting misfiled, write a rule; rules always win.
Used Notion Mail's auto-labels? Here's where they can go
Notion wound down the Notion Mail inbox on September 22, 2026, and users had until September 21 to export their auto-label instructions. Your mail is still in Gmail, but Notion's auto-labeling stopped when the inbox closed. Gmail's own filters can't take the instructions back either: a filter matches senders and words (Method 1), not a description like "updates from my kid's school."
Three ways to keep the habit:
- Turn the simple ones into filters. An instruction that really meant "everything from these three senders" is a filter. The free Gmail filter builder writes several at once.
- Build the AI step yourself with a workflow tool (Method 2), if you're happy to look after a prompt and an API key.
- Paste the instruction into MailManager as a category description. The AI sorts new mail into a Gmail label by that description, inside the Gmail you already use, and you can bulk-sort what piled up since September. Categories you write yourself are on paid plans (1 on the $2 plan, 3 on $4, 10 on $8); the free plan uses five ready-made ones. Try it free.
The three ways side by side
| Gmail filter | DIY AI workflow | MailManager | |
|---|---|---|---|
| Labels by | Exact senders or words you type | Whatever your prompt tells the model | Your rules first, then AI picks one of your categories |
| A sender you've never seen | Not labeled until you add it | Model picks a label | AI picks a label |
| Mail already in Gmail | Tick "Also apply filter to matching conversations" | Templates we opened start from new email | Bulk sorting |
| You maintain | One filter per pattern | Prompt, API key, label mapping, the workflow | Your category list |
| Cost | Free | Automation tool's plan plus AI usage | Free plan; paid plans $2, $4, or $8 a month |
When a filter is all you need
- A handful of predictable senders. Your bank, your kid's school, one newsletter. Five filters and you're done.
- You're on a Google Workspace Business or Enterprise plan. Look at Workspace Studio before paying for anything else.
- The real problem is a pile you want gone. Labels won't help with that; the guide to thousands of unread Gmail emails covers clearing it safely.
Once your labels are in place, the Gmail inbox zero playbook covers keeping the inbox empty. On Outlook instead? MailManager does the same with folders; see auto sorting Outlook into folders.
Label 50 emails free →
FAQ
How do I automatically label emails in Gmail?
Create a filter. In Gmail on a computer, click Show search options, enter a sender or words, click Create filter, tick Apply the label, choose the label, and click Create filter again.
How do I automatically move emails to a label in Gmail?
In the same filter, tick both Apply the label and Skip the Inbox (Archive it). The email gets the label and leaves your inbox, so it only shows up under that label.
Will a Gmail filter label emails I already have?
Only if you tick Also apply filter to matching conversations when you create it. Otherwise filters only act on incoming mail.
Does a Gmail label make a copy of the email?
No. Google says applying a label doesn't create a copy of the message for that label, and one message can have several labels.
How many labels can I have in Gmail?
Google says you can create up to 5,000 labels.
Can Gmail label emails automatically with AI?
On Google Workspace Business and Enterprise plans, Google Workspace Studio has flows that label email, such as its Label emails that have action items template. Gmail filters themselves only match the senders and words you type. For a personal Gmail account, the options are a workflow you build with n8n, Zapier, or Apps Script and an AI model, or an AI sorter such as MailManager.
Do I need an API key or a workflow to use MailManager?
No. Sign in with Google, choose your categories, and MailManager labels new mail as it arrives. Bulk sorting labels the mail already in your inbox. The free plan needs no card.
Does MailManager work with Outlook too?
Yes. On Outlook.com, Hotmail, Live, and Microsoft 365, the same categories become Outlook folders instead of Gmail labels.
Sources
All checked November 16, 2026, except the Notion Mail item (November 24, 2026).
- Gmail Help: Create rules to filter your emails (creating, testing, and editing filters; Filter messages like these)
- Gmail Help: Use Gmail with a screen reader (the filter actions, Also apply filter to matching conversations, labels aren't copies)
- Gmail Help: Create & manage labels in Gmail (creating and nesting labels, 5,000-label limit)
- Gmail Help: Organize your emails into categories
- Gmail Help: Manage to-dos & topics with AI Inbox
- Google: Google Workspace Studio (availability, labeling templates)
- n8n: Basic automatic Gmail email labelling with OpenAI and Gmail API
- Zapier: Add labels to incoming emails automatically with ChatGPT
- Notion: Notion Mail inbox is going away: what to do next (archived August 28, 2026), as summarized by Canary Mail