Building a clinic WhatsApp assistant: the hard part is what it refuses to do
mohamed_ouda05 · reddit · 2026-12-05
A developer built a clinic WhatsApp assistant as a browser simulation to find where it breaks without a real clinic attached.
- Handles prices/hours from published lists, booking with confirmation cards, reschedule/cancel, complaint-to-ticket escalation, and routes medical questions to staff. Runs in Egyptian Arabic, English, and Franco-Arab.
- Key design: three refusals — no medical answers, no emergency bookings, no invented prices. Prices and slots are scripted with a single source of truth; the model only handles conversation around them.
- Early mistake: letting the model decide availability caused double-booked slots. Fix: scripted booking path.
- 75 local test scenarios pass, including a stub model that deliberately refuses, throws, and returns empty to prove the engine never leaks errors to users.
Code is public.
More from coding & agent
- Agent-native GTM teams need full-stack plus agent engineering, LangChain job post shows — BraceSproul · 2026-12-06
- Cohere Team to Host NeurIPS Panel on Shipping Frontier Research into Regulated Industries — Julianfmack · 2026-12-06
- Agentic commerce in action: snap a QR code and your agent pays for parking and donations — jeff_weinstein · 2026-12-06
- Voice agent dev: even fastest LLM API leaves laggy responses, users hang up — FalseSort5750 · 2026-12-06
- Liquid Glass UI: open-source WebGL2 React components that bend the page — GCWebDesigner · 2026-12-06
- OpenCode's Tinsel Alpha goes free: 1M-context multimodal coding model, rumored to be Muse Spark 1.4 underneath — talkaboutdesign · 2026-12-06