Create an agent
create_agentCreate a draft voice agent from just a name, with optional instructions, LLM, voice, greeting, and knowledge base settings. Configure the system prompt and placeholders before launching calls.
Instructions
Create a new agent (status 'draft'). Only name is required; the server defaults the rest. instructions is the system prompt; it may contain {placeholders} filled per call (variables). Use GET-style tools first to pick llm/voice values the account already uses.
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": {
"name": "<name>"
},
"name": "create_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| llm | No | LlmConfig, e.g. {"provider": "gemini", "model": "..."}. | |
| name | Yes | ||
| tags | No | ||
| tools | No | ||
| voice | No | VoiceConfig (provider, voice id, language). | |
| greeting | No | First thing the agent says. | |
| description | No | ||
| instructions | No | System prompt: role, goal, tone, rules, what to collect. | |
| default_language | No | e.g. 'en', 'hi'. | |
| knowledge_base_ids | No |