Skip to main content
This sample uses Gemini Live. The same avatar flow applies to agents that use separate STT, LLM, and TTS components. Want more examples? Check out the Quickstart Repo, which has examples you can easily clone and run in under 5 minutes.

Prerequisites

  • A Protoface API key from app.protoface.com.
  • A LiveKit project with LIVEKIT_URL, LIVEKIT_API_KEY, and LIVEKIT_API_SECRET.
  • A Google Gemini API key for the sample realtime model: GOOGLE_API_KEY.

1. Install

2. Set environment variables

Create .env:

3. Add the avatar

Create agent.py:

4. Run the agent

Open Agents Playground, connect it to your LiveKit project, join the room, and talk to the agent.

Expected result

  • A protoface-avatar-agent participant joins the same LiveKit room.
  • The avatar publishes audio/video.
  • avatar.session_id contains the sess_... ID.

Troubleshooting

Next

LiveKit Agents guide

Configuration options and lifecycle details.

More Integrations

Quickstarts for other platforms and SDKs.

Avatars

Choose the avatar ID for your app.