This is a starter template for LiveKit Agents that provides an example of how you might approach building a LiveKit web embed using the LiveKit JavaScript SDK. It supports voice and transcriptions.
This template is built with Next.js and is free for you to use or modify as you see fit.
Tip
If you'd like to try this application without modification, you can deploy an instance in just a few clicks with LiveKit Cloud Sandbox.
Run the following command to automatically clone this template.
lk app create --template agent-embed
Then run the app with:
pnpm install
pnpm build-embed-popup-script # Builds a script used by the popup embed
pnpm dev
Open http://localhost:3000 in your browser, and follow the instructions.
You'll also need an agent to speak with. Try our Voice AI Quickstart for the easiest way to get started.
Note
If you need to modify the LiveKit project credentials used, you can edit .env.local
(copy from .env.example
if you don't have one) to suit your needs.
This template is open source and we welcome contributions! Please open a PR or issue through GitHub, and don't forget to join us in the LiveKit Community Slack!