# Here and now

*What's useful where you are: your meetings at work, what's nearby when you're out, tomorrow when you're home.*

**Type: [Glance](types/glance.md).** One thing worth knowing right now, at a glance. This is one good use of it; the same widget serves your day, what's useful where you are, flight or train status, what your agents did overnight and more. Switch the subject when something else matters more.

Template id `here-now` · Informative · uses Location, Calendar, Reminders · for: Any agent, with places saved in Droplet.ai.

## Goal

The widget feels like it knows where the user is, without them ever telling it.

## When to offer it

The user has saved places, or does different things in different places.

## What the user gets

- Shows something different at each place you've saved
- Your agent decides what's useful in each one
- Switches on the phone by itself as you move

## What each size shows

- **Small**: metric: Near you = 2.
- **Medium**: metric: Near you = 2; text (body): "The pharmacy has your refill, and the post office is open until 6.".
- **Large**: metric: Near you = 2; text (body): "The pharmacy has your refill, and the post office is open until 6."; list: While you're out (2 rows).
- **Lock Screen**: inline "2 things near 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 **green**. To restyle a widget you already saved, send only the look:

```json
{"slug": "here-now", "look": {"style": "bold", "accent": "green", "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 places matter
- What's useful in each one

**Search words:** location, place, home, work, nearby, information, glance, context, where.


## 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, with places saved in Droplet.ai.
- Ask once: Ask once which places matter, if none are saved.

## Fill it with real data

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

| Block | Real value |
|---|---|
| 0 · metric | The one number or time that matters at this place. |
| 1 · text | Why it matters, in a sentence. |
| 2 · list | What's useful here, a few rows. |

Sources:
- Saved places and the current place (Phone access).
- Calendar and reminders, and what you know is near each place.

## 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": "here-now",
  "title": "Out and about",
  "symbol": "location.fill",
  "accent": "#30D158",
  "blocks": [
    {"type": "metric", "label": "Near you", "value": "2"},
    {"type": "text", "text": "The pharmacy has your refill, and the post office is open until 6.", "style": "body"},
    {"type": "list", "title": "While you're out", "items": [{"title": "Pharmacy: refill ready", "detail": "5 min"}, {"title": "Post the signed forms", "detail": "until 6:00"}]}
  ],
  "variants": [{"when": {"place": "work"}, "title": "At work", "blocks": [{"type": "metric", "label": "Next", "value": "2:00"}, {"type": "text", "text": "Design review in room 4. Sam's deck is what they'll ask about.", "style": "body"}, {"type": "list", "title": "Today", "items": [{"title": "Design review", "detail": "2:00"}, {"title": "1:1 with Sam", "detail": "4:00"}]}]}, {"when": {"place": "home"}, "title": "At home", "blocks": [{"type": "metric", "label": "Tomorrow", "value": "8:00"}, {"type": "text", "text": "Board prep first. Bins go out tonight.", "style": "body"}, {"type": "list", "title": "Tonight", "items": [{"title": "Bins out", "detail": "by 7 AM"}, {"title": "Call Mom", "detail": "her birthday"}]}]}],
  "sizes": {"small": [0], "medium": [0, 1], "large": [0, 1, 2]},
  "lock": {"inline": "2 things near you", "circular": 0}
}
```

## Keep it fresh

Write the versions each morning, and when something changes. The phone switches by place on its own.

## Ask first

Ask once which places matter, if none are saved.

For example:

```json
{"question": "Which places should this change for?", "kind": "choice", "options": ["Home and work", "Add the gym", "Everywhere"], "risk": "low"}
```

## Phone actions

Reads place, calendar and reminders if they're on.

## Edge cases

- No saved places: ask them to save Home and Work in Droplet.ai, Settings.
- Location is off: use the time of day versions only.

## Never

Never show exact addresses or location details the user didn't turn on.

## 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`).
- [ ] Nothing needs a handler (no event buttons).
- [ ] 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

- [Your day](day-brief.md): What you need to know, changing through the day: how you slept, what's first, what's left.
- [While you slept](overnight.md): What your agents finished overnight, and the one thing that needs you.
- [Travel day](travel-day.md): Flight, gate, when to leave and the ride, as one live widget.
- [Usage spike](usage-spike.md): A bill is about to jump. Your agent found out why and how to stop it.
