# Smart to-do

*A to-do list that knows where you are, what time it is, and what you meant to do.*

**Type: [Checklist](types/checklist.md).** Things to do, ticked on the widget, with a ring that counts. This is one good use of it; the same widget serves smart to-do, what only the user can do, a workout at the gym, groceries at the store and more. Switch the subject when something else matters more.

Template id `smart-todo` · Right now · uses Location, Calendar, Reminders · for: Any agent; it does more with email, calendar and a browser.

## Goal

A to-do list the user never has to manage: the right things at the right place and time, getting smarter every time they tell it something, with the agent doing what it can.

## When to offer it

Any user. The best first widget for someone who says "I keep forgetting things", "organise my day" or "make me a to-do list". It gets better the more they tell it.

## What the user gets

- Shows only what you can do here and now: work things at work, errands when you're out, home things in the evening
- Learns from you: tell it more and the list gets better; your daily routines come back by themselves
- Does the ones it can (book, order, reply) after your OK, and asks you the one question that matters

## What each size shows

- **Small**: ring counting ticked items.
- **Medium**: ring counting ticked items; checklist of 5 items.
- **Large**: ring counting ticked items; checklist of 5 items; buttons: Tell me more (`tell`), Do one for me (`handle`).
- **Lock Screen**: inline "To do: 5 things".

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

```json
{"slug": "smart-todo", "look": {"style": "bold", "accent": "indigo", "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:

- Daily routines (morning and evening)
- Work hours and which places count as work
- What the agent may do on its own after a yes (book, order, reply)
- Items per version (5 at most)

**Search words:** todo, to do, tasks, list, remind, forget, errands, chores, routine, daily, habits, organize, smart, intelligent, location, context.


## Before you build

- Check `droplet_get_phone_context`: the phone must share location, calendar, reminders. If something is off, ask the user to turn it on in Droplet.ai, Settings, Phone access.
- You need: Any agent; it does more with email, calendar and a browser.
- Ask once: Before acting on any item (booking, buying, messaging). And ask the right questions (see below), one at a time.

## Fill it with real data

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

| Block | Real value |
|---|---|
| 0 · gauge | Leave as `count: "checked"`; it counts ticks in the version on screen. Put the why of each version in its `subtitle` ("3 only you can do", "Near you"). |
| 1 · checklist | At most 5 items for this context, most important first, short verb-first titles with the deadline or place in brackets. |
| 2 · buttons | Keep ids `tell` and `handle`. |

Sources:
- Everything you know about the user: what they asked you to remember, recent conversations, their projects, people and habits.
- Phone context (droplet_get_phone_context): place (home, work, away), local time, today's calendar, due reminders, health. Read it before every rewrite.
- Deadlines and commitments from email and calendar (bills, renewals, replies owed, events to prepare for).
- Daily routines: things the user does every day or week (vitamins, plants, gym bag, recycling night). Keep them in your memory and bring them back each day.
- Every item belongs to a context: anywhere, morning, work, away (errands, with the nearest first) or evening at home. Put it in that version, at most 5 per version, most important first.

## 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": "smart-todo",
  "title": "To do",
  "subtitle": "By deadline",
  "symbol": "checklist",
  "accent": "#5E5CE6",
  "blocks": [
    {"type": "gauge", "label": "Done", "count": "checked"},
    {"type": "checklist", "items": ["Pay rent (due Fri)", "Sign Sam's contract", "Send Q4 plan", "Reply to the landlord", "Renew passport"]},
    {"type": "buttons", "items": [{"id": "tell", "label": "Tell me more", "symbol": "text.bubble.fill"}, {"id": "handle", "label": "Do one for me", "symbol": "sparkles"}]}
  ],
  "variants": [{"when": {"from": "06:00", "to": "09:30"}, "title": "This morning", "subtitle": "Before you leave", "blocks": [{"type": "gauge", "label": "Done", "count": "checked"}, {"type": "checklist", "items": ["Sign Sam's contract", "Bring the charger", "Reply to the landlord", "Leave by 8:40"]}, {"type": "buttons", "items": [{"id": "tell", "label": "Tell me more", "symbol": "text.bubble.fill"}, {"id": "handle", "label": "Do one for me", "symbol": "sparkles"}]}]}, {"when": {"place": "work"}, "title": "At work", "subtitle": "3 only you can do", "blocks": [{"type": "gauge", "label": "Done", "count": "checked"}, {"type": "checklist", "items": ["Send Q4 plan to Maya", "Review Sam's deck", "Book 1:1 with Sam", "Expense the Uber"]}, {"type": "buttons", "items": [{"id": "tell", "label": "Tell me more", "symbol": "text.bubble.fill"}, {"id": "handle", "label": "Do one for me", "symbol": "sparkles"}]}]}, {"when": {"place": "away"}, "title": "Out and about", "subtitle": "Near you", "blocks": [{"type": "gauge", "label": "Done", "count": "checked"}, {"type": "checklist", "items": ["Pharmacy: refill ready", "Post the signed forms", "Pick up the keys", "Buy a gift for Maya"]}, {"type": "buttons", "items": [{"id": "tell", "label": "Tell me more", "symbol": "text.bubble.fill"}, {"id": "handle", "label": "Do one for me", "symbol": "sparkles"}]}]}, {"when": {"from": "18:00", "to": "23:00", "place": "home"}, "title": "Tonight", "subtitle": "At home", "blocks": [{"type": "gauge", "label": "Done", "count": "checked"}, {"type": "checklist", "items": ["Pay rent (due Fri)", "Call Mom", "Read Sam's deck", "Approve tomorrow's plan"]}, {"type": "buttons", "items": [{"id": "tell", "label": "Tell me more", "symbol": "text.bubble.fill"}, {"id": "handle", "label": "Do one for me", "symbol": "sparkles"}]}]}],
  "sizes": {"small": [0], "medium": [0, 1], "large": [0, 1, 2]},
  "lock": {"inline": "To do: 5 things", "circular": 0}
}
```

