Recipes Use-case walk-throughs
Big goal Training week
Building towards a race or a big physical goal: place each training session from the person's Habits into the week, add a stretch wind-down after each, and record how it went. A missed session moves; it doesn't break anything.
When
The person is building towards a race or another big physical goal, and wants this week's training placed.
Calls
xale_: the training Habits and their cadence.read_ habits xale_for the week.read_ schedule - Propose the sessions, with rest days in. After a yes:
xale_withschedule_ intention kind: "habit"for each session. It returns the new block'sid.xale_withplan_ block blockType: "transition",phase: "wind-down"andrelatedBlockIdset to that id: a stretch after.- After each session:
xale_withrecord_ entry kind: "habit",dateand how it went, in their words.
Below, Europe/London: a long run on Saturday 5 December 2026 at 08:00.
json
[
{ "tool": "xale_schedule_intention", "arguments": { "kind": "habit", "id": "Hr6tN2pQ", "startAt": 1796457600000, "durationMin": 60, "requestId": "run-2026-12-05" } },
{ "tool": "xale_plan_block", "arguments": { "blockType": "transition", "phase": "wind-down", "relatedBlockId": "b8Ks3fGh", "durationMin": 15, "title": "Stretch", "requestId": "run-2026-12-05-stretch" } },
{ "tool": "xale_record_entry", "arguments": { "kind": "habit", "id": "Hr6tN2pQ", "date": "2026-12-05", "text": "10 km, steady pace, left calf a bit tight.", "requestId": "entry-2026-12-05-run" } }
]Say
- A slow build, with rest days in.
- A missed session moves to another day. It doesn't break anything.
If it fails
| What comes back | What to do |
|---|---|
| “That Habit is archived, so it can't be scheduled.” | Ask whether they want it back in Xale. |
| A correction to how it went | Send xale_ again for the same date with a new requestId. It replaces your latest entry, unless the person edited it in Xale. |
Sessions with rest around them, and a missed one moves to another day.
For people
- Checked against main
8aef9b15