Create a voice agent
create_agentCreate a voice agent
Creates a voice agent and provisions it in the voice engine in the same request, so the agent is ready to take calls as soon as the call succeeds. Only name and language are required; every other field falls back to a platform default, and language is normalised to a two-letter code, so a value like "german" is stored as de. The response is a short acknowledgement rather than the full agent, so read the agent back if you need the stored configuration. The new agent is created with status active and is owned by the account behind the key, or by the reseller for a reseller key.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"body": "<body>"
},
"name": "create_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | The agent configuration. `systemToolsConfig` switches on the built-in call-control tools, and `transferNumbers` lists the numbers the agent may hand a call over to. |