Skip to main content

Quick Start Guide

Choreo Agent Management deploys, governs, and observes AI agents at scale. You can, for example, give it an agent's source code. Choreo Agent Management then builds the agent, runs it, and records a trace of every request.

This quick start guides you through the following tasks:

It's intended for developers who build AI agents and want to run one on Choreo Agent Management. It assumes that you have basic knowledge of the following:

You deploy the it-helpdesk-agent sample, an IT support agent for a fictional company called AcmeCorp. It's a LangGraph agent served by FastAPI. Its tools work on mock employee data. You don't write or change any code.

Before You Start​

Before running this quick start, make sure you have the following:

  • A Google or GitHub account to sign in with.
  • An OpenAI API key, which you create in your OpenAI account. The sample agent uses it to call the model.

Part 1: Sign In and Open Your Project​

In this part, you sign in to the Console and open the project that holds your agent.

Step 1.1: Sign In to the Console​

In your browser, go to the Choreo Agent Management Console and sign in with your Google or GitHub account.

The Console opens. If you don't belong to an organization yet, it prompts you to create one.

Step 1.2: Create an Organization​

If you already belong to an organization, skip to Part 2.

Otherwise, enter a name for the organization and a handle. The handle is a short, URL-safe identifier of your organization. Then click Create organization.

The Console opens inside the organization's default project. You deploy the agent into this project.

Part 2: Deploy the Sample Agent​

In this part, you create a platform-hosted agent from the sample's GitHub folder. Choreo Agent Management builds the agent, deploys it to your first environment, and adds tracing.

Step 2.1: Open the Add a New Agent Page​

In the default project, open the Add a new agent page. If the project has no agents, the Console opens this page for you. Otherwise, in the navigation menu, click Agents, and then click New agent.

The page asks you to choose the type of agent to deploy.

Step 2.2: Select a Platform-Hosted Agent​

On the Add a new agent page, select Platform-hosted agent, then select Source code as the source type.

Step 2.3: Enter the Repository Details​

On the same form, point the agent at the sample's folder in GitHub by entering the following details. The repository is public.

FieldValue
Nameit-helpdesk
GitHub repositoryhttps://github.com/wso2/agent-manager
Branchmain
Project path/samples/it-helpdesk-agent

Step 2.4: Configure the Python Build​

On the same form, configure the agent to build and run as a Python app with tracing turned on:

  1. Select Python as the build type.
  2. In the Start command field, keep the default, python main.py.
  3. In the Language version list, select 3.11 or later.
  4. Keep auto instrumentation turned on, with the default AMP instrumentation version.

Auto instrumentation makes the agent send traces to Choreo Agent Management without any tracing code in the sample. Both the Auto instrumentation toggle and the version are already set the way the sample needs.

Step 2.5: Select the Chat Agent Type​

On the same form, for Agent type, select Chat agent. The sample serves the chat interface in the Console so you can talk to the agent.

Step 2.6: Add Your OpenAI API Key​

On the same form, in Environment variables, add the following variable and mark it as a secret:

KeyValueSecret
OPENAI_API_KEYYour OpenAI API keyYes

Leave every other setting at its default.

Step 2.7: Deploy the Agent​

To create the agent and start the build, click Create and deploy.

The build process starts and the Console opens the agent's overview page. The first build takes a few minutes. When the build completes, Choreo Agent Management deploys the agent to your first environment.

Step 2.8: Check the Deployment Status​

On the agent's page, in the Agent lifecycle section of the navigation menu, click Deploy.

When the agent is ready to receive messages, the card for your first environment shows the deployment status as Deployed:

Deploy page of the it-helpdesk agent, with the Development Environment card showing a deployment status of Deployed

Part 3: Chat with the Agent​

In this part, you send messages to the agent. You check that the agent follows a rule: verify the employee's identity before resetting a password.

Step 3.1: Open Try It​

On the agent's page, in the Agent lifecycle section of the navigation menu, click Try it.

A chat window opens. Messages you send here go to your deployed agent.

Step 3.2: Request a Password Reset​

In the chat window, send the following message:

Hi, I forgot my password and need it reset.

The agent asks you to verify your identity instead of resetting anything.

Step 3.3: Verify Your Identity​

In the same chat window, send the details of a test employee from the sample's mock data:

My email is [email protected] and my employee ID is E-1001.

The agent verifies the employee's identity and continues with the password reset. The chat interface keeps the same session while the page stays open, so the agent remembers your earlier message.

Part 4: Inspect the Trace​

In this part, you open the trace for your last message. You see the steps the agent took to answer it and the messages it sent to the model.

Step 4.1: Open the Traces Page​

On the agent's page, in the Observability section of the navigation menu, click Traces.

The page lists the traces your agent has produced.

Step 4.2: Open the Latest Trace​

In the list, click the most recent trace.

The trace shows the request as a tree of spans, one per operation, with the duration of each span. The tree includes the following spans:

  • POST /chat: the root span, which covers the whole request. Its details show the end-to-end duration and if the request completed successfully.
  • ChatOpenAI.chat: a call to the model. Its details include the model name and the number of tokens the call used.
  • execute_tool followed by a tool name: a tool the agent executed. Its details include the tool's input and output.

Step 4.3: Find the Identity Check​

In the span tree, click the execute_tool verify_identity span.

The span appears before the execute_tool reset_password span, so the agent checked the employee's identity before resetting the password. On the Overview tab, the span shows what the tool received and returned:

  • Input messages: the email address and employee ID you sent in Step 3.3.
  • Output messages: Alice Chen's employee record, with verified set to true.

Step 4.4: See What the Agent Sent to the Model​

To see the messages behind the first model call, click the first ChatOpenAI.chat span in the tree.

On the Overview tab, the Input messages section lists what the agent sent to the model:

  • System: the agent's instructions. Its IDENTITY FIRST rule tells the agent to verify the employee's identity before a password reset.
  • User and Assistant: your first message and the agent's reply, followed by your second message.

The agent sends the conversation so far with every model call. That's how it remembered your first message in Step 3.3.

Next Steps​

After completing this quick start, continue with the tutorial series. It builds on the same agent and adds governance one layer at a time:

See Also​

Was this page helpful?