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.

Diagram showing Gmail and Outlook mail sorted into five ready-made categories plus custom plain-English categories, landing as real Gmail labels or Outlook folders that stay in your mailbox even if you cancel.
Whether you use a Gmail filter, a workflow, or MailManager, every sorted message ends up with ordinary Gmail labels you see on desktop and mobile.

Method 1: Automatically label emails with a Gmail filter

These steps follow Google's Gmail Help pages (see Sources) for Gmail on a computer.

Step 1

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.

Step 2

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.

Step 3

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.

Step 4

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.

Step 5

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

Diagram comparing a Gmail sender filter that merges an order receipt and a weekend sale from the same store into one label against MailManager AI sorting that splits them into Receipts & Bills and Newsletters & Promos.
Same store, two completely different emails: a sender filter mixes receipts with promos, whereas AI sorting routes each one to its own Gmail label.

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:

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:

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:

46-second walkthrough: plain-English labels, bulk backlog sorting, one-click corrections, and live sorting inside the Gmail you already use.

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:

The three ways side by side

Gmail filterDIY AI workflowMailManager
Labels byExact senders or words you typeWhatever your prompt tells the modelYour rules first, then AI picks one of your categories
A sender you've never seenNot labeled until you add itModel picks a labelAI picks a label
Mail already in GmailTick "Also apply filter to matching conversations"Templates we opened start from new emailBulk sorting
You maintainOne filter per patternPrompt, API key, label mapping, the workflowYour category list
CostFreeAutomation tool's plan plus AI usageFree plan; paid plans $2, $4, or $8 a month

When a filter is all you need

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.

Skip the workflow. See what AI labels do with 50 of your emails. Sign in with Google and run one bulk sort into the five ready-made labels. Free plan, no card.

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).