Integrate a Tavus Replica into LiveKit as the conversational video avatar.
replica_id
Step 1: Setup and Authentication
TAVUS_API_KEY
in your .env
file.Step 2: Configure Replica and Persona
<api_key>
with your actual Tavus API key. You can generate one in the Developer Portal.pipeline_mode
to echo
.transport_type
to livekit
.persona_id
.Step 3: Add AvatarSession to AgentSession
tavus.AvatarSession
alongside your AgentSession
:Parameter | Description |
---|---|
replica_id (string) | ID of the Tavus replica to render and speak through |
persona_id (string) | ID of the persona with the correct pipeline and transport configuration |
avatar_participant_name (string, optional) | Display name for the avatar participant in the room. Defaults to Tavus-avatar-agent |