Shahzain-Ali/whatsapp-ai-receptionist ? reverse-engineered prompt

Reverse engineered prompt

Build me a WhatsApp AI receptionist for a clinic that works 24 7.

It should reply to patients on WhatsApp, answer common questions like hours, fees, services, and doctor info using only the clinic’s saved details, and then help book appointments end to end. The booking flow should feel natural, ask for the missing details, check if the time is free, and confirm the appointment in the chat. Make it so a clinic owner can optionally approve bookings first if a setting is turned on.

Use a FastAPI webhook for WhatsApp Cloud API messages, and keep the booking data in Google Sheets so availability stays live. I want the agent logic to be clean and easy to swap for a different clinic by changing a business profile file. Also add basic safety so it does not invent answers, and it should not double book a patient or time slot.

If you need to look up the latest docs for anything, go ahead and do that.