# Needs a reply

*Your agent drafts the replies. You tap send.*

**Type: [Act](types/act.md).** Where things stand, and the three things you'd want to do about it. This is one good use of it; the same widget serves a failing build, a production issue, a pull request, an email that needs you and more. Switch the subject when something else matters more.

Template id `inbox-zero` · Asks you · uses nothing on the phone · for: Agents with email access (Gmail, Outlook).

## Goal

Inbox triage happens on the Home Screen in seconds.

## When to offer it

The user's agent can read their email and they complain about their inbox or ask for replies.

## What the user gets

- Shows the few emails that really need you
- Each one has a reply already drafted
- Send, edit later or snooze with one tap

## What each size shows

- **Small**: metric: Waiting = 3.
- **Medium**: metric: Waiting = 3; text (body): "Maya: move Thursday? Reply ready."; buttons: Send draft (`send`), Next (`next`), Tomorrow (`snooze`).
- **Large**: metric: Waiting = 3; text (body): "Maya: move Thursday? Reply ready."; buttons: Send draft (`send`), Next (`next`), Tomorrow (`snooze`); list: Also waiting (2 rows).
- **Lock Screen**: inline "3 emails need you".

## Make it theirs

**Look.** Send `look` instead of `theme` and `accent`; every combination is designed to read well:

- `style`: `glass` (default: see-through, adapts to dark mode), `soft` (a calm pale tint) or `bold` (a vivid gradient with dark buttons).
- `accent`: blue, indigo, purple, pink, red, orange, green, teal, graphite, or a hex.
- `font`: default, rounded, serif or mono.

This template's own accent is **blue**. To restyle a widget you already saved, send only the look:

```json
{"slug": "inbox-zero", "look": {"style": "bold", "accent": "blue", "font": "rounded"}}
```

Preview a look without saving: `droplet_preview_widget` with the slug and `look`. When the user says "make it greener", "calmer" or "bolder", change the look; keep the content.

**Their choices.** Ask once (droplet_ask) or use what you know:

- Which inboxes and senders count
- Work only or everything

**Search words:** email, inbox, reply, gmail, outlook, messages, drafts, triage.


## Before you build

- You need: Agents with email access (Gmail, Outlook).
- Ask once: If the draft would commit to money, dates far out or anything legal, droplet_ask with the full draft in details instead of the one-tap send.

## Fill it with real data

Start from the template (`droplet_library` with `id: "inbox-zero"`), keep the design, and replace each sample value:

| Block | Real value |
|---|---|
| 0 · metric | How many threads need them (from real people, asking something). |
| 1 · text | Sender, the ask in a few words, and 'Reply ready' (keep it under 40 characters). |
| 2 · buttons | Keep ids `send`, `next`, `snooze`. |
| 3 · list | The other waiting threads: sender + subject, detail = how long ago. |

Sources:
- Unread or flagged threads from real people that ask the user something (skip newsletters and receipts).
- A short draft reply in the user's voice for the top one.

## The widget

Sample values; send it with `droplet_set_widget` on your widget's slug (or a new slug with `new_widget: true` if the user asked for a separate widget). Preview it and fix every warning first.

```json
{
  "slug": "inbox-zero",
  "title": "Needs a reply",
  "symbol": "envelope.badge.fill",
  "accent": "#0A84FF",
  "blocks": [
    {"type": "metric", "label": "Waiting", "value": "3"},
    {"type": "text", "text": "Maya: move Thursday? Reply ready.", "style": "body"},
    {"type": "buttons", "items": [{"id": "send", "label": "Send draft", "symbol": "paperplane.fill"}, {"id": "next", "label": "Next", "symbol": "chevron.right"}, {"id": "snooze", "label": "Tomorrow", "symbol": "moon.fill"}]},
    {"type": "list", "title": "Also waiting", "items": [{"title": "Landlord: lease renewal", "detail": "2d"}, {"title": "Sam: deck feedback", "detail": "5h"}]}
  ],
  "sizes": {"medium": [0, 1, 2], "large": [0, 1, 2, 3]},
  "lock": {"inline": "3 emails need you", "circular": 0}
}
```

## Keep it fresh

Every 15 min during the user's working hours, and after each tap.

## Handle the taps

Each tap reaches you once on `droplet_get_events` (keep a waker running, SKILL.md Process C). Answer within seconds by updating the widget.

**Send draft** (`send`)

```json
{"widget": "inbox-zero", "kind": "button", "target": "send", "value": {"label": "Send draft"}}
```

Sending is outward facing. The user tapped a button that names it, so send exactly the draft shown, then show the next email.

**Next** (`next`)

```json
{"widget": "inbox-zero", "kind": "button", "target": "next", "value": {"label": "Next"}}
```

Show the next waiting email with its draft.

**Tomorrow** (`snooze`)

```json
{"widget": "inbox-zero", "kind": "button", "target": "snooze", "value": {"label": "Tomorrow"}}
```

Hide that thread until tomorrow 9:00 (keep a note), show the next one.

## Ask first

If the draft would commit to money, dates far out or anything legal, droplet_ask with the full draft in details instead of the one-tap send.

For example:

```json
{"question": "Send this reply to the landlord?", "details": "Hi Sam, we'd like to renew for 12 months at the same rent. Can you send the lease?", "kind": "decision", "options": ["Send", "Not yet"], "risk": "medium"}
```

## Phone actions

None.

## Edge cases

- Nothing waiting: '0' with 'Inbox clear' and no buttons.
- The draft would commit money or a date far out: use the droplet_ask above (full draft in details) instead of the one-tap send.
- The user replied from their laptop meanwhile: drop that thread on the next refresh.

## Never

Never send anything that isn't exactly what the widget showed.

## Done when

- [ ] Every sample value is replaced with real data (no "Dr. Lee" on a real widget).
- [ ] `droplet_preview_widget` shows no warnings at the sizes the user placed (`placed` in `droplet_whoami`).
- [ ] Every button has a handler and a waker is running.
- [ ] Refresh is set up as above.
- [ ] You told the user in one line what it does on its own and what it asks first.

## Same widget, other uses

- [Meeting prep](meeting-prep.md): Before every meeting: who, why, and your notes ready.
- [Calendar clash](schedule-clash.md): Two things landed at the same time. Your agent found the fix; you tap it.
- [Worth your time](news-brief.md): One story that matters to your work, why it matters, and what to do about it.
- [Smart buttons](smart-buttons.md): The buttons you need right now. Your agent changes them by time, place and what's next.
- [Meeting controls](meeting-controls.md): Only around a meeting: join it, say you're late, then send the recap when it ends.
- [Home controls](home-scenes.md): At home, the controls for this moment: leaving, evening or bedtime.
- [Release room](release-room.md): A small app for one job: everything about a release, with the controls, built by your agent.
- [Follow up](follow-up.md): Someone never replied. Your agent noticed and wrote the nudge.
- [Ship status](ship-status.md): Builds, failing tests and the fix, all one tap from your agent.
- [PR review](pr-review.md): Your agent read the pull request. You get the verdict and merge with a tap.
- [Production issue](incident.md): Something broke in production. Your agent already looked, and offers the fix.
