Nothing is sent without a yes

Bot Cookbook

Search the index

Search templates, guides, and prompts.

Flag invoice emails missing attachments: Grok Bot prompt

List of emails that claim an invoice/receipt but lack an attachment.

Updated 15 Oct 2026.

We looked this up in the docs; we have not run it in a bot yet.

Are you the creator? Ask us to remove this.

Prompt

Scan my mailbox for the last [DAYS] days for emails that mention invoice, receipt, or bill in the subject or body. List those that have no PDF or image attachment, including sender, date, and subject. Also note any that have attachments already filed. Return the list only. Do not reply to anyone.

Fill in

  • [DAYS]

Connectors

Gmail

Uses this feature

Files and results · Files and results

When should I use “Flag invoice emails missing attachments”?

“Flag invoice emails missing attachments” gives the bot one job: “Scan my mailbox for the last [DAYS] days for emails that mention invoice, receipt, or bill in the subject or body.” Run it on a bot that can use Gmail.

What do I replace [DAYS] with in “Flag invoice emails missing attachments”?

Fill the blanks in “Flag invoice emails missing attachments”: where it says “mailbox for the last [DAYS] days for emails”, put the days you mean. Send it without [DAYS] still sitting in the text. Connect Gmail on the bot first. Attach the PDF in that same message.

What output should I expect from “Flag invoice emails missing attachments”?

Expect “Flag invoice emails missing attachments” to come back with “List of emails that claim an invoice/receipt but lack an attachment.” Check the reply against the job you gave it: “Scan my mailbox for the last [DAYS] days for emails that mention invoice, receipt, or bill in the subject or body.”

What should “Flag invoice emails missing attachments” stop short of?

If you rewrite “Flag invoice emails missing attachments” in your own words, keep “Return the list only.” and “Do not reply to anyone.” If a shorter draft of “Flag invoice emails missing attachments” drops either sentence, put it back before you run the prompt.

Also in the index

No related guides or templates are published yet.