Clinic Booking Agent — WhatsApp Appointment Booking Chatbot with n8n

Bangladesh · clinics and appointment-based businesses (fictional demo clinic)

A WhatsApp and website chatbot that books real appointments. It offers three genuinely free times, understands Bangla, English and Banglish dates, confirms before booking, sends day-before reminders through n8n and passes urgent or sensitive chats to a person.

Role: Solo build: conversation design, Node.js engine, slot engine, WhatsApp webhook, n8n workflows, dashboard, tests and docs

What I built

Related live demos

Project status

Open-source portfolio project. I built this agent on my own initiative to show how an appointment business can take bookings on WhatsApp around the clock. The clinic, people and numbers are fictional and the demo runs on synthetic data with a mock WhatsApp sender. The source is public on GitHub for review under a view-only licence; a licensed build for your business is available on request.

The problem: bookings lost in the inbox

Clinics, salons and consultants in Bangladesh get most enquiries on WhatsApp and Messenger. Messages arrive after hours, staff reply late, the same slot gets promised twice and nobody sends reminders, so patients forget and chairs sit empty. A chatbot that only answers FAQs does not fix this. The agent has to see the real diary, offer times that are actually free and write the booking down.

What the agent does

The patient writes the way they normally would. The agent picks out the treatment, day, time, name and phone number in any order, offers three real free slots, asks for a clear YES and books. It can cancel and reschedule, answers timing, location and payment questions from the clinic's own settings, and never quotes a price it does not know.

System architecture

WhatsApp Cloud API and the website chat both reach the same booking agent API. n8n is the delivery layer: it receives the webhook, calls the agent, sends the reply and handles alerts, logging and reminders.

End-to-end workflow

Every inbound message follows the same path, which keeps the behaviour predictable and testable.

Sample conversation

A real run from the demo. The patient never fills a form.

Slot engine rules

Availability comes from settings, not from the model. Change the config and the same engine fits another business.

The n8n workflows

Both workflows are importable JSON with no embedded credentials. A CI script checks that every connection points to a real node and that no secrets are present.

Bangla and English understanding

Patients in Dhaka mix languages. The agent understands phrases such as kal sokale, আগামীকাল, পরশু, Bangla digits like ১৫/১২, weekday names in both languages, and times such as 5pm, 10:30, bikel or sondha. Phone numbers written with spaces, dashes, +88 or Bangla digits are normalised to one format.

Reliability and safety

The parts that usually break in booking bots are covered by tests.

Testing

25 automated tests run on Node 20 and 22 in GitHub Actions on every push.

Operator dashboard

The demo dashboard shows today's conversations, confirmed bookings, open handoffs, duplicate deliveries ignored and a live event log, next to a WhatsApp-style chat for trying the agent.

Technology stack

Node.js with no npm dependencies, WhatsApp Cloud API, n8n, Google Sheets, an optional OpenAI-compatible model for classification, and GitHub Actions for CI. For production the in-memory store is replaced by Postgres or Supabase with the same methods.

Reuse for other businesses

Everything business-specific lives in one config file: services and durations, hours, breaks, holidays, lead time and FAQ answers. The same engine works for dental and medical clinics, diagnostic centres, salons and spas, consultants, coaching centres and repair shops.

Work with me

Want a WhatsApp booking agent for your clinic or business? I can connect it to your WhatsApp Business number, Google Calendar or practice software, and add Bangla voice replies. See AI agent development services, read how much an AI agent costs, or book a call.

Tech stack

AI agent, WhatsApp Cloud API, n8n, Node.js, Chatbot, Appointment booking, Google Sheets, Bangla NLP

WhatsApp appointment booking chatbot demo: a patient books scaling and cleaning while the dashboard shows the confirmed bookingWhatsApp-style chat where the booking agent offers three free times and collects the patient's name and phone numberDashboard with an urgent emergency handoff, a human request and the event log of the booking agent

FAQ

What is a WhatsApp appointment booking chatbot?

It is an AI agent connected to your WhatsApp Business number that talks to customers, checks your real availability, offers free times and writes the booking into your system, then sends a reminder before the visit.

Can it understand Bangla?

Yes. It understands Bangla, English and Banglish date and time phrases such as kal sokale, আগামীকাল or 15 Dec around 5pm, and Bangla digits in dates and phone numbers.

Will it double-book a slot?

No. Duplicate webhook deliveries are ignored, and the slot is checked again at confirmation, so two people cannot take the same time.

Does it need n8n?

n8n handles delivery: sending WhatsApp replies, alerting staff, logging to Google Sheets and sending reminders. The agent itself is a small Node.js service, so the workflows can also be moved to Make or custom code.

Can it connect to Google Calendar or my clinic software?

Yes. The demo stores bookings in memory and logs them to Google Sheets. A production build can read and write Google Calendar, a database or practice-management software.

How much does a booking agent cost?

Pricing depends on scope: channels, integrations and languages. See the pricing guide, then book a call for a fixed quote.

Source on GitHub

Book a call · All case studies