Create an agent
create_agentCreate a phone voice agent by selecting STT, LLM, and TTS engines or a single realtime model, then set its system prompt, opening message, and language for live calls.
Instructions
Create a voice agent. Pick models with list_engines first: an unavailable or mistyped model is rejected with unsupported_model. voice is either a composed pipeline {stt, llm, tts} or a single {realtime} model, never both.
Requires scope agents:write.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | A label for your own reference, e.g. "Support line". | |
| voice | Yes | Either a COMPOSED pipeline {stt, llm, tts} (all three required together) or a single REALTIME model {realtime}. Never both. Use list_engines to pick models that are available right now. | |
| language | No | BCP-47 tag for the conversation, e.g. "en-US" or "hi-IN". | |
| system_prompt | Yes | The agent's instructions. This is a spoken conversation, so keep it short, concrete, and free of markdown. | |
| opening_message | Yes | Spoken as soon as the call connects. Supports {{name}} style merge fields from the lead. Required: an agent without one answers in silence. | |
| knowledge_base_id | No | A knowledge base the agent can draw on. See list_knowledge_bases. | |
| outbound_phone_number_id | No | Default caller id for outbound calls placed with this agent. See list_phone_numbers. | |
| appointment_booking_enabled | No | Let the agent book appointments during a call. |