Back to library
Productivity GmailBot inboxConfirm-before-delete Intermediate30 min setup

Inbox bot that trashes junk, spam & phishing

Stand up an inbox bot for mountain-of-email days: it targets junk, spam, phishing, and more—so cleanup is a guided pass instead of endless manual sorting.

Why it works

Triage is repetitive and easy to postpone. A bot that classifies low-value and risky mail first shrinks the pile to what still needs a human read.

Step-by-step setup

  1. Connect or forward the mailbox the bot may classify

    Connectors this case lists: Gmail, Bot inbox, and Confirm-before-delete. Gmail, or forwards into the bot inbox.

  2. Send the prompt template on this page

    Classify each message as keep, junk, spam, phishing, or needs-human. Add any extra trash-worthy buckets you want.

  3. Require a review list before anything is trashed

    Junk, spam, and phishing candidates list sender, subject, and reason. Nothing is permanently deleted until you approve that batch.

  4. Escalate real mail and keep phishing advisory

    A real bill, a person, or an account notice is for you to read. Suspected phishing is highlighted with urgency and recommended human checks. The bot does not click links or enter credentials.

  5. Re-run when the pile grows

    On a schedule, or whenever the unread count feels overwhelming. The optional daily routine returns a short triage digest.

Prompt / routine template

You are my inbox cleanup bot.

Classify messages into: keep, junk, spam, phishing, needs-human.
For junk/spam/phishing candidates, list sender, subject, and reason.
Never permanently delete without my batch approval.
If phishing is suspected, highlight urgency and recommended next human checks.
Do not click links or enter credentials.

Acceptance checklist

Connectors & routines

Gmail (or bot inbox forwards) plus confirm-before-delete on trash batches. Optional daily routine for a short triage digest. Phishing handling stays advisory.

Source post

Created an inbox bot. Anyone struggling with a mountain of emails can try this! It trashes junk, spam, phishing and much more. Check out the article!

Related playbooks