# Who's waiting on me · recipe

Group the person's open Tasks by who each is delivered to (`accountableIds`), earliest due date first, and offer to put one of them into today.

Checked 2026-12-05 · https://xale.app/docs/ai/who-s-waiting-on-me-recipe

## When

"Who am I holding up?" "What do I owe people?"

## Calls

1. [`xale_read_tasks`](https://xale.app/docs/ai/tools/xale_read_tasks): open Tasks, the default. Each page is ordered by due date (undated last), title and ID. Start at offset 0 and leave `areaId` unset so unfiled Tasks are visible. Pass `nextOffset` as `offset` with the same filters and page size while `hasMore` is true.
2. Group them by `accountableIds`: the people each Task is delivered to (**Deliver to** in Xale). `workerIds` are who it's assigned to.
3. [`xale_read_people`](https://xale.app/docs/ai/tools/xale_read_people), for their names.
4. If they ask about one person: [`xale_read_person`](https://xale.app/docs/ai/tools/xale_read_person) with `section: "tasks"`.
5. If they pick one, after a yes: [`xale_schedule_intention`](https://xale.app/docs/ai/tools/xale_schedule_intention) with `kind: "task"`, `id`, `startAt` and a new `requestId`.

```json
[
  { "tool": "xale_read_tasks", "arguments": { "limit": 200 } },
  { "tool": "xale_read_person", "arguments": { "id": "P8kR2mQa", "section": "tasks" } }
]
```

## Say

- A short list by person, the earliest `dueDate` first: that is the order `xale_read_tasks` already gives. Say "no date" for a Task without one, and put those last.
- Then one nudge: "Want to put one of these in today?"

## If it fails

| What comes back | What to do |
| --- | --- |
| Tasks with no `accountableIds` | They aren't for anyone you can see. Leave them out, or offer to link one person: [`xale_change_links`](https://xale.app/docs/ai/tools/xale_change_links) with `kind: "task"` and `people`. |
| A Person you can't read | They're in an Area kept away from connected AI. Leave them out and don't guess. |

> A list by person, then one thing for today.

## Related

- For people: [How do I track what I owe people in Xale?](https://xale.app/help/i-owe-this-to-someone)
- For people: [What is Deliver to in Xale?](https://xale.app/help/deliver-to-someone-waiting)
- Tools: [xale_read_tasks](https://xale.app/docs/ai/tools/xale_read_tasks)
- Tools: [xale_read_people](https://xale.app/docs/ai/tools/xale_read_people)
- Tools: [xale_read_person](https://xale.app/docs/ai/tools/xale_read_person)
- Tools: [xale_schedule_intention](https://xale.app/docs/ai/tools/xale_schedule_intention)
- Read next: [People · and people groups](https://xale.app/docs/ai/people-and-people-groups)
- Read next: [Running a business · who's waiting on me](https://xale.app/docs/ai/running-a-business-who-s-waiting-on-me)
