Create an agent
create_agentBuild two-way conversational or one-way script-only voice agents for outbound calling, defining prompts, voice settings, or fixed announcements under plan and provider limits.
Instructions
Create a conversational (two-way) or one-way (script-only, no listening) agent. Same rules as the dashboard builder, including the plan's agent limit and provider/language restrictions. For a one-way agent, set communication:"one_way" and pass announcement:{script, useCase}. Needs the "agents" scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Shown in the dashboard and in call records. | |
| params | No | Voice/model settings (ttsProvider, ttsVoice, llmProvider, sttLanguage, ...). Omit to use the builder's defaults. | |
| prompt | No | Two-way agents only. Left out entirely for a one-way agent. | |
| announcement | No | Required when communication is one_way. | |
| communication | No | Defaults to two_way when omitted. |