# 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.

Checked 2026-12-02 · https://xale.app/docs/ai/habit-check-in-daily-recipe

## When

A `daily-check-in` run is due ([`xale_read_check_ins`](https://xale.app/docs/ai/tools/xale_read_check_ins) says so), or the reminder you set fires.

## Calls

1. [`xale_begin_run`](https://xale.app/docs/ai/tools/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`](https://xale.app/docs/ai/tools/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`](https://xale.app/docs/ai/tools/xale_complete_habit) with `habitId` (and `date`, if it wasn't today).
5. [`xale_report_run`](https://xale.app/docs/ai/tools/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 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_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.

## Related

- For people: [How do I set up habit check-ins with Claude in Xale?](https://xale.app/help/habit-check-ins-with-your-ai)
- For people: [How do I mark a habit as done in Xale?](https://xale.app/help/log-a-habit-or-correct-it)
- Tools: [xale_read_check_ins](https://xale.app/docs/ai/tools/xale_read_check_ins)
- Tools: [xale_begin_run](https://xale.app/docs/ai/tools/xale_begin_run)
- Tools: [xale_record_entry](https://xale.app/docs/ai/tools/xale_record_entry)
- Tools: [xale_complete_habit](https://xale.app/docs/ai/tools/xale_complete_habit)
- Tools: [xale_report_run](https://xale.app/docs/ai/tools/xale_report_run)
- Read next: [Check-ins · recurring workflows](https://xale.app/docs/ai/check-ins-recurring-workflows)
- Read next: [Habits · frequency and logs](https://xale.app/docs/ai/habits-frequency-and-logs)
- Read next: [Start a habit · with a check-in](https://xale.app/docs/ai/start-a-habit-with-a-check-in)
