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
-
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.
-
Check the filled-in values. For example, the Hotel Booking Agent sample uses:
Field Value Name Hotel Booking AgentAgent handle hotel-booking-agentGitHub Repository https://github.com/wso2/agent-managerBranch mainProject Path /samples/hotel-booking-agent/agentBuild Details Python, version 3.11Start Command python -m uvicorn app:app --host 0.0.0.0 --port 8000Agent Type Chat agent -
Under Environment Variables, enter a value for each variable that the sample needs. The Hotel Booking Agent sample needs:
Key Secret OPENAI_API_KEYYes HOTEL_API_BASE_URLNo HOTEL_API_TOKENYes -
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
- To follow the build and view its logs, see Build an Agent.
- To deploy the agent after a successful build, see Deploy an Agent.
- To chat with the deployed agent or call its API, see Try Your Agent.
- To connect the agent to LLM service providers, see LLM Configurations.
- To give the agent tools from MCP servers, see Tool Configurations.
- To view the agent's traces, see Traces.
Was this page helpful?