
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
Meet Riley, the AI receptionist for Maple Street Dental, in a full five-turn call: insurance, price, booking, a transfer request and goodbye, with every tool call printed. Plus one bug hidden in the call, which you will fix in section four.
Install the course with uv, run 269 unit tests and 42 offline agent tests, see why console mode failed on a machine with no sound card and the real plugin bug we fixed, then the exact LiveKit Cloud steps you do yourself. Practical: a preflight check for your settings that never prints a secret.
Read a voice call as five numbers: end of turn, speech-to-text, the language model's first token, text-to-speech first byte and voice to voice. Practical: compare a call with an 800 ms budget and find that the biggest overspend is a setting, not a model.
Walk through a complete LiveKit Agents 1.8 agent: server, session, models, turn handling. Then five deliberately broken settings and the check that names each one with its fix.
A voice linter flags 6 of 8 chat-style replies and 0 of 8 rewrites. Output rules, a deterministic greeting, spelling rules and a text transform before speech, plus a real bug in that transform caught by reading the output.
Booking tools as Python methods the model can call, speakable errors, interruption-safe booking, and a read-back gate in code that treats 'yes, but make it Thursday' as a no.
The same booking flow on Qwen 2.5 3B through Ollama, for free, and what really happens: slow turns and a booking that never happens. Why small models fail at tool calling, and what that means for your model choice.
A local MCP server with one clinic tool, connected to Riley over stdio, with speakable results, a filler line and a failure rule. The scripted brain calls it; the small local model answers a wheelchair-parking question without calling it, with a vague guess that misses every fact the tool holds. How to test that tools really run.
FAQ lookup that answers only from the clinic's own text, handoffs to a billing specialist and back, and the capstone handoff bug: a new agent that lost the calendar, fixed with one argument. Practical: measure retrieval with a hit rate.
Quick note: if you have a moment, an honest rating of the course so far helps other learners decide, and your written feedback tells me what to improve next. Thank you.
Cascaded, realtime and hybrid compared on the course's price table: about 6.5 versus 16.4 cents per minute for a three-minute call. Practical: the decision rule in code. Plus a dry run of the LLM comparison harness.
Word error rate and key-term misses on twelve sample transcripts, with and without key terms, cross-checked against an independent library, and a free audio method with a local Whisper model.
Phone tools, transfers that fail politely, phone tuning, the SIP setup steps you do with your own account, and outbound reminder calls. Practical: a call gate for consent, do-not-call lists and calling hours.
Three layers of tests: unit, offline agent and live. Behaviour checks with LiveKit's testing tools, judged intents, and safety tests that check both what a guard catches and what it lets through.
Golden conversations with deliberate failures, a judge tested against them, simulated callers, and a free rule-based judge that agrees with the labels on all ten conversations.
Input and output guardrails, what a reminder in the prompt does and does not stop, PII redaction for logs, and a red-team practical where a rephrased attack slips past the patterns.
A call that survives a primary model outage, the same call without fallback, a chaos switch to test it, and cost per minute from real usage. Practical: what a cheaper text-to-speech would save.
Riley's booking flow in Pipecat 1.15 with the same business logic, the frame pipeline, renamed classes to watch for, and a practical that maps a LiveKit config to a Pipecat pipeline.
A readiness check that refuses demo settings, the Docker image, LiveKit Cloud deploy commands, and the capstone with evidence checks that will not pass on too few calls.
This course contains the use of artificial intelligence.
Build Riley, an AI phone receptionist for a fictional dental clinic, in Python with LiveKit Agents 1.8 and Pipecat 1.15. Riley answers questions from the clinic FAQ, checks a real calendar, reads every booking back before it books, hands billing questions to a specialist, transfers to a human, and keeps working when a model provider goes down.
This is a production course, not a demo. Every run on screen is real, recorded in a terminal in November 2026 with the versions pinned in the course files, and the failures stay in: a small local model that tells a caller she is booked when nothing was booked, a text-to-speech transform that swallowed a full stop, a handoff that lost the calendar, and how each one was fixed.
What you will do:
What you need: basic Python (functions, classes, async and await) and a terminal. Every offline part of the course runs for free without keys. Live voice and a phone number need a free LiveKit Cloud account; the real voice stack and live tests use your own Deepgram and Cartesia (free credit) and OpenAI (pay as you go, a few dollars for the whole course) keys. Each lecture shows the exact commands, and you sign up only when you are ready.
Every section ends with a practical in the course code, with tests that tell you when you got it right, plus a quiz and an assignment. The narration voice is AI generated.
LiveKit, Pipecat, OpenAI, Deepgram, Cartesia, Ollama and Qwen are trademarks of their respective owners. This course is independent and is not affiliated with or endorsed by any of them.