## Keep it fresh

Rewrite all versions at the first session of each day (reset_checklists: true, carry over what's not done, add today's routines), whenever the user tells you something new, and after each tick (move the next item up, add what follows from it). The phone switches versions by place and time on its own, with no agent running, so the list stays right between your sessions. Don't install anything on the user's computer to run at 6:00.

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

**Tell me more** (`tell`)

```json
{"widget": "smart-todo", "kind": "button", "target": "tell", "value": {"label": "Tell me more"}}
```

droplet_ask kind input: "What else is on your mind?" Turn the answer into items (split it, give each a context and a deadline), ask one follow-up only if the answer is ambiguous, then update the widget and say what you added.

**Do one for me** (`handle`)

```json
{"widget": "smart-todo", "kind": "button", "target": "handle", "value": {"label": "Do one for me"}}
```

Pick the top unticked item you can do yourself (book, order, reply, schedule, research). droplet_ask decision naming exactly what you'll do ("Book the dentist for Tue 10:00?"). On yes do it, tick it on the widget, and show the result in the note line.

## Ask the right questions

- Ask only when the answer changes what you do, one question at a time, on the widget (droplet_ask), never a form.
- No deadline on something that has one in real life (rent, passport, tax): "When is the rent due?" (choice: this Fri / 1st of the month / other).
- Not sure where an item belongs: "Do this at work or at home?" (choice).
- An item you could do yourself: "Want me to book the dentist?" (decision). Ask once per item, remember a no.
- Something repeats: after the user ticks the same item three days in a row, ask "Add 'Take vitamins' every morning?" (decision).
- Vague items ("sort out car"): "What does the car need?" (choice: service / insurance / MOT or inspection / other).
- An item has sat for a week: "Still want 'Renew passport'?" (choice: keep / move to next week / drop).
- Never ask what you can find out (calendar, email, phone context) and never ask more than one question per hour unless the user is answering.

## Ask first

Before acting on any item (booking, buying, messaging). And ask the right questions (see below), one at a time.

For example:

```json
{"question": "When is the rent due?", "kind": "choice", "options": ["This Friday", "1st of the month", "Other"], "risk": "low"}
```

## Phone actions

reminder for items with a time (droplet_phone_action reminder) when the user wants one; alarm for wake-ups only if asked.

```json
{"kind": "reminder", "params": {"title": "Pay rent", "due": "2026-10-30T09:00:00-04:00"}}
```

Send it with `droplet_phone_action` and tell the user what you set.

## Edge cases

- The user has no saved places: put everything in the base version and the morning/evening versions; ask once if they'd like work and home set up in Droplet.ai, Settings, Places.
- Everything is done: show "All done here" and the next context's first item in the note.
- The user ticks something you added by mistake: remove it on the next rewrite and remember not to add it again.
- Two agents: only yours is your list; never copy another agent's items.

## Never

Never more than 5 items in a version. Never untick what the user ticked. Never act on an item without a yes.

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

- [Gym session](gym-session.md): Your workout, a live set counter and the rest timer.
- [Grocery run](grocery-run.md): A list that fills itself and counts down while you shop.
- [Only you can do](only-you.md): Your agent hit something it can't do. It lists exactly what it needs and carries on when you tick it.
