Skip to content

AI explained in plain English. Read the latest articles

Automation Beginner

Automatically sort email with AI: Gmail and Outlook step by step

Your inbox can sort itself with Gmail filters and Outlook rules, and AI can label mail by content. Set it up in 15 minutes with a ready-made prompt.

Tidy laptop with a sorted inbox, to show automatically sorting email in Gmail and Outlook

[meta_title]Automatically sort email with AI: Gmail and Outlook step by step[/meta_title]
[meta_description]Want to automatically sort email? Learn how to use Gmail filters, Outlook rules and AI with Zapier, plus a prompt, checklist and privacy tips.[/meta_description]
[slug]mail-automatisch-sorteren-ai-gmail-outlook[/slug]
[image_alt]automatically sort email with Gmail Outlook and AI[/image_alt]

Do you want to automatically sort email because your inbox fills up every Monday? Among 87 unread messages, that one quote from a customer who wants a reply today may be hiding between newsletters, receipts and Black Friday deals.

The basics can be done with filters in Gmail and rules in Outlook. AI really helps when sender or keyword is not enough, because AI can look at the content of an email. After this article, you will have a first sorting system with 4 labels or folders in 15 minutes.

How can you automatically sort email without AI?

You can automatically sort email with filters in Gmail and rules in Outlook. They put mail under a label or in a folder automatically based on sender, subject or words.

This is the best first step. For fixed senders, this often works better than AI. Think of your bank, webshop, accounting software, newsletters or regular suppliers.

Gmail works with labels and filters. A label is a bit like a folder, but one email can have several labels. According to Microsoft Support, Outlook instead uses folders and rules to sort messages.

That difference matters. In Gmail, you are, as it were, putting a name on a message. In Outlook, you usually move a message to a folder.

If you want a broader view of what you can automate with email, also read email automation in 5 steps. In this article, we will stay with sorting: labels and folders. So we will not cover automatic replies, tasks or calendar events.

How do you create a filter in Gmail to automatically label email?

You create a filter in Gmail by choosing the desired criteria in the search bar, then selecting Create filter at the bottom of the search box and letting Gmail apply a label. That way, new mail automatically gets the right label.

According to Google Workspace Help, filters and labels let you automatically manage, label and sort incoming mail. You can create the label first, or create a new label while making the filter.

  1. First create a label, for example Invoices. You can also do this later while creating the filter.
  2. In Gmail, click the options in the search box. Fill in the criteria and click Create filter at the bottom of the search box. You can also go via Settings to the Filters and blocked addresses tab and choose Create a new filter there.
  3. Enter a sender, subject or word. Think of a regular supplier or the word invoice.
  4. Choose Apply the label and select the right label.
  5. If needed, tick Also apply to matching conversations. Then Gmail sorts existing mail straight away too.

Start small. Do not create 12 labels straight away, because then you will still have too much to think about. For a first system, 4 labels are enough.

  • Action needed: email that you need to do something with.
  • Invoices: receipts, bills and payment requests.
  • Newsletters: email you can read later.
  • Other: everything that does not clearly fit into another group.

A good starting point is a filter for newsletters. Many newsletters contain the word unsubscribe. That can help, but it is not perfect. So check the search results first before saving the filter.

How do you set up a rule in Outlook to automatically sort email?

In Outlook, you set up a rule by right clicking a message, choosing Rules and then selecting Create rule. Then you choose the folder where similar messages should go.

According to Microsoft Support, this works in the new Outlook for Windows by right clicking a message, choosing Rules and Create rule. In Outlook on the web, Microsoft describes the same basics: right click, Rule, Create rule, choose a folder and use More options if needed.

  1. Open Outlook and choose a message you want to sort in the same way more often.
  2. Right click that message.
  3. Choose Rules and then Create rule.
  4. Choose the folder where this kind of email should go.
  5. Use More options if you want to adjust the rule.

Note: the menu names may differ slightly. That depends on the version you use. There is a new Outlook, a classic Outlook and a web version.

