Clinic reception voice assistant
A hackathon project ("Tochka Sborki" 2026) — a voice assistant that answers a clinic's calls, books appointments, makes reminder calls and hands complex cases to reception staff. I was responsible for the backend and telephony on a team of two.
- Role
- FastAPI backend, Asterisk telephony and the reception dashboard, developed with Claude Code
- Period
- 2026.10.13 → 2026.10.29
- Status
- Completed
- Stack
- Python · FastAPI · PostgreSQL · Docker · LLM API · Asterisk · Prometheus
Interface
01 / 06Problem
Per the case brief, a polyclinic with 120,000 attached patients has 12 registrars on the phone: 30–40% of calls go unanswered, and 18–25% of patients miss their appointments because nobody can remind them. Meanwhile 60% of requests are routine — booking, rescheduling, reference questions.
Solution
A patient calls and talks to the assistant as to a registrar. Speech is recognised locally; a finite-state machine drives the dialogue per the clinic's regulations, while the LLM only understands each utterance via function calling. The assistant finds free slots, books, reschedules and cancels appointments, makes reminder calls the day before, offers freed time to the first person on the waiting list and answers reference questions. A life-threatening phrase is a red flag: the assistant names 103/112 and transfers to a human; complex cases go to a registrar with a case card.
Two of us built this clinic reception assistant for the "Tochka Sborki" 2026 hackathon. I handled the FastAPI backend, Asterisk telephony, the reception dashboard and the testing console. My teammate handled voice, dialogue and the LLM. The two parts communicate through an API described in OpenAPI. We wrote the code with Claude Code.
Goals
- 01Answer every call immediately, with no reception queue
- 02Book, reschedule and cancel appointments without a registrar
- 03Remind patients about visits and offer freed time from the waiting list
- 04Dangerous and complex cases go to a human: red flags, transfers with a case card
Features
Scenarios
- 01"I'd like to see a primary care doctor this week"
- 02Identification by name and birth date; booking rules checked
- 03The assistant offers free slots; the patient picks a day and time
- 04"You are booked" is said only after the HIS answers — with date and room
- 01"My chest is tight and it goes into my arm"
- 02The code detector, before the LLM: category A — a life threat
- 03The assistant immediately names 103/112
- 04Transfer to a registrar; a case card goes into the log
Outcome
17 days, 723 commits, about 44 thousand lines of Python (14 thousand of them tests — 779 automated tests) and an eval on a live LLM: 84 of 84 control dialogs with no missed red flags, invented facts or unconfirmed HIS actions. We scored 8 points on the product checkpoint, made the final from the qualifying round and finished 6th.
The whole system ran live on the hackathon VM — inbound calls to number 047, outbound calls, the panel and the console. The code still sits in the hackathon's private repository; the link will appear once I publish the project on GitHub.