Create an AI agent
create_agentCreate a first-class Skysay agent in external_audio, external_text, or hosted mode. Creating an agent does not make any number answer with it: when the agent can answer calls and the credential may read numbers, the result's numbers_not_answering names the project's numbers that answer nobody (a sample of the newest 50), and update_number_rules sets who answers. Hosted agents can choose a shared stack and selected languages; locale overrides remain draft data until the explicit voice-stack publish command. An engine whose agent-catalog row says has_language_axis false (a voice-to-voice engine) refuses languages, language_profiles and follow_caller with a 400 naming the field and the engine.
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": {
"project_id": "<project_id>",
"name": "<name>",
"mode": "<mode>"
},
"name": "create_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| name | Yes | ||
| model | No | ||
| voice | No | ||
| language | No | ||
| languages | No | ||
| project_id | Yes | ||
| prompt_name | No | Name of the AI agent's initial prompt draft, shown in the prompt editor. Defaults to "Initial prompt". | |
| request_key | No | 1 to 200 ASCII characters. Names this creation attempt for its workspace and project. Sent again with the same content it returns the AI agent the first request created; with other content it is refused and names that agent. | |
| transcriber | No | ||
| webhook_url | No | ||
| call_summary | No | The free AI call summary: enabled (default true) and an optional goal line (at most 4000 characters) the call is judged against. | |
| begin_message | No | ||
| first_message | No | ||
| system_prompt | No | ||
| voice_frontend | No | Optional conversation engine. Omit or cascade keeps STT/LLM/TTS. gpt_live selects GPT-Live 1.1. Each engine declares whether it has a language axis as has_language_axis in get_agent_catalog. | |
| organization_id | No | Optional. Defaults to the authenticated workspace; when supplied it must be that workspace's id. | |
| audio_stream_url | No | ||
| language_profiles | No | ||
| require_published | No | End with a published AI agent or with nothing: a refusal anywhere, publication included, creates nothing. | |
| knowledge_base_ids | No | Knowledge bases of this project to attach. Needs knowledge:write. | |
| voice_confirmation | No | Mark the AI agent's voice as not yet confirmed; a voice-stack save with voice_confirmation confirmed clears it. | |
| post_call_extraction | No | The result fields written down after each call, as set_agent_post_call_extraction takes them. | |
| follow_caller_where_supported | No | Follow the other person's language for every language this setup supports where it can, otherwise answer in the opening language only; decided again on every save that sends it, and a save is refused (voice_setup_changed) when another save changed the setup so that this decision no longer holds: send it again. Omit follow_caller, languages, language_profiles and voice_setup beside it. A conversation engine without a language axis stores nothing. |