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.

View as Markdown

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_create_habit with a cadence:

They saycadence
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 }
json
{ "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.dows afterwards with xale_update_habit.

Nudges

If the person wants to be nudged about it, offer a check-in at a time they choose: xale_take_on_check_in 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_schedule_intention with kind: "habit".

  • Checked against main 8aef9b15

Was this helpful?

things-to-repeat-as-a-habit.md · main@c1725f34