Prepare the platform
1
Create an agent
In the console, open Agents and create an agent. Give it a name, choose a model, and add focused instructions. See Create your first agent.
2
Add knowledge (recommended)
Open the agent’s Knowledge area and add text, Q&A, a file, or a website. Wait until indexing finishes before testing questions that depend on the source. See Add knowledge.
3
Test the agent
Try a few questions in the agent’s Playground and refine the instructions or sources. See Test and improve.
4
Create an API key
Open API Keys in the console, create a key, and store it securely on your server. See API key guidance.
Send a message
Replace{AgentId} with the agent ID shown in the console. Set the API key as an environment variable before running this request.
output.reply.content. A stable userId associates requests with a persistent conversation. Keep the key in trusted server-side code; never expose it in browser code.
Continue learning
Platform guide
Learn to manage agents and the workspace.
Authentication
Understand Bearer authentication and key validation.
Persistent conversations
Manage per-user conversation history.
Streaming
Receive replies as Server-Sent Events.

