Skip to main content
The Cartesia Agent Connector bridges Cartesia Agents with LiveAvatar. Cartesia handles the conversational AI while LiveAvatar renders the avatar video. A Cartesia Agent owns its voice, prompt, and language on Cartesia’s side — configure those on your Cartesia agent.

Requirements

Setup

1. Register your Cartesia API key:
The response returns a secret_id. LiveAvatar stores the key by reference — it is never sent inline on a session request. See Secrets. 2. Start a session with the connector: There are two ways to point a session at your Cartesia agent.
A stored voice agent is the recommended path: the configuration lives in one place, is reusable across sessions and embeds, and can be changed without redeploying your app.

How it works

  • A LiveKit room is automatically created (no WebSocket endpoint returned)
  • LiveAvatar dispatches a worker that handles interaction with your Cartesia Agent
  • Agent audio drives avatar animation in real time
The Cartesia Agent Connector uses the FULL Mode event system, not standard LITE Mode events. The WebSocket command events described in the LITE Mode Events page do not apply here. See the Events section below for details.

Events

Events are exchanged over the LiveKit data channel and differentiated by LiveKit room topic:
  • agent-control — commands you send to the avatar
  • agent-response — events the server sends to you
The following FULL Mode response events fire on every Cartesia session, on the agent-response topic: When the Cartesia Agent cleanly closes its connection (e.g. the agent hangs up), the session ends with a session_stopped event carrying stop_reason: AGENT_HANG_UP.

Billing

  • LiveAvatar: 1 credit per session minute (avatar video only)
  • Cartesia: charges separately for agent usage