Get an AI agent running in four steps — create an agent, add a knowledge source, train it, then start chatting.
Create your agent with a name and category. Save the id from the response — you'll need it in every subsequent step.
Attach content to your agent so it has something to learn from. Supported types include url, text, and file.
Trigger training to index all attached knowledge sources. The agent's status immediately changes to "Training" and transitions to "Active" on success.
The endpoint streams back SSE events as training progresses:
Training typically completes within seconds to a few minutes depending on the size of the knowledge sources. Wait for status: "Active" before starting a chat session.
Connect to the WebSocket endpoint and send messages to start a real-time conversation with your agent.
Start building intelligent AI agents to engage with customers.