Projects / Customer support
Live demo

ClinicDesk AI

A 24/7 AI receptionist that answers patients and books, moves and cancels appointments — on the website, in Telegram or by phone.

n8nOpenAI toolsPostgreSQLTelegramVoice

Business problem

Small clinics lose bookings at the front desk: messages after hours go unanswered, staff repeat the same answers all day, and reschedules leave gaps in the calendar.

Solution

One AI agent with tools is built to serve the website chat, Telegram and a phone agent. It reads prices and policies from the clinic’s knowledge base, finds real free slots and books them. Complaints, medical questions and emergencies are handed to staff, who reply from Telegram.

What it saves

≈ 28 front-desk hours and $1,400+ per month

for a clinic handling 600 patient messages and calls a month

  • Manual handling: ~4 min per enquiry (prices, availability, booking, moving) → 40 h/month at the front desk.
  • The assistant fully handles ~70% of them → about 28 hours saved, ≈ $560 at $20/h.
  • After-hours enquiries are answered instead of lost: 10 extra bookings a month at $90 ≈ $900 of new revenue.
Illustrative estimate based on the assumptions above. Every business is different: the numbers are worked out for your process before anything is built.

Ways to adapt it to your business

  • Channels: website chat, Telegram, WhatsApp Business, Instagram, and a phone agent (ElevenLabs or Vapi).
  • Calendars: Google Calendar, Outlook, or the clinic’s booking system through its API.
  • Any appointment business: dental and medical clinics, beauty salons, physiotherapy, vets, tutors, repair services.
  • Deposits or prepayment with Stripe, a waitlist for cancelled slots, reviews requested after the visit.
  • Any language the patients write in; the clinic’s own tone of voice and policies.

Tech stack

n8n
channels, the agent loop, handoff, reminders, calendar sync
OpenAI
understands the patient and decides which tool to call
PostgreSQL
the scheduling engine: hours, services, bookings, knowledge base
Telegram
patient channel and the staff group for handoffs
ElevenLabs
phone agent using the same tools
Google Calendar
mirror of every booking in each doctor’s calendar
Live demo

Talk to the AI receptionist

Brightsmile Dental Studio is a fictional clinic in London. Ask about prices, book a cleaning, move it, cancel it — every booking goes through a real scheduling engine.

Runs live here

  • Website chat with the AI agent
  • Prices and policies from the knowledge base
  • Real booking, rescheduling and cancelling

Built, connected per client

  • Telegram bot with staff handoff and reply
  • Phone agent (ElevenLabs) using the same tools
  • Google Calendar sync, reminders, morning digest

Inside the workflows

Real screenshots from n8n, with what every node does.

01 · AI receptionist (website chat + Telegram)

Telegram TriggerChat WebhookLoad ConfigNormalize InboundtruefalsePatient Message?truefalseStaff Reply?truefalseInvalid WebRequest?Respond 400Staff ReplytruefalseDeliver to Patient?Send Staff Reply toPatienttruefalseWeb Patient?Tell Staff: UsePhoneStart TurntruefalseTelegram Chat?Show TypingtruefalseHuman Handling?Forward to StaffLink ForwardedMessageBuild Agent RequestAgent LoopOpenAI ChatRoute Agent OutputtruefalseTool Calls?Execute ToolsAppend Tool ResultsSave TurnFinal ReplytruefalseHandoff Started?Alert StaffLink Handoff AlerttruefalseWeb Channel?Respond to Web ChattruefalseHas Reply?Send Telegram Reply
Drag to move · scroll or pinch to zoom · click a node
  1. Chat Webhook · Telegram Trigger

    Two entry points into one brain: messages from the website widget and from Telegram.

  2. Load Config · Normalize Inbound · Patient Message?

    Loads the clinic settings and turns both channels into one message format; also recognises replies from the staff group.

  3. Invalid Web Request? · Respond 400

    Rejects malformed website requests before anything else runs.

  4. Staff Reply? · Staff Reply · Deliver to Patient? · Send Staff Reply to Patient · Web Patient? · Tell Staff: Use Phone

    When a staff member replies in the Telegram group, the answer is delivered to the right patient in the same chat. For website patients the team is reminded to call them instead.

  5. Start Turn

    A PostgreSQL function saves the message and returns the conversation memory, known patient details and handoff state.

  6. Telegram Chat? · Show Typing

    Shows “typing…” in Telegram while the assistant thinks.

  7. Human Handling? · Forward to Staff · Link Forwarded Message

    If staff have taken over the conversation, the message goes to them instead of the AI.

  8. Build Agent Request

    Assembles the system prompt (clinic, policies, time zone) and the tool definitions.

  9. Agent Loop · OpenAI Chat · Route Agent Output · Tool Calls?

    An explicit agent loop: OpenAI either replies or asks for tools, up to six rounds. Every step and token count is visible.

  10. Execute Tools · Append Tool Results

    Runs the requested tools — find slots, book, reschedule, cancel, search the knowledge base — as database functions that enforce the rules, then feeds the results back to the model.

  11. Save Turn · Final Reply

    Stores the whole turn, including tool calls, for audit and memory.

  12. Handoff Started? · Alert Staff · Link Handoff Alert

    Complaints, medical questions and emergencies alert the staff group with the conversation context.

  13. Web Channel? · Respond to Web Chat · Has Reply? · Send Telegram Reply

    The answer goes back to the channel the patient used.

Technical implementation

An explicit agent loop with OpenAI function calling in n8n. Every tool is a PostgreSQL function that decides what is allowed; an exclusion constraint makes overlapping bookings impossible even under concurrent requests. Google Calendar sync through an outbox, reminders and a morning digest.

Business value

Patients book at any hour in seconds, the front desk handles only what needs a person, and double bookings are impossible.

What this changes for the business

  • Patients get an answer and a booking at 11 pm on a Sunday, in seconds, in their own language.
  • The front desk stops repeating prices and checking the diary: it handles the visits, the complaints and the cases that need a person.
  • No double bookings and no forgotten reschedules: the database enforces the schedule and the calendar is always in sync.
  • Reminders reduce no-shows, and every conversation is logged, so the clinic knows what patients ask most.