Create Agent
create_agentCreate a new KaiCalls agent — the secretary that answers this business’s calls (the live voice agent plus KaiCalls records) — with a system prompt, greeting, voice, and model. Mirrors POST /api/v1/agents. Every subsequent mutation to this agent is versioned (assistant_config_versions) and reversible via rollback_config — inspect history with get_change_history / list_config_versions. Compliance: KaiCalls automatically applies state-aware AI-disclosure and consent handling to every agent it provisions, and flags high-risk business categories for extra review.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Agent display name. | |
| model | No | Language model selection: { provider, model, temperature } (optional). | |
| voice | No | Raw voice selection: { provider, voiceId } (optional). | |
| metadata | No | Extra KaiCalls metadata to store (optional). | |
| business_id | Yes | Business ID to create the agent under. | |
| first_message | No | Spoken greeting (optional). | |
| system_prompt | Yes | The agent's inbound system prompt / instructions. | |
| voice_catalog_id | No | Preferred: a curated catalog id from list_voices (optional). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | No | ||
| error | No | Present when success is false | |
| success | Yes | Whether the tool completed successfully | |
| compliance | No |