# Link to the note behind · recipe

When a Task or Habit came from a discussion, a Note or a Mindmap, offer to link them so the why stays with it. Set `linkedNoteId`, or `linkedMapId` with `linkedNodeId`, on the item's update tool.

Checked 2026-12-02 · https://xale.app/docs/ai/link-to-the-note-behind-recipe

## When

A Task or Habit was born from a discussion, a Note or a Mindmap. Xale's instructions name this as one of the nudges the person chose Xale for.

## Calls

1. [`xale_find_notes`](https://xale.app/docs/ai/tools/xale_find_notes) or [`xale_find_mindmaps`](https://xale.app/docs/ai/tools/xale_find_mindmaps) with `search`, to find the Note or map. For a node, [`xale_read_mindmap`](https://xale.app/docs/ai/tools/xale_read_mindmap) gives its id.
2. After a yes, on the item's own update tool:

| Item | Call and fields |
| --- | --- |
| Task | [`xale_update_task`](https://xale.app/docs/ai/tools/xale_update_task): `linkedNoteId`, or `linkedMapId` with `linkedNodeId` |
| Habit | [`xale_update_habit`](https://xale.app/docs/ai/tools/xale_update_habit): `linkedNoteId` or `linkedMapId` |
| Project | [`xale_update_project`](https://xale.app/docs/ai/tools/xale_update_project): `linkedNoteId` or `linkedMapId` |
| Milestone | [`xale_update_milestone`](https://xale.app/docs/ai/tools/xale_update_milestone): `linkedNoteId`, or `linkedMapId` with `linkedNodeId` |

```json
{ "tool": "xale_update_task", "arguments": { "id": "Tq3wP8xL", "linkedMapId": "Mg4tY8rB", "linkedNodeId": "n_budget" } }
```

## Say

- "This came from your Kitchen plan Note. Link them so the why stays with it?"
- If there's no Note yet and the Task feels hard, offer to think it through in one first.

## If it fails

| What comes back | What to do |
| --- | --- |
| “A linked node needs its Mindmap: send linkedMapId too.” | Send `linkedMapId` with `linkedNodeId`. |
| “That Mindmap node changed or was removed while Xale was linking it, so nothing was changed. Read the Mindmap again.” | Read the map again and send the current node id. |
| “Nothing with that id is available in this Xale.” | The Note or map is in Trash or an Area kept away from connected AI. |

> One offer, the why kept with the item.

## Related

- For people: [How do I turn a note into tasks in Xale?](https://xale.app/help/notes-into-tasks-pick-actions)
- For people: [How do I turn a mind map node into a task in Xale?](https://xale.app/help/make-task-on-a-branch-from-ideas)
- Tools: [xale_find_notes](https://xale.app/docs/ai/tools/xale_find_notes)
- Tools: [xale_find_mindmaps](https://xale.app/docs/ai/tools/xale_find_mindmaps)
- Tools: [xale_update_task](https://xale.app/docs/ai/tools/xale_update_task)
- Tools: [xale_update_habit](https://xale.app/docs/ai/tools/xale_update_habit)
- Tools: [xale_update_project](https://xale.app/docs/ai/tools/xale_update_project)
- Tools: [xale_update_milestone](https://xale.app/docs/ai/tools/xale_update_milestone)
- Read next: [Links between items · how they work](https://xale.app/docs/ai/links-between-items-how-they-work)
- Read next: [Hard tasks · think first](https://xale.app/docs/ai/hard-tasks-think-first)
