# Renewal coming

*Something renews soon that you barely use. Your agent caught it in time.*

**Type: [Decide](types/decide.md).** Your agent asks before it acts. Approve or decline with one tap. This is one good use of it; the same widget serves deploy or merge, spend money, send what your agent wrote, delete or archive and more. Switch the subject when something else matters more.

Template id `bill-guard` · Asks you · uses nothing on the phone · for: Agents with email access, and a browser to cancel.

## Goal

The user never pays again for something they meant to cancel.

## When to offer it

You can read their receipts and something renews soon that looks unused.

## What the user gets

- Finds renewals in your receipts and emails
- Checks whether you actually use it
- Cancels it or sets a reminder after your tap

## What each size shows

- **Small**: metric: Yearly = $144.
- **Medium**: metric: Yearly = $144; text (body): "No Figma emails from you since June. Cancel?"; buttons: Cancel it (`cancel`), Keep (`keep`).
- **Large**: metric: Yearly = $144; text (body): "No Figma emails from you since June. Cancel?"; buttons: Cancel it (`cancel`), Keep (`keep`); list: How to cancel (2 rows).
- **Lock Screen**: inline "Figma renews Friday".

## 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 **orange**. To restyle a widget you already saved, send only the look:

```json
{"slug": "bill-guard", "look": {"style": "bold", "accent": "orange", "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:

- How many days before to warn
- Subscriptions to ignore

**Search words:** renewal, subscription, cancel, bill, charge, money, receipt.


## Before you build

- You need: Agents with email access, and a browser to cancel.
- Ask once: Before anything that can't be undone, such as closing an account. Name it.

## Fill it with real data

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

| Block | Real value |
|---|---|
| 0 · metric | What it'll charge. |
| 1 · text | When, and the sign you saw that it's unused. |
| 2 · buttons | Cancel or keep. |
| 3 · list | How cancelling works. |

Sources:
- Renewal notices and past receipts in email.
- Signs of use you can really see. If you can't tell, say so instead of guessing.

## 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": "bill-guard",
  "title": "Figma renews Friday",
  "symbol": "creditcard.trianglebadge.exclamationmark",
  "accent": "#FF9F0A",
  "blocks": [
    {"type": "metric", "label": "Yearly", "value": "$144"},
    {"type": "text", "text": "No Figma emails from you since June. Cancel?", "style": "body"},
    {"type": "buttons", "items": [{"id": "cancel", "label": "Cancel it", "symbol": "xmark.circle.fill"}, {"id": "keep", "label": "Keep", "symbol": "checkmark"}]},
    {"type": "list", "title": "How to cancel", "items": [{"title": "Their settings page", "detail": "I'll open it"}, {"title": "Refund window", "detail": "14 days"}]}
  ],
  "sizes": {"medium": [0, 1, 2], "large": [0, 1, 2, 3]},
  "lock": {"inline": "Figma renews Friday", "circular": 0}
}
```

## Keep it fresh

A few days before each renewal.

## 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.

**Cancel it** (`cancel`)

```json
{"widget": "bill-guard", "kind": "button", "target": "cancel", "value": {"label": "Cancel it"}}
```

Cancel with your browser tools if you can. If it needs their sign-in, send the cancel link and turn this into Only you can do.

**Keep** (`keep`)

```json
{"widget": "bill-guard", "kind": "button", "target": "keep", "value": {"label": "Keep"}}
```

Do nothing, and don't ask again until next time it renews.

## Ask first

Before anything that can't be undone, such as closing an account. Name it.

For example:

```json
{"question": "Close the Figma team too? This can't be undone.", "kind": "decision", "options": ["Close it", "Just cancel"], "risk": "high"}
```

## Phone actions

None.

## Edge cases

- You can't tell whether they use it: say that.
- Cancelling needs their sign-in: turn this into Only you can do.

## Never

Never say it's cancelled until you've seen the confirmation.

## 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

- [Approvals](approvals.md): Your agent asks before it ships. You approve from the Home Screen.
- [OK to spend?](spend-ok.md): Your agent needs to pay for something to keep going. It asks first, with the exact amount.
- [Reply drafted](mention-reply.md): Someone asked you something in public. Your agent wrote the reply. You tap post.
