Bookings
Connect a booking endpoint so customers can book or look up appointments from the chat widget.
What customers can ask
“Can I book a fitting for Saturday at 2pm?” With a booking endpoint connected, repliyo understands the request, pulls out the date, time and type of appointment, and calls your booking system with them.
repliyo doesn't run a calendar of its own. Your endpoint does the actual booking or lookup and decides what to reply with; repliyo handles the conversation around it.
Set it up
Under Endpoints, add an endpoint for the Booking question type. You can use these placeholders in its URL:
- •
{booking_date}— the date the customer asked for - •
{booking_time}— the time the customer asked for - •
{service_type}— what they want to book, such as a fitting or a consultation - •
{booking_id}— an existing booking, when the customer asks about one they already have
Question type: Booking
Method: POST
URL template: https://shop.example.com/api/bookings?date={booking_date}&time={booking_time}&service={service_type}
Auth header: Authorization: Bearer <your token>Use GET or POST. Either way repliyo sends no request body, so every value travels in the URL, as above. See Request & response mapping for how your response becomes the reply.
Identity and privacy
Bookings are treated as sensitive, the same way order questions are: an anonymous visitor is asked for the email address on their account before repliyo calls your endpoint, and a visitor your site has identified with a signed token is not. repliyo doesn't verify that email itself, so have your booking API validate each request. Details are in Authentication.
Tips for a good booking reply
- •Return a short, human-readable message in your response, such as “You’re booked for Saturday, 2:00pm”, and point the response path at it.
- •Handle a full or unavailable slot in your own API and say so in the message, so the customer gets a useful alternative instead of a silent failure.
- •Respond within 10 seconds; repliyo gives up after that and asks the customer to try again.
