The front desk demo from the LiveKit homepage. Riley answers the phone at Juniper Health, Dr. Maya Okafor's practice, to show how a voice agent checks who's calling before it opens a patient's records. The clinic, its patients, and its calendar are made up.
- Inbound, front desk: Riley finds the caller's chart by their date of birth and the spelling of their name, or registers them as a new patient. Then it books an appointment or moves one they already have.
- Outbound, confirmation call: Riley calls a patient about their next appointment, verifies them with a demo note that any date of birth will do, and confirms it. It takes a note for the doctor, or moves the appointment if the time no longer works.
The job metadata picks the call. "direction": "outbound" makes it the confirmation call, and
"dial", with "trunk" and "from", rings a real phone. Otherwise the agent waits for someone to
join the room.
src/agent.pyis the entrypoint for thehomepage-front-deskagent. It sets up the session and starts the right call.src/receptionist.pyholds Riley's two roles,ReceptionistandConfirmationCall, with their instructions and tools.src/clinic.pyis the made-up clinic: its charts, calendar, and appointments. It publishes each change as aclinic.*attribute for the demo page.src/clinic.jsonseeds the clinic, its patients, open times, and appointments.src/simulation.pygrades a simulated call on what the clinic ended up with, against the scenario'sexpecteduserdata.src/suggested_replies.pysuggests what the caller could say next after each of Riley's turns, for the page's "try saying" line.src/phone.pyrings a real phone for an outbound call.
The voice pipeline runs on LiveKit Inference: assemblyai/assemblyai-stt-3-7-realtime-agent for
speech to text, Gemma 4 31B (google/gemma-4-31b-it) as the LLM, Rime Coda (rime/coda) for the
voice, and the LiveKit turn detector. Suggested replies also use Gemma 4 31B, and ai-coustics cleans
up the caller's audio.
The demo page reads the clinic.* attributes, so changing their shape needs a matching change to
the page.
uv sync
lk app env --write --destination .env.local
lk agent devThen talk to it in the Agent Console, or run
lk agent console to talk to it in your terminal. To try it one text turn at a time, use the
agent debugger:
lk agent debugger start
lk agent debugger say "Hi, I'd like to move my appointment."
lk agent debugger stopuv run pytest
lk agent simulate text --scenarios scenarios.yamlEach scenario's expected userdata says what the clinic should end up with, and
src/simulation.py fails the run if it doesn't. The quiet-caller scenario needs real silence, so it's in
scenarios-audio.yaml and runs with lk agent simulate audio --scenarios scenarios-audio.yaml.
lk agent deploy .This needs a livekit.toml that names the agent. It's gitignored, and the repository's
Deploy Homepage Examples workflow
writes one for each homepage demo.