Find Open Appointment Times to Offer a Client with LatePoint and AI
The open times your booking form would offer for a service, day and staff member, with a reply ready to paste.
Prerequisites
A site connected to WPVibe running LatePoint 5.7.9 or newer (tested on 5.7.9, free) on WordPress 6.9 or newer, with an administrator account, and Enable Abilities turned on under LatePoint, Settings, General (MCP section).
My site uses LatePoint. A client wants [the service, for example a deep tissue massage] on [the days and times, for example next Tuesday or Wednesday after 3 pm] [with a staff member's name, or with anyone] [at a location, if I have more than one]. Find open times I can offer. Don't book anything. 1. Run discover_abilities with category latepoint. If no latepoint abilities are listed, stop and tell me to install or update the free LatePoint plugin (5.7.9 or newer, on WordPress 6.9 or newer) and turn on Enable Abilities under LatePoint, Settings, General, in the MCP section: it is off by default, and nothing is listed until it is on. This only reads, so Enable Edit Abilities and Enable Delete Abilities can stay off. If a latepoint ability answers that I am not allowed, tell me WPVibe must be connected as an administrator, then stop. 2. Run latepoint/get-services with status active and pick the service I mean; if more than one could match, show them with their length and ask. Run latepoint/list-locations with status active: if there is more than one, use the one I named or ask me. Always pass the location: the open times don't say which location they are for. Run latepoint/get-agents with status active to put names to agent_id, and find the staff member I named, if any. 3. For each day I asked about (at most 7), run latepoint/get-available-slots with service_id, the date (YYYY-MM-DD), location_id, and agent_id if I named someone. These are the times the booking form offers that day. If a day has none, say why it may be: the day is past or outside the earliest and latest booking limits in LatePoint's settings, nobody who offers the service works that day at that location, the staff member I named doesn't offer it there, or it is fully booked. If it returns an error instead, tell me a booking that day may have no end time, which breaks LatePoint's open times, and to check that day in LatePoint. 4. LatePoint gives times as minutes after midnight in the site's timezone: 540 is 9:00 am, 780 is 1:00 pm. Keep only the slots inside the times I asked for. 5. Show up to five times per day, spread through the window, each with its staff member, then a short reply I can paste to the client offering them. 6. Tell me to book the time the client picks through the booking form or in LatePoint's admin, so LatePoint sends its confirmation and holds the slot. Do not create, change or cancel any booking.
Skip pasting the full prompt. Drop this into your AI on a site that already has WPVibe:
Run the “Find Open Appointment Times to Offer a Client with LatePoint and AI” recipe from the WPVibe cookbook on my connected site.
A client calls or emails: can I get a massage next Tuesday or Wednesday, after three? Answering means opening the calendar, checking each staff member who does that service, and working out what fits around the bookings already there.
The AI asks LatePoint for the open times on each day, for that service and location, and with the staff member the client wants if they named one. These are the same times your booking form offers. It keeps the times inside the client’s window, picks a few spread through the day, and writes a short reply you can paste. It doesn’t book anything.
Book the time the client picks through your booking form or in LatePoint’s admin, so LatePoint sends its confirmation and holds the slot: bookings made through the abilities skip LatePoint’s emails and record no price. By default only approved bookings hold their time, so a time with a pending booking can still show as open, as it does on your booking form.
Outcome
A few open times per day with the staff member for each, and a reply to send the client, with nothing booked or changed.