Skip to main content
POST
Creates a prompt-based voice agent and deploys it immediately — the returned agent_id can be used right away as override_agent_id on Dial.
Only prompt-based agents can be created via the API. Flow agents (multi-step conversational flows with branching, function calls, and knowledge bases) are built in the dashboard.

Body Parameters

string
required
Agent display name.
string
required
System prompt that defines the agent’s behavior.
string
default:"he"
Language code, e.g. he or en.
string
default:"Ori"
Voice display name. One of Sapir, Steve, Ori, Yael, Guy, Gefen, Gal, Gabriel.
string
Message the agent speaks first when it answers. When empty, the agent opens the conversation from the prompt.
array
Variables to supply at call time (via vars_provided on Dial).
array
Variables the agent should extract from the conversation after the call.

Response

The created Agent object.