Outlook rules are especially useful for fixed senders and CC mail. If you get reports from the same address every week, you do not need AI for that. A normal rule is faster and clearer.

Can you automatically sort email with AI, and what extra can it do?

Yes, you can automatically sort email with AI. The extra benefit is that AI can read the content of an email and assign a category to it, even when the sender changes every time.

This usually does not work through one button in Gmail itself. Instead, you use an automation tool. It sees that a new email has arrived, sends the content to an AI step and then puts the right label on the email.

One example is Zapier. Zapier has a template in which incoming Gmail mail automatically gets a label because ChatGPT sorts the content. That template also includes a Formatter step so Gmail label IDs line up properly.

In plain language, it looks like this:

  1. A new email arrives in Gmail.
  2. Zapier notices it.
  3. An AI step reads the subject and text.
  4. The AI chooses one category, such as Invoice or Quote.
  5. Zapier adds the matching Gmail label.

Zapier also has another variant with AI by Zapier. It sorts new Gmail messages into Direct or Bulk. That can be useful for business owners who want to separate personal mail from mass mail.

If you are not yet using an automation tool, first read comparing Zapier, Make and n8n. If you mainly work with requests via forms, then sorting requests in Zapier also fits this topic.

Be honest about the costs. The free basics are in Gmail and Outlook themselves. An AI step is not always free and terms can change, so always check with the provider.

For Outlook, rules work without AI. An AI link for Outlook is a separate route. In this article, we do not name an Outlook template, because that has not been checked here.

Which prompt do you use to let AI sort email?

Use a fixed list of categories and let the AI return only one category word. Then the next step in your automation can link that word exactly to a label.

A prompt is the instruction you give to AI. Keep that instruction short and strict. The less room you give for explanation, the better the automation works.

The line Reply only with the category word is important. An automation can often only continue if the answer is exact. If AI writes, for example: This email looks like an invoice, the next step may not recognise that as the label Invoice.

The fixed list is important too. Without a fixed list, AI can invent its own names. Then you might get Payment, Bill or Administration, while your label is called Invoice.

So it is better to choose only a few categories. You can always expand later. Start with what you really need to make your day calmer.

Is it safe to automatically sort email with AI?

Sorting email with AI can be safe if you share little sensitive data, let the tool only label, and keep privacy rules such as the GDPR in mind. For work email, you first need to know whether your employer allows external AI links.

The key point is this: with AI sorting, you often send email content to an external service. Email can contain customer data, employee data, medical information or other sensitive data. So check what the provider does with the data.

With customer data, a data processing agreement may also be needed. This is an agreement that says how a service provider handles personal data. For this, also read 7 rules for your privacy.

Never let AI delete or send email automatically. Let AI only label. Then you can still fix a wrong label and you will not lose anything.

Check every day during the first week whether the labels are correct. That is especially true for Dutch language email. AI steps can work with Dutch, but you should always check whether the result fits.

The GDPR applies in the Netherlands and Belgium. Keep it practical in this article: share as little as possible, do not let anything disappear automatically, and record what you do.

  • Exclude sensitive senders from AI sorting.
  • Only send the subject and the necessary text if that is enough.
  • Let the AI choose only a label.
  • Check all results during the first week.
  • Ask for permission if it concerns work email.

Which sorting system works best for your inbox?

The best sorting system starts with 4 fixed categories: Action needed, Invoices, Newsletters and Other. Only expand if you notice that you really miss an extra folder or label.

A small system works better than a perfect system you never maintain. Especially in the weeks around Black Friday and year end closing, you mainly want to see what matters quickly.

Method Works in Sorts by Cost Suitable for
Gmail filter Gmail sender, subject, words free, part of Gmail fixed senders
Outlook rule Outlook sender, subject, words part of Outlook fixed senders and CC mail
Zapier plus AI step Gmail, template exists content of the email see the terms of Zapier and the AI provider email without a fixed sender, such as requests and complaints

