Where things go
Things to repeat As a Habit
Something the person repeats is a Habit, with a cadence that's a soft target. If they want nudging, offer a check-in at a time they choose.
When
Something the person wants to do again and again: a walk, a call to their parents, a weekly review, a dentist check twice a year.
How
xale_ with a cadence:
| They say | cadence |
|---|---|
| Every day | { "kind": "daily" } |
| Three times a week | { "kind": "perWeek", "target": 3 } |
| Twice a month | { "kind": "perMonth", "target": 2 } |
| Once a quarter | { "kind": "perQuarter", "target": 1 } |
| Twice a year | { "kind": "perYear", "target": 2 } |
{ "title": "Evening walk", "cadence": { "kind": "perWeek", "target": 3 }, "durationMin": 30, "requestId": "habit-evening-walk" }Start small: a soft target the person can meet. Xale never counts streaks. For set weekdays, change anchor. afterwards with xale_.
Nudges
If the person wants to be nudged about it, offer a check-in at a time they choose: xale_ with workflowId: "daily-check-in", itemKind: "habit" and the Habit's id. Tell them truthfully how it will reach them: through a reminder you set in your own app, or else when they next chat with you.
Giving it time
To put an occurrence into a day, use xale_ with kind: "habit".
- Checked against main
8aef9b15