Skip to main content

Create an Agent from a Sample

A sample is a ready-made agent that you configure and deploy as a platform-hosted agent. It's a quick way to try the platform.

Steps​

  1. On the Add a New Agent page, under Start Quickly with a Sample, click a sample.

    The Create a Platform-Hosted Agent form opens with its fields filled in from the sample. A banner links to the sample's README, which has its setup and testing details.

  2. Check the filled-in values. For example, the Hotel Booking Agent sample uses:

    FieldValue
    NameHotel Booking Agent
    Agent handlehotel-booking-agent
    GitHub Repositoryhttps://github.com/wso2/agent-manager
    Branchmain
    Project Path/samples/hotel-booking-agent/agent
    Build DetailsPython, version 3.11
    Start Commandpython -m uvicorn app:app --host 0.0.0.0 --port 8000
    Agent TypeChat agent
  3. Under Environment Variables, enter a value for each variable that the sample needs. The Hotel Booking Agent sample needs:

    KeySecret
    OPENAI_API_KEYYes
    HOTEL_API_BASE_URLNo
    HOTEL_API_TOKENYes
  4. Click Create and deploy.

The agent's Overview page opens and the first build starts. For what each field means, see Create an Agent from Source Code.

Next steps​

Was this page helpful?