How to use AI to clean up your Gmail inbox

  • Time: ~30 minutes
  • You'll need: Gmail open on a computer (filters are easiest to set up there), a free AI chat tool (ChatGPT, Claude, or Gemini)
  • Level: First-timer

Last checked:

Your inbox says 14,382 unread. Somewhere in there is the email from your kid’s school about picture day, buried under 40 messages from a mattress store you visited once in 2019.

Gmail already has good search and filter tools; the hard part is knowing what to type, and a chat AI helps with that. In about 30 minutes you’ll have old promotions archived and a few rules that keep new clutter out.

A quick note from us: this page is general information about Gmail’s own tools. Gmail changes its menus often; Google’s Gmail Help Center has the current version.

What you’ll end up with

A shorter inbox, reusable Gmail searches, and 2 or 3 filters that sort new mail for you.

Before you start

  • A rough idea of what’s clogging things up: store promotions, social media alerts, newsletters
  • A short list of mail you can’t lose, like receipts, bills, and anything from school or work

Step 1: Describe the mess, not the messages

Tell the AI what kinds of mail are piling up and who sends them. Don’t paste any actual emails.

What you might get back (example from ChatGPT; results vary)

Example output, trimmed. ChatGPT, logged out, October 16, 2026.

Finds promotional-tab emails older than October 16, 2025, excluding starred messages.

category:promotions older_than:1y -is:starred

…

Finds Facebook notification emails older than 30 days, excluding starred messages.

from:(facebookmail.com) older_than:30d -is:starred

…

Important: -is:starred excludes starred emails, but it doesn’t guarantee that every remaining email is safe to archive. Review each batch before selecting all results.

Step 2: Test each search before you touch anything

Paste the first search into Gmail’s search box, press Enter, and scroll through the first few pages. If anything you need shows up, add -from: and that sender’s address to the end of the search, and run it again.

If a search has a made-up address like newsletter@example.com, swap in the real sender, which you’ll find on any email from them. In testing, it also left receipts from stores like Amazon and Chewy in the results and said so, so check every set of results for receipts, tickets, and bills before you act on it.

This is the slow part. It’s also the part that stops you from archiving your plane tickets along with the pizza coupons.

Step 3: Archive in bulk

Button names may differ slightly in your Gmail. That goes for Select all conversations that match this search here, and Skip the Inbox (Archive it), Apply the label, and Also apply filter to matching conversations in Step 4. Look for the closest match.

Once a search looks right:

  1. Click the checkbox at the top left of the results to select the page.
  2. Click Select all conversations that match this search when it appears above the list.
  3. Click Archive.

Repeat for your other searches. Archived mail stays in All Mail and still shows up in searches.

Step 4: Turn your best searches into filters

A filter is a rule Gmail applies to new mail as it arrives, a bouncer that never takes a night off.

It may drop older_than: from a search when it turns it into a filter. That’s expected: filters sort new mail as it arrives.

To create each filter in Gmail:

  1. Click the Show search options icon at the right end of the search box.
  2. Paste the search into the right field, or put it in “Has the words,” and click Create filter.
  3. Tick the actions the AI suggested. To sort what’s already there too, tick Also apply filter to matching conversations.
  4. Click Create filter.

Edit or delete filters later in Settings > See all settings > Filters and Blocked Addresses.

Step 5: Unsubscribe from the worst offenders

For lists you signed up for, look for Unsubscribe next to the sender’s name or at the bottom of the email. For spam, don’t click links inside it; mark it as spam.

If you use Outlook

The same approach works. Swap “Gmail” for “Outlook” in the Step 1 prompt. Outlook calls filters “rules,” so ask the AI to turn your searches into rules, and check the steps against Microsoft’s help pages, since the AI can mix up Outlook versions.

When it goes sideways

  • A search finds nothing? The AI may have used an operator Gmail doesn’t support. Remove the last part of the search, or ask for “only operators listed in Gmail’s help page.”
  • A filter caught something important? Edit that filter and add -from: with that sender’s address. Then search All Mail for anything it swept away.
  • The inbox fills back up? Run your saved searches once a month. Five minutes, coffee optional.

Where to go next

Filed under Tech help and digital life.

Get one new AI how-to a week

Free, practical, and a little funny. One email a week, unsubscribe anytime.

We use Kit to send the newsletter, and Kit stores your email address. We only send the weekly how-to and never sell your address. After you sign up you'll land on Kit's page, then get an email to confirm. Privacy policy.