LiveKit Worker
For production deployments, run the Voiceblox agent as a standalone LiveKit worker process. The worker connects to your LiveKit server, watches for new rooms, and starts an agent for each room that has a validAgentConfig in its metadata.
Starting the worker
Required environment variables
How it works
- The worker process connects to your LiveKit server
- When a new room is created with
AgentConfigJSON in the metadata, the worker picks it up - The worker calls
graphToConfig()to parse the config - It builds LLM, TTS, and STT instances using
buildLLM(),buildTTS(),buildSTT() - The agent joins the room and starts the conversation
Worker mode vs. local mode
| Mode | When used | How started |
|---|---|---|
| Worker mode | Production | pnpm agent:start |
| Local mode | In-browser testing | /api/agent-session endpoint |