Deploy a sandbox app • LiveKit Agents Docs • LiveKit Cloud • Blog
A basic example of an AI voice assistant using LiveKit Android Components.
The easiest way to get started is to use the LiveKit CLI. Run the following command to bootstrap this template:
lk app create --template android-voice-assistant [--sandbox <sandboxID>]
Then follow instructions to set up an agent for your app to talk to.
Clone the repository and install dependencies using Gradle, then edit the TokenExt.kt
file in the app source to add either a sandboxID
(if using a hosted Token Server via Sandboxes), or a manually generated URL and token.
Then follow instructions to set up an agent for your app to talk to.
In production, you will want to host your own token server to generate tokens in order for users of your app to join LiveKit rooms. But while prototyping, you can either hardcode your token, or use a hosted Token Server via Sandboxes).
This example app requires an AI agent to communicate with. You can use one of our example agents in livekit-examples, or create your own following one of our agent quickstarts.