# Chat into a Mindmap · recipe

After research, a comparison, a decision with options or a plan with many branches, offer once to keep it as a Mindmap. Add to an existing map when one fits; otherwise save OPML with one central topic.

Checked 2026-12-02 · https://xale.app/docs/ai/chat-into-a-mindmap-recipe

## When

After research, a comparison, a decision with options, or a plan with many branches. The `save_to_xale` prompt sorts a whole chat this way too.

## Calls

1. [`xale_find_mindmaps`](https://xale.app/docs/ai/tools/xale_find_mindmaps) with `search`: is there a map this belongs in?
2. If one fits: [`xale_read_mindmap`](https://xale.app/docs/ai/tools/xale_read_mindmap) for its node ids, then, after a yes, [`xale_add_mindmap_nodes`](https://xale.app/docs/ai/tools/xale_add_mindmap_nodes) with `mapId`, `parentNodeId` (the map's `rootNodeId` for a new top-level branch), `title`, optional `subNodes`, and a new `requestId`.
3. Otherwise, after a yes: [`xale_save_mindmap`](https://xale.app/docs/ai/tools/xale_save_mindmap) with `opml` (one top-level outline is the central topic), `areaIds` if they named an Area, `people` if someone is involved, and a new `requestId`.
4. Offer to link the people involved: `people` on the save, or [`xale_change_links`](https://xale.app/docs/ai/tools/xale_change_links) afterwards with `kind: "mindmap"`.

```json
{ "tool": "xale_save_mindmap", "arguments": {
  "opml": "<opml version=\"2.0\"><head><title>Which laptop</title></head><body><outline text=\"Which laptop\"><outline text=\"Light and small\"><outline text=\"Battery all day\"/><outline text=\"Smaller screen\"/></outline><outline text=\"Big screen\"><outline text=\"Better for photo editing\"/><outline text=\"Heavier to carry\"/></outline><outline text=\"Decision: light and small\"/></outline></body></opml>",
  "requestId": "map-2026-12-04-laptop"
} }
```

## Say

- Offer once, saying what and where: "Want me to save this as a Mindmap in Xale, in Personal?"
- After saving, give the link (`href`).
- One nudge at most: if a branch is a thing to do, "Want that as a Task, linked to this map?"

## If it fails

| What comes back | What to do |
| --- | --- |
| A refusal about the OPML | It says what to fix. Fix it and send again with the same `requestId`. A DTD or `<!ENTITY>` is always refused. |
| More than 300 nodes | Count the central topic too. If the outline exceeds the map limit, ask which branches to keep or how to split it into separate maps before saving. |
| “New Mindmaps go to your default Area, which you keep away from connected apps. Choose an Area from xale_read_areas and send its id in areaIds.” | Ask which Area, then send `areaIds`. |

> Offer once, saying what and where. Add to an existing map before making a new one.

## Related

- For people: [How do I save a Claude chat to Xale?](https://xale.app/help/save-this-chat-to-xale)
- For people: [How do I turn an Ask Xale chat into a mindmap?](https://xale.app/help/long-chat-into-mindmap-sort-it)
- Tools: [xale_find_mindmaps](https://xale.app/docs/ai/tools/xale_find_mindmaps)
- Tools: [xale_read_mindmap](https://xale.app/docs/ai/tools/xale_read_mindmap)
- Tools: [xale_add_mindmap_nodes](https://xale.app/docs/ai/tools/xale_add_mindmap_nodes)
- Tools: [xale_save_mindmap](https://xale.app/docs/ai/tools/xale_save_mindmap)
- Tools: [xale_change_links](https://xale.app/docs/ai/tools/xale_change_links)
- Read next: [Mindmap format · OPML](https://xale.app/docs/ai/mindmap-format-opml)
- Read next: [Research and decisions · as a Mindmap](https://xale.app/docs/ai/research-and-decisions-as-a-mindmap)
- Read next: [Save this chat · prompt](https://xale.app/docs/ai/save-this-chat-prompt)
