# Build a Maestro Case with a coding agent (preview)

> Use a coding agent such as Claude Code, Codex, or GitHub Copilot to plan, build, and deploy a Maestro Case from a prompt, BPMN model, process map, or PDD.

| | Maestro Case | Maestro BPMN |
|---|---|---|
| Content applies to | ✅ | ❌ |

:::note
Building a Maestro Case with a coding agent is in **Public Preview**.
:::

## Overview

Coding agents are a primary way to build on UiPath. Point one at a Maestro Case and it takes you from idea to production — planning, building, debugging, and deploying the case — compressing what once took weeks or months into hours or days.

Maestro Case orchestrates long-lived, goal-driven work about a specific situation — a claim, a dispute, a loan application. Building one by hand means laying out stages, wiring the tasks inside them, and encoding the policy that moves a case forward. A coding agent does that work with you: you describe the case you want, it proposes a plan, and once you approve, it builds, debugs, and deploys the case in your solution. You use the coding agent of your choice, and you stay in control at every step.

## What you can build

A coding agent takes a Maestro Case from an idea to a runnable plan. Today it can author and build:

- **Case plans** — the stages a case moves through, the tasks inside each stage, and the edges between them.
- **Case and stage SLAs with escalation rules** — a duration a case or stage is allowed to run, and what happens when it's breached (for example, escalate to a supervisor after two business days).
- **Case transition rules** — the WHEN / IF / THEN rules that govern entry, completion, exit, and re-entry, written from your business policy and SOPs so the case routes the way your operation actually works.
- **Tasks** — the agent can reference any task type from projects already in your tenant, and can build three types as net-new projects directly in the same solution:
  - **API Workflows** — system-to-system and integration steps.
  - **Agents** — reasoning-based work handled by a UiPath or external agent.
  - **Human-in-the-loop** — forms, approvals, and clarifications assigned to a person.

## How it works: plan, approve, build

The build follows a deliberate, review-gated flow:

1. **You give it a starting point** — a prompt, a BPMN model, a process map diagram, or an existing PDD.
2. **The agent drafts a plan** — it reads your input and proposes the stages, tasks, rules, SLAs, and escalations it intends to build, and shows it to you.
3. **You approve** — the agent stops and waits for your review before it builds anything. You refine the plan in conversation until it's right.
4. **The agent builds** — it authors the case plan and the task implementations, validates them, and reports back. You can publish, run, and test from the same conversation.

Because the agent pauses for your approval before building, incorrect assumptions are caught at the plan stage, rather than after a case has been built and deployed.

### Start from what you already have

A coding agent meets your process where it is. Any of these is a valid starting point:

- **A prompt** — describe the case in plain language.
- **A BPMN model** — hand over an existing process model and the agent maps it to stages and tasks.
- **A process map diagram** — a flow or swimlane diagram of how the work runs today.
- **An existing PDD** — the process definition document your BA already wrote.

The agent turns any of these into a proposed plan first, then builds on your approval.

## Works with any major coding agent

Maestro Case works with the coding agent your team already uses:

| Coding agent | Form factor |
|---|---|
| Claude Code | Terminal and IDE |
| Codex | Terminal and IDE |
| GitHub Copilot | IDE |
| Cursor | IDE |
| Jules | Agentic development platform |

The Maestro Case authoring capability is delivered as a UiPath skill the coding agent uses — you're not locked into a single proprietary tool.

## Related resources

- [Introduction to Maestro Case](introduction-to-maestro-case.md) — concepts, use cases, and the toolset behind Maestro Case.
- [Build your first Maestro Case project](building-an-insurance-claims-case-in-30-minutes.md) — a step-by-step tutorial for creating, deploying, and testing a case by hand.
- [Configuring and testing the Case Manager Agent (preview)](how-to-configure-the-case-manager-agent.md) — the runtime AI orchestrator for a deployed case, distinct from this build-time coding-agent workflow.
