Skip to content
TriedPrompts

More in Email, Calendar & Organizing.

Clean up a Gmail inbox with Gemini's search prompts (hit or miss)

Gemini in Gmail wrote and summarized emails well; its search and clean-up prompts only partly worked, about 25% of the time.

Result: PartialTool: Gemini in GmailLevel: AdvancedSetup: Needs a connected account or paid plan

Copy the prompt

Outcome

Tom's Guide's John Brandon found Gemini in Gmail accurate and helpful for composing and polishing emails and summarizing threads, but its inbox search and clean-up prompts were unreliable across about 650,000 emails. Asked who emailed most this year and in May, it listed two people Brandon had barely interacted with, apparently searching only recent mail. Asked which topics Brandon discussed most in 2025, it listed newsletters. Asked to write to the most frequent contacts about being out June 5–6, it again picked the people who emailed most and didn't set up a blind-copied email ready to send. It showed every recent email with an attachment instead of old ones with large attachments, refused to find the largest attachments, and found only four emails with shipping labels out of several dozen. 'Show me all emails with an attachment from May 2024' did work, and Brandon says clean-up worked about 25% of the time.

Evidence: Article or interviewA newsletter, journalist or interview account of what happened.

PartialEvidence: Article or interviewPosted Last checked

Level: Advanced. You need: A tool that takes actions for you or writes code, connected accounts, or some setup on your computer.

How to use this

  1. Tap Copy prompt.
  2. Open the tool the case used (or a similar one) and paste the prompt; results may differ from the original.
  3. Paste it into the message box.
  4. Send it, then read the answer before acting on it.
New to this? What's a prompt?

A prompt is the message you send to the AI tool. Copy the one on this page, put your own details where it asks, and read the answer before you act on it.

Prompt

Improved prompt

Our fuller version of the source's prompt, with fill-in details and rules, or one written to avoid what went wrong. Not tested by the poster.

What the prompt labels mean

Our fuller version of the person's prompt. They didn't use this version, and we haven't tested it.

Before you start, ask me 1–3 short questions about anything important that's missing below. Keep them quick. Then do the task, checking in with me at the key points.

Goal: Free up space and clutter in my mailbox by finding big, old or pointless emails, with me approving every deletion.

What I can give you (ask for whatever's missing):
- How full my storage is and my target
- Date range to clean
- Kinds of mail I'm happy to trash (promos, notifications, old attachments)
- Senders or labels that must never be touched

Rules:
- Use precise searches (date ranges, has:attachment, larger:5M, category:promotions) and tell me the exact search you ran.
- Show me a count and a sample of what each search finds before anything is deleted or archived.
- Never delete; move to Trash or archive only after I confirm each batch.
- If a search returns suspiciously few results, say so and give me the Gmail search string to run myself.
- Check facts that can change (prices, opening hours, dates, availability, rules) against the official source, and tell me anything you couldn't verify.
- Teach me the Gmail search operators you used so I can repeat the clean-up without AI.

Output: A list of clean-up batches: search used, count found, size if known, and my yes/no.

You'll know it worked when: I've cleared the batches I approved and nothing I wanted to keep was touched.

Before you finish: re-read my goal and constraints, check your answer against each one, and list anything you assumed or couldn't confirm.

Try this in:

Sends the Improved prompt shown above. ChatGPT and Grok open with it filled in, and ChatGPT may send it straight away. Gemini and Claude open empty, so we copy the prompt for you to paste. Every button also copies it.

Opens in a new tab. We don't see what you send.

These links are only a shortcut. We're not affiliated with OpenAI, Google, Anthropic or xAI, and your results may not match the source.

The prompt they actually used

The exact prompt from the source.

Show me all emails with an attachment from May 2024

AI tool

Gemini in Gmail

Known limitations

PartialThe source says it only partly worked, or had a significant problem a person had to deal with.

What went wrong: Search and clean-up prompts worked only about 25% of the time and mostly looked at recent emails.

What to try next: The source does not say what to try next.

Source

Posted
by John Brandon (Tom's Guide)
Last checked
Method:
How we verify

https://www.tomsguide.com/ai/i-am-using-gemini-now-for-my-gmail-and-theres-one-major-discovery-thats-surprising

Tell us how it went A reader message. It is not published on this page, and it is not a test of the prompt.

More in Email, Calendar & Organizing

More in PersonalRandom case in Personal