← Back to library

Triage a huge inbox into folders with draft replies

Buried under nearly two thousand unread emails, a builder had an agent sort them by subject line into groups and write a short reply for each one. It produced six folders and twelve drafts, and flagged three urgent items for the owner to answer personally. The pattern suits anyone digging out of a backlog with an email-connected agent.

View original
Works with
Claude CoworkChatGPT agentGrok BotOpenClaw

Published Oct 19, 2026Updated Oct 19, 2026AI dry run on sample input: passed Oct 20, 2026Source verified Oct 23, 2026

When should you use it?

  • Returning from leave
  • Inheriting a shared mailbox
  • Quarterly inbox clean-up

Not for: Sending replies automatically: keep them as drafts

What do you need, and what do you get?

You need

  • Mailbox access via a connector
  • Your rules for what counts as urgent

You get

  • Folders or labels by theme
  • Draft replies
  • A short urgent list

How does it work, step by step?

  1. Connect the mailboxUse an agent with an email connector and draft-only permissions if possible.
  2. Define urgentTell it which senders and topics always count as urgent.
  3. Group, then draftAsk for folders first, then drafts, then the urgent list.
  4. Answer urgent items yourselfAs in the original, handle the flagged ones personally.

The prompt

Our own prompt, inspired by SOP | AI Agent Builder (@Sonofpeace0001) and written to work in Claude Cowork, ChatGPT agent, Grok Bot and others. Values in lime are placeholders.

Fill in the blanks (optional; the copied prompt uses your values)

Prompt4 variables
Go through my unread email in {mailbox}.
1) Read every subject and sender and propose up to {max_folders} folders. Wait for my OK before moving anything.
2) Flag as URGENT anything from {vip_senders} or about {urgent_topics}. List these first; do not draft replies for them.
3) For the rest, save a one-line draft reply where a reply is needed. Never send.

Inspired by SOP | AI Agent Builder (@Sonofpeace0001): Post on triaging 1,847 unread emails with an agent. The prompt above is written by playbooks.bot in our own words; nothing from the original is quoted.

What can go wrong?

  • Give the agent the narrowest mailbox permissions available.
  • Skim every draft before sending; one-liners can misread tone.

Our take

We like this example because the result is described honestly and the human stays in the loop: the agent flagged three urgent items, and the owner answered those personally. That is the right split. For businesses, the bigger win is turning it into a routine (see the planning-brief and executive-assistant playbooks) rather than a one-off rescue. Start with read and draft permissions only, check the folders it proposes, and keep a list of senders that must never be auto-filed. In our dry run with a mock mailbox of forty unread emails, the important behavior was restraint: it proposed folders and waited, put the four urgent items (two key clients, an overdue invoice, a contract notice) at the top with no drafts, and saved short drafts for the rest without sending anything. For an MSP offering this to clients, the approval step before anything is moved is the feature to sell. People trust triage they can review.

Where the time goes back: The sorting and first-draft work happens in one pass, leaving only decisions for the person.

FAQ

Which agent was used?
The post does not name the product. Agents with email connectors, such as Claude Cowork, ChatGPT agent, Grok Bot or a self-hosted OpenClaw, can follow the same steps.
Will it send emails for me?
Only if you allow it. The source describes drafts, and we recommend keeping it that way: you review and send.

Source and credit

Inspired by SOP | AI Agent Builder (@Sonofpeace0001). We describe the idea in our own words, link to the original, and wrote the prompt ourselves; nothing is quoted.

Inspired by
Post on triaging 1,847 unread emails with an agent
Creator
SOP | AI Agent Builder (@Sonofpeace0001)
Published on
X
Original date
Aug 26, 2026
License
Not openly licensed (the poster keeps all rights), so we quote nothing and link to the original
Originally for
Custom agent
AI dry run
Oct 20, 2026: passed. Dry-run tested by our AI test agent on sample input. Asked before moving; urgent items listed first without drafts; drafts only, never sent.
AI dry run on sample data; not run with live connected accounts. The playbooks.bot test agent filled the prompt with synthetic inputs, produced the output and checked it against the page's stated outputs and guardrails.
Verified
Oct 23, 2026: source link resolves to the original, the credited creator published it, our excerpt or prompt matches it, and the license allows our use.

Also see: inbox-manager skill · small-business plugin (anthropics/knowledge-work-plugins) by Anthropic (Apache-2.0). A related version of the same idea; credited and linked only, nothing from it is reproduced here.

Are you the creator? Claim or correct this page.

More in Operations & Admin

All 225 Operations & Admin playbooks →

Related playbooks

Operations & AdminPrompt✓ AI dry run

Aim the agent at a janky internal app after it maps the UI

Have the agent study a janky internal UI out loud, complete one end-to-end task with a recording, and stop for login walls instead of guessing credentials.

Credit: Carnage (@0xCarnagee)

Under an hour
Operations & AdminPrompt✓ AI dry run

Audit how you manage your agent team, not only the agents

Have your chief-of-staff agent review the last 30 days of how you delegated, clarified, interrupted, corrected, assigned, approved and followed up across your agent team, score eight management areas with evidence, list your three biggest weaknesses, and draft a seven-day improvement plan, without changing any bot, routine or instructions until you approve.

Credit: Michael Fenech (@Michael_Fenech_)

Under an hour
Operations & AdminPrompt✓ AI dry run

Audit how your agents pick tools before buying more usage

Have your lead agent review the recurring jobs it can see, note which apps, scripts, browser sessions or full computer control each one relies on, flag jobs that take a heavier route than needed or rely on remembered facts, check permissions and fallbacks, and then propose three side-by-side experiments before anything is changed.

Credit: Michael Fenech (@Michael_Fenech_)

Under an hour
Operations & AdminPrompt✓ AI dry run

Check your agent can undo a bulk change before it runs

Before an agent edits hundreds of files, rows or records, get a list of risky jobs, how each would be restored, a tested undo on a copy, and a change log, with nothing live touched until you approve.

Credit: Michael Fenech (@Michael_Fenech_)

Under an hour
Operations & AdminWorkflow✓ AI dry run

Start an agent routine from an iPhone automation

Have your agent create a briefing job that waits for an incoming webhook rather than a timer, then use the iPhone Shortcuts app to fire that webhook when you stop an alarm, leave a place, connect to the car, arrive home or tap a tag, so the work begins from something that already happened in your day.

Credit: Michael Fenech (@Michael_Fenech_)

Under an hour