# Maestro Case (Preview)

> Case Management applications for long-running, exception-heavy work, such as a claim, a dispute, or a loan application, with human review gates.

A Maestro Case moves one case instance through stages, tasks, and business rules until it resolves. Your coding agent builds a runnable `caseplan.case` with the `uipath-maestro-case` skill (see the [Skills catalog](skills-catalog.md)).

Use it for unpredictable, long-running work, such as disputes.

## What a case is built from

- **Tasks:** tenant resources, or new API workflows, agents, or business rules.
- **Transition rules:** entry, completion, exit, and re-entry.
- **SLAs and escalations:** time limits per case or stage, and breach actions.

## The full lifecycle

| Stage | What the agent does | Example prompt |
| --- | --- | --- |
| Design | Proposes stages, tasks, rules, and SLAs in one decision-first review. | *Set up a dispute-resolution case.* |
| Build | Writes TypeScript (`.case.ts`), compiles to `caseplan.case`, validates. | *Build it from the approved design.* |
| Publish | To Studio Web for preview. To Orchestrator to run live. | *Publish this case to Studio Web.* |
| Debug | Runs the case for real against live connections, on your explicit approval. | *Debug this case with a sample claim.* |

With no design document, the `uipath-planner` skill handles the design step. Nothing is built until you approve the design.

## Set up a dispute-resolution case

> Set up a dispute-resolution case with stages and milestones: intake, investigation, and resolution, with an escalation to a supervisor if investigation runs longer than three business days.

## Other cases to ask for

- Build a loan-application case with intake, credit check, underwriting, and decision stages, and manual underwriting when the credit check is inconclusive.

More: [Build a Maestro Case with a coding agent](https://docs.uipath.com/maestro/automation-cloud/latest/user-guide/building-maestro-case-with-coding-agents).
