Documentation Index
Fetch the complete documentation index at: https://docs.liveavatar.com/llms.txt
Use this file to discover all available pages before exploring further.
1. Starting a Session
- Generate a session token configured for FULL Mode on your backend
- Pass the token to your frontend application
- Call the start session endpoint
- Establish a WebRTC connection to the LiveAvatar-managed room
2. Managing the Session
Session participants
A FULL Mode session is a LiveKit room with three participants: the end user, the LiveAvatar agent, and the avatar. The agent and avatar are both managed by LiveAvatar — they join the room on your behalf.Session initialization
A session is fully initialized once all three conditions are met:- The room is created
- The avatar joins the room
- The LiveAvatar agent joins the room
Event-driven control
After connecting to the room, session management is entirely event-driven. You control the session by sending and receiving events through LiveKit data channels. Events let you:- Track speaker state (user speaking, avatar speaking)
- Capture transcript data
- Control avatar behaviors (interrupt, idle, listening)
- Direct avatar responses and audio input processing
Recommended architecture
We recommend making your frontend the primary controller for emitting events from the LiveKit room — this minimizes latency between user interactions and avatar responses. Event data can be relayed to your backend for downstream processing, logging, and analytics.3. Ending the Session
When the session ends:- The LiveKit room closes
- The avatar leaves the room
- The user is removed if still present
- External resources are cleaned up
Next steps
- Configuration — customize avatar, voice, context, and interactivity
- Events — full reference of command and response events