A Gmail filter has the downside that it mainly looks at fixed features. If customers keep using different words, a filter may miss what matters.

An Outlook rule has the same downside. Rules are strong at repeated patterns, but less strong when the content changes.

A Zapier plus AI step can recognise content better, but it is more complex. You also need to think about privacy, terms and checking results.

So use this order:

  1. Choose no more than 4 categories.
  2. Create labels or folders.
  3. First set up the free filters or rules for fixed senders.
  4. Only then add an AI step for the rest if needed.
  5. After a week, check that nothing is in the wrong folder.

Practical example: Sanne sorts her webshop email

In practice, sorting email often works best in two layers: first normal filters and then AI for emails that are less clear. This is a fictional example of how such a small system can work.

Sanne is self employed and runs a small candle webshop in Utrecht. During the Black Friday weeks, she gets hundreds of emails in Gmail. Customer questions come in, invoices from suppliers, newsletters and order notifications. Everything lands in the same inbox first.

Sanne chooses two layers. The first layer uses free Gmail filters. The second layer uses AI via Zapier for emails that are not easy to recognise by sender or keyword.

Layer 1: free Gmail filters

Filter 1 is for webshop notifications. Mail from the webshop gets the label Orders. This is a fixed sender, so AI is not needed.

Filter 2 looks for words in the subject. If the subject contains invoice or note, the email gets the label Invoices. Sanne checks the search results first before saving this filter.

Filter 3 looks for the word unsubscribe. That mail gets the label Newsletters and may skip the inbox. This filter is not always right, because some normal emails may also contain that word.

Layer 2: AI via Zapier

For the rest, Sanne uses an AI step. The trigger is New Email in Gmail. Then the AI reads the subject and text using the fixed prompt from this article.

The next action is simple: Zapier adds a Gmail label based on the answer. An email with My parcel has not arrived yet, can you check? for example gets the label Customer question. An email with Your quote request for 50 candles as a corporate gift gets Quote.

If the AI is unsure, it gets Other. That is better than sorting too aggressively. In the morning, Sanne opens Quote and Customer question first, so important mail does not disappear under newsletters.

Common mistakes when automatically sorting email

The biggest mistake is starting too big. A good sorting system is small, controllable and easy to adjust.

  • Creating too many labels or folders. Start with 4 and trim after two weeks. More categories often mean more doubt.
  • Making filters too broad. Searching only for the word invoice can be too wide. Where possible, add a sender or check the search results first.
  • Letting AI delete or archive. Let AI only label. That way you will not lose important email.
  • Using a prompt without a fixed category list. Then the AI can invent its own categories. The next step may not recognise those.
  • Sending sensitive email to an external AI service without checking. Exclude such mail with a sender or word filter. Also read the safety section above.

Frequently asked questions

The short answers: Gmail uses filters and labels, Outlook uses rules and folders, and AI needs extra checking for costs, privacy and mistakes.

Can I automatically sort email in Gmail without AI?

Yes. You can do that with filters and labels. For example, you choose a sender, subject or word and let Gmail apply a label automatically.

Can I automatically sort email in Outlook?

Yes. You can do that with rules that move email to a folder. You can often start by right clicking a message and creating a rule.

Do I have to pay to sort email with AI?

The basic filters are part of Gmail and Outlook. For an AI link, the providers’ terms apply, so check there for current prices.

Is sorting email with AI safe for customer data?

Only if you know what the provider does with the data. Exclude sensitive email, let AI only label, and keep the GDPR in mind.

Start today with three filters or rules and only add an AI step after a week if needed. If you then want sorted mail to actually be handled too, read on about automatically turning email into a task. Tip for the coming weeks: temporarily create an extra label for Black Friday or year end closing.

Was this article helpful?

New articles every day

Follow AIzine and never miss an article

We publish three new articles about AI every day. Follow us on Instagram or Facebook to see them in your feed.