Recipes Intentions
Start a habit With a check-in
Create the Habit after a yes. If the person wants to be nudged, set your own reminder first if your app can, then register a daily-check-in with xale_, and tell them plainly how it will reach them: your app's reminder, or their next chat.
When
The person wants to build a habit, or asks to be nudged or reminded about one.
Calls
xale_: is it there already?read_ habits - After a yes:
xale_withcreate_ habit title, acadence({"kind": "perWeek", "target": 2}, say), an optionaldurationMin, and a newrequestId. The cadence is a soft target: Xale never counts streaks. - If they want nudging: ask what time suits them. Set a reminder or scheduled task in your own app first, if it can.
xale_withtake_ on_ check_ in workflowId: "daily-check-in",itemKind: "habit",itemId,reminderSet(true only if you really set one) andreminderNotein your words.
json
[
{ "tool": "xale_create_habit", "arguments": { "title": "Stretch before bed", "cadence": { "kind": "perWeek", "target": 3 }, "durationMin": 10, "requestId": "habit-2026-12-04-stretch" } },
{ "tool": "xale_take_on_check_in", "arguments": { "workflowId": "daily-check-in", "itemKind": "habit", "itemId": "Hs9bF4kM", "reminderSet": true, "reminderNote": "every day at 9pm" } }
]A daily check-in runs 14 times unless the person chooses more (runs, up to 60), then ends. For a wind-down Habit, Xale's Evening wind-down check (workflowId: evening-decompression) asks how it went too.
Say
- Pass on
tellThePersonfrom the check-in result. It says what Xale holds. - Say plainly which way it reaches them: the check-in comes from your app's reminder, or else when they next chat with you.
- Never claim a reminder you didn't set.
If it fails
| What comes back | What to do |
|---|---|
| “The person already has 5 recurring workflows running, the most Xale allows so reminders don't pile up. Ask which one to end first (xale_read_check_ins, xale_end_check_in).” | Ask which to end, end it with xale_, then take this one on. |
| “… already does this for the person. Tell them; they can end it there before you take it on.” | Another app runs this check-in. Tell the person. |
| Your app doesn't set reminders | Send reminderSet: false. The check-in then runs whenever they next chat with you, and tellThePerson says so. |
The Habit after a yes, a check-in only if they want nudging, and the truth about how it reaches them.
- Checked against main
8aef9b15