Agents
Agents represent AI personas (e.g., Support Bot, Sales Agent) that can have phone numbers attached to them. Each agent can be configured with a voice mode, system prompt, greeting message, and voice selection.
Voice modes
Agents support two voice modes for handling calls:
webhook(default) — Forwards call transcripts to your configured webhook URL. You process the transcript with your own AI backend and return a response.hosted— Uses a built-in LLM with the agent’ssystemPrompt. No webhook is needed for voice conversations; the platform handles the AI interaction directly.
Create agent
Create a new agent.
Request body
Example
List agents
List all agents for this project.
Query parameters
Example
Get agent
Get a single agent with its attached numbers.
Example
Update agent
Update an agent’s configuration. Use this to change voice mode, system prompt, greeting, or voice.
All fields are optional. Only include the fields you want to update.
Example
Delete agent
Delete an agent. Phone numbers, conversations, and calls associated with the agent will have their agent reference cleared but will not be deleted.
Example
Attach number to agent
Attach an existing phone number to an agent. The number must belong to the same project and must not be released.
Request body
Example
List agent conversations
List all conversations for a specific agent.
Example
List agent calls
List all calls for a specific agent.
