In-Browser Playground
The Test Panel lets you run a live voice session with your agent directly in the browser. No deployment needed.Requirements
LIVEKIT_URL,LIVEKIT_API_KEY,LIVEKIT_API_SECRETin.env.local- At least one LLM, TTS, and STT configured in your flow
- Microphone access in the browser
Starting a session
- Click Test in the top toolbar
- The Test Panel opens on the right side of the canvas
- Click Start Session
- Allow microphone access when prompted
- The agent speaks its opening line — start talking
What happens under the hood
When you click Start Session:- The frontend POSTs to
/api/agent-sessionwith your current flow’s nodes and edges - The server converts the graph to an
AgentConfigviagraphToConfig() - A LiveKit room is created and an agent is spawned in-process
- You receive a JWT token to join the room
- The frontend joins the room using the LiveKit SDK
- The agent publishes
voiceblox.agent.eventsdata messages that the frontend listens to
During a session
- Speak into your microphone to interact with the agent
- Watch the active conversation step highlight on the canvas in real time
- View the conversation transcript in the Test Panel
- The session ends when the agent reaches an End node or you click End Session
Ending a session
Click End Session in the Test Panel. This callsDELETE /api/agent-session to clean up the LiveKit room and agent process.