Recipes Intentions
Habit check-in Daily recipe
One run of a daily-check-in: begin the run, ask one short question, record the answer as a dated entry, complete the Habit if they did it, and report the run once.
When
A daily-check-in run is due (xale_ says so), or the reminder you set fires.
Calls
xale_withbegin_ run checkInId,attended(true if the person is in the chat) and abeginKeyyou choose. It returns arunIdand the workflow'sinstructions.- Ask one short question about the Habit.
- If they answer:
xale_withrecord_ entry kind: "habit", the Habit'sid,date(YYYY-MM-DD in their timezone), their words intext, and a newrequestId. - If they did it:
xale_withcomplete_ habit habitId(anddate, if it wasn't today). xale_once, withreport_ run checkInId,runId,outcome(answered, orno_) andanswer attended.
json
[
{ "tool": "xale_begin_run", "arguments": { "checkInId": "ci7Rk2Lp", "attended": true, "beginKey": "ci7Rk2Lp-2026-12-04" } },
{ "tool": "xale_record_entry", "arguments": { "kind": "habit", "id": "Hs9bF4kM", "date": "2026-12-04", "text": "Did ten minutes, felt good after a long day.", "requestId": "entry-2026-12-04-stretch" } },
{ "tool": "xale_complete_habit", "arguments": { "habitId": "Hs9bF4kM" } },
{ "tool": "xale_report_run", "arguments": { "checkInId": "ci7Rk2Lp", "runId": "r3Hd8qVn", "outcome": "answered", "attended": true } }
]Say
- One short question. One follow-up only if the answer is unclear.
- No answer means no entry: report
no_and leave it.answer - Advice only if they ask.
If it fails
| What comes back | What to do |
|---|---|
| “That run's 30-minute window ended, so it wasn't counted. What you saved during it stays saved. Start a new run with xale_begin_run if any are left, and report that one.” | A run is open for 30 minutes. Begin a new one and report that. |
| A correction for the same day | Send xale_ again with a new requestId. It replaces your latest entry for that day, unless the person edited it in Xale; then theirs stays and yours goes after it. |
finished in the report | “That was the last run. Remove your reminder, tell the person it has ended, and ask whether they want it again.” |
| “That check-in has used all its runs. Remove your reminder, and offer the person to start it again if they want.” | As it says. |
| “That day hasn't happened yet; a Habit can be completed for today or an earlier day.” | Check date against today in their timezone. |
One question, their words as given, and the run reported once.
For people
- Checked against main
8aef9b15