Create an AI agent from a template
agent_createCreates a new AI voice agent for this business from one of the starter templates, with the business's name, a language, optional extra languages the agent should also understand, and an optional custom greeting. The new agent answers no phone number until it is put on one. With dryRun: true (the default) it returns the name, greeting and instructions the agent would get and creates nothing. Tools such as calendar booking are added later in the portal.
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": {
"template": "<template>",
"business_name": "<business_name>"
},
"name": "agent_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | The agent's name; defaults to the business name and template | |
| dryRun | No | If true (default), only show what would be created | |
| greeting | No | The first line the agent speaks; defaults to the template's | |
| language | No | Main language code, e.g. en-IN (default) or hi-IN | |
| template | Yes | The template id, e.g. receptionist | |
| business_name | Yes | The business the agent speaks for | |
| extra_languages | No | Other language codes callers may use, e.g. ["hi-IN"] |