Skip to main content
An Agent defines how a voice agent behaves. The API exposes an agent’s interface — its identity, voice, and variable contract — but not its internal configuration.
There are two agent types. Prompt-based agents (singlePrompt) are fully manageable via the API. Flow agents (conversationalFlow) are built in the dashboard; they appear in List and Get but cannot be created or modified through the API, and their internal flow configuration is never returned.

Properties

string
required
Unique identifier (UUID). Pass this as override_agent_id on Dial.
string
Agent display name.
string
The agent’s main language: he-IL, en-US, ar-EG, ru-RU or el-GR.
string
Voice display name. One of Sapir, Steve, Sivan, Saar, Ori, Yael, Guy, Gefen, Gal, Gabriel for a NEW assignment. An agent created before a voice was retired keeps reporting that voice here — the read path is not narrowed.
string
singlePrompt (prompt-based, API-manageable) or conversationalFlow (dashboard-only, read-only here).
boolean
Whether the agent is enabled.
string
System prompt. Present for prompt-based agents only.
string
Message spoken first when the agent answers. Present for prompt-based agents only.
array
Variables the agent accepts at call time — supply them via vars_provided on Dial.
array
Variables the agent extracts from the conversation after the call.
array
Webhooks fired when a call with this agent ends. Returned for every agent type, but only prompt-based agents can change them via the API. Secrets and header values are write-only and never returned.
integer
Longest a call with this agent may last, in minutes: 10, 15 or 20. All agent types.
string[]
Additional languages the agent may switch into mid-call, on top of its main language (any of he-IL, en-US, ar-EG, ru-RU, el-GR other than the main). [] when it speaks the main language only. All agent types.
object | null
When the agent ends the call itself, and what it says first. null when the agent never hangs up on its own. Prompt-based agents only.
string
Which side of the call the agent is on: service (it answers for your business, the default) or customer (it calls a business on someone’s behalf and speaks as that business’s customer). Prompt-based agents only.
string
ISO 8601 timestamp.
string
ISO 8601 timestamp.

Example