Example output

Inbox

Subject

Inbox Digest - Monday, June 1, 2026

Mode: test (read-only test: nothing was changed)

Would be cleaned (14 emails matched rules)

6x GitHub notifications -> archive
4x calendar invites already answered -> mark read
3x newsletter digests -> label Newsletters + archive
1x automated billing receipt -> label Receipts

Proposed reply drafts (1)

Re: Intro call next week?

To: Anna Keller

Why: direct scheduling question from a known contact

Hi Anna, Tuesday 10:00 works on my side. I'll send an invite now, happy to move it if something else suits better.


Important - needs attention (2)

Anna Keller

Subject: Intro call next week?

Quick one - would Tuesday 10:00 or Wednesday 14:00 work for a 30-min intro call?...

Stripe

Subject: Action required: verify your updated bank account

We could not verify the bank account ending 4402. Payouts are paused until...


FYI - no action needed (3)

CI Notifications - build 4182 passed on main
Linear - 5 issues updated in SPRINT-12
Substack - 2 new posts from your subscriptions

What this delivers

Archive or mark routine inbox messages as read before the workday starts.
Separate important unread mail from FYI messages in a daily digest.
Draft on-brand replies (left as Gmail drafts) for emails that need a personal response.

Overview

Fetches unread and recent Gmail messages, applies local rule definitions, performs safe batch label updates through the Floom Composio proxy, optionally drafts replies (as Gmail drafts, never sent) for messages that warrant one, and writes a daily inbox digest. Drafting uses Gemini and activates when the worker has both a user-provided brain.md file and GEMINI_API_KEY (or OPENAI_API_KEY) as a worker secret; without those, sorting still runs and drafting is skipped.

Modes:

  • test (default): read-only. No archiving, marking read, labels, Gmail drafts, or state writes. Shows the digest plus proposed reply drafts inline for review.
  • live: applies rules and creates Gmail drafts for replies. Never sends mail.

What you provide

modeselect

test = read-only preview (no changes, no drafts saved). live = apply rules and save Gmail drafts (never sends).

max_emailstext

Cap how many fetched messages to process this run.

draft_repliesselect

Whether to draft replies for emails that warrant one. Requires a user-provided brain.md file plus GEMINI_API_KEY or OPENAI_API_KEY.

How it works

  1. 1Gmail unread/recent search
  2. 2match optional inbox rules (archive / mark read / label)
  3. 3classify remaining as important vs FYI
  4. 4optionally draft replies from the user's own brain.md context (Gemini); in live mode save Gmail drafts (never send)

Under the hood

The worker's instructions and configuration

Install with an agent

Give this to your coding agent. It sets you up first via the onboarding prompt, then imports this template and keeps the first run in preview mode.

Set up Floom in my coding agent, then add this worker. First, read https://floom.dev/onboard and follow it to install Floom and sign me in. Import this Floom worker template into my workspace and keep it in test mode first: 
Gmail Inbox Cleaner | Floom