# Goal into Project · recipe

Ask why a bigger goal matters. Offer a Project and the first few Tasks or Habits the person wants in it, then offer a linked Mindmap or Note for the plan.

Checked 2026-12-04 · https://xale.app/docs/ai/goal-into-project-recipe

## When

A bigger goal with no fixed date: learn the guitar, sort out the garden, get the business accounts in order.

## Calls

1. [`xale_read_projects`](https://xale.app/docs/ai/tools/xale_read_projects): is there one already?
2. Ask why it matters to them. Nothing is saved yet.
3. After a yes: [`xale_create_project`](https://xale.app/docs/ai/tools/xale_create_project) with `name`, a short `description`, optional `areaIds` and `targetDate`, and a new `requestId`. Include `tasks` and `habits` if the person approved that work too. A Habit inside this create defaults to daily when `cadence` is omitted.
4. After a yes: the plan, as [`xale_save_mindmap`](https://xale.app/docs/ai/tools/xale_save_mindmap) or [`xale_save_note`](https://xale.app/docs/ai/tools/xale_save_note) with `projects: [projectId]`.
5. [`xale_update_project`](https://xale.app/docs/ai/tools/xale_update_project) with `linkedMapId` (or `linkedNoteId`) so the plan opens from the Project.
6. To add later steps after a yes: [`xale_create_task`](https://xale.app/docs/ai/tools/xale_create_task) for the first steps, each with `projects: [projectId]` and a new `requestId`.

```json
[
  { "tool": "xale_create_project", "arguments": { "name": "Sort out the garden", "description": "Make the back garden somewhere to sit by summer.", "targetDate": "2027-05-01", "tasks": [{ "title": "Sketch a layout", "subtasks": ["Mark the back door"] }], "habits": [{ "title": "Check the seedlings", "steps": ["Check the soil"] }], "requestId": "project-2026-12-04-garden" } },
  { "tool": "xale_update_project", "arguments": { "id": "Pg7mL2xN", "linkedMapId": "Mg4tY8rB" } },
  { "tool": "xale_create_task", "arguments": { "title": "Measure the patio", "projects": ["Pg7mL2xN"], "requestId": "task-2026-12-04-measure" } }
]
```

## Say

- Ask why it matters to them before planning anything.
- Preview the parent and all proposed work before the grouped save. Offer the plan and later additions separately.
- Two or three first Tasks are enough. More can come later.

## If it fails

| What comes back | What to do |
| --- | --- |
| The goal has a fixed date | That's a Milestone, not a Project. Offer [`xale_create_milestone`](https://xale.app/docs/ai/tools/xale_create_milestone) with `date` and `projects` to tie it to the Project. |
| A Project with that name already exists | Offer to add to it rather than making a second one. |

> Why first, then one thing at a time, each after a yes.

## Related

- For people: [How do I create a project in Xale?](https://xale.app/help/new-project-plan-it-out)
- For people: [What's the difference between a Project and a Milestone in Xale?](https://xale.app/help/project-or-milestone-the-difference)
- For people: [Can AI help me plan a project in Xale?](https://xale.app/help/guided-planning-step-by-step)
- For people: [How do I import two levels into a project or milestone?](https://xale.app/help/import-two-levels-into-a-project-or-milestone)
- For people: [How do I turn a list into a project in Xale?](https://xale.app/help/make-into-a-project-from-a-list)
- Tools: [xale_read_projects](https://xale.app/docs/ai/tools/xale_read_projects)
- Tools: [xale_create_project](https://xale.app/docs/ai/tools/xale_create_project)
- Tools: [xale_save_mindmap](https://xale.app/docs/ai/tools/xale_save_mindmap)
- Tools: [xale_save_note](https://xale.app/docs/ai/tools/xale_save_note)
- Tools: [xale_update_project](https://xale.app/docs/ai/tools/xale_update_project)
- Tools: [xale_create_task](https://xale.app/docs/ai/tools/xale_create_task)
- Tools: [xale_create_milestone](https://xale.app/docs/ai/tools/xale_create_milestone)
- Read next: [Bigger goals · as a Project](https://xale.app/docs/ai/bigger-goals-as-a-project)
- Read next: [Big goal · goal into milestones](https://xale.app/docs/ai/big-goal-goal-into-milestones)
- Read next: [Projects · tasks and status](https://xale.app/docs/ai/projects-tasks-and-status)
