# Recipe: build an agent

> Build a support-triage agent end to end by prompting your coding agent, then run it.

This recipe builds a small agent that reads a support ticket, classifies its urgency, and drafts a reply for a human to approve. It shows the full loop from prompt to running agent.

## 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 agent

1. Open your coding agent in the empty folder.
2. Prompt it with the goal:

   "Create a UiPath agent that takes a support ticket as input, classifies its urgency as low, medium, or high, and drafts a suggested reply. Add a human approval step before the reply is sent."

3. Review the generated project — the agent definition, its inputs and outputs, and the approval step.
4. Ask the agent to run it with a sample ticket.
5. Inspect the classification and draft reply the agent produces.
6. Refine conversationally — for example, adjust the urgency criteria or the tone of the draft.

**Result:** a working triage agent that classifies a ticket and produces a draft reply gated by human approval.

:::note
The generated file layout and run commands depend on your agent and prompt. Use the classification and approval behavior, not the exact files, as your signal of success.
:::

## See also

For a more detailed example of an agent built with coding agents, see [Example: social sentiment agent](https://docs.uipath.com/agents/automation-cloud/latest/user-guide/example-social-sentiment-agent) in the Agents user guide.
