create-agent
create-agent
An Omniagent is the deployable unit: one persistent identity — persona, voice, knowledge, tools, memory — available across every channel. You define it once and deploy it to web, audio, or phone. This skill creates the agent from an existing persona ID; the output is an agent ID.
The persona/agent split is deliberate: the persona holds the stable identity (face, personality — the avatar is generated once, there), while the agent holds the configuration around it. Reuse one persona across several agents when you want the same character with different tools or knowledge; reconfiguring an agent never touches the persona or its avatar.
Creating the agent does not make it reachable. End users reach it only after you configure a channel ([[deploy-webrtc]], [[deploy-websocket]], or [[deploy-phone]]).
Prerequisites
- A persona ID (
companionId). If you don't have one, route to [[create-persona]]. - A voice ID. Required. Don't hardcode or guess the list — it changes. Fetch the current supported voices from the docs before choosing one: the docs MCP server
fetch-pageslugbuilding-your-omniagent/configuration(the Voice section), orget-overview. The examples below use a placeholder value; substitute a voice from that list. Note: an invalid voice is not rejected when you create the agent —POST /public/agentssucceeds regardless. Problems surface later, at one of two points. When you create the connection, the API returns a400for what it can check itself: a missingvoiceId, a digital twin whose cloned voice isn't ready, a tool / FAQ collection / MCP server that doesn't exist, or an API key whose provider isn't enabled for your organization (ProviderNotEnabled). After the client connects, the AI provider checks the rest: an unrecognized voice or model, rejected credentials, or instructions that are too long. The connection request succeeds, then the client receives aprovider_connection_abortedevent (error.code:invalid_voice,invalid_model,invalid_credentials,instructions_too_long,connection_failed) and the session closes. Get the voice right up front, and handle that event in your client. - Optionally: tool IDs ([[create-tool]]), a knowledge base ID and/or one FAQ collection ID ([[add-knowledge]]).