# Recipe: build a Maestro Case

> Build and publish a Maestro Case that manages a customer dispute through intake, investigation, and resolution, with an escalation if it runs long.

This recipe builds a Maestro Case that manages a customer dispute from intake through resolution, with stages for investigation and an escalation if the case runs too long. It shows the full loop from your prompt to a case you can publish and run.

## Prerequisites

- The `uip` CLI and skills installed, and an authenticated session (see [Install and set up](install-and-set-up.md)).
- An empty working folder.

## Build the case

1. Open your coding agent in the empty folder.
2. Describe the case:

   "Set up a dispute-resolution case with stages for intake, investigation, and resolution. Escalate to a supervisor if the case is in investigation for more than three business days."

3. Review the design packet the agent proposes — the stages, the tasks inside each one, the escalation rule, and every resource decision it made. Correct anything that's off before approving.
4. Approve the design. The agent builds and validates the case definition.
5. Ask the agent to publish the case to Studio Web so you can preview it visually.
6. Refine in conversation — for example, add a stage for appeals, or change who the escalation notifies.

## Result

A validated, published Maestro Case that takes a dispute from intake to resolution, with an escalation if investigation runs long.

## Next steps

Before running the case against real data, ask the agent to walk through a debug session with a sample dispute so you can confirm the routing and escalation behave as expected. See [Maestro Case](build-maestro-case.md).

:::note
The generated stages, tasks, and commands depend on your agent and prompt. Use the escalation and routing behavior, not the exact files, as your signal of success.
:::
