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. Its starting settings are saved as version 1 and each later change as a new version (list_config_versions); rollback_config restores a version's greeting, voice, prompt, model and summary/scoring. 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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"business_id": "<business_id>",
"name": "<name>"
},
"name": "create_agent"
}
}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). Leave it out to use the industry intake greeting, which opens on the caller's need. | |
| system_prompt | No | The agent's inbound system prompt (optional). Leave it out to start on the business's industry intake script, the same one a signup gets. | |
| vertical_pack | No | Setup pack id (optional; inferred from the business when left out). One of: hvac, plumbing, electrical, general-contractor, garage-door, general-contractors, handyman, landscaping, moving, pest-control, pool-service, cleaning, roofing, personal-injury, family-law, insurance-claims, criminal-defense, eviction-law, legal-family-law, immigration-law, legal-personal-injury, party-rentals, tent-rentals, event-equipment, equipment-rental, restaurant-orders, catering, auto-repair, mobile-mechanic, towing, dive-shop, fitness, wellness-recovery, chiropractic-pt, chiropractic, dental, medical-practice, med-spa, mental-health-therapy, veterinary, photography, salon-barbershop, financial-services, insurance-agency, tax-accounting, property-management, real-estate. | |
| 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 | |
| script | No | ||
| success | Yes | Whether the tool completed successfully | |
| warnings | No | ||
| compliance | No |