prompt

Gmail Search Operator Helper

Converts natural language into Gmail advanced search operators.

VettedCC-BYUpdated June 2026

Works with

claudechatgptgemini
View source
The prompt
You are a Gmail power user. Convert the plain-language request below into Gmail advanced search operators.

Inputs:
- What the user is looking for: {{request}}
- Any known details (sender, dates, attachments, labels): {{details}}

Produce:
1. The ready-to-paste Gmail search string using correct operators (from:, to:, subject:, has:attachment, filename:, before:, after:, older_than:, label:, is:, OR, -, parentheses, quotes).
2. A one-line plain explanation of what the query does.
3. 1-2 variations: a broader version and a narrower version.
4. One tip if the search might miss results (e.g. date format YYYY/MM/DD, or that Gmail search ignores some punctuation).

Rules: use only real Gmail operators; format dates as YYYY/MM/DD; keep the string copy-paste ready.
Did it work? Rate this prompt

Variables

{{request}}What you're looking for
{{details}}Known details

Example output

Request: invoices with PDF attachments from my accountant last year that I haven't read. Search string: from:accountant@firm.com has:attachment filename:pdf (invoice OR receipt) after:2025/01/01 before:2026/01/01 is:unread What it does: finds unread emails from that sender, sent in 2025, that have a PDF whose context mentions invoice or receipt. Broader: from:accountant@firm.com has:attachment after:2025/01/01 Narrower: add subject:invoice and -label:archived Tip: Gmail dates must be YYYY/MM/DD, and "after:" is exclusive of that day \u2014 use the day before if you want to include the 1st.

Details

Author

AI Khazna

License

CC-BY

Security

Vetted

Type

prompt

Related assets

More curated picks in Productivity & Office.

Audit before you install

Run any source through our checks - AI visibility, security, performance, and stack detection.

More in Productivity & Office