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.

View as Markdown

When

A daily-check-in run is due (xale_read_check_ins says so), or the reminder you set fires.

Calls

  1. xale_begin_run with checkInId, attended (true if the person is in the chat) and a beginKey you choose. It returns a runId and the workflow's instructions.
  2. Ask one short question about the Habit.
  3. If they answer: xale_record_entry with kind: "habit", the Habit's id, date (YYYY-MM-DD in their timezone), their words in text, and a new requestId.
  4. If they did it: xale_complete_habit with habitId (and date, if it wasn't today).
  5. xale_report_run once, with checkInId, runId, outcome (answered, or no_answer) and 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_answer and leave it.
  • Advice only if they ask.

If it fails

What comes backWhat 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 daySend xale_record_entry 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.

  • Checked against main 8aef9b15

Was this helpful?

habit-check-in-daily-recipe.md · main@c1725f34