Skip to main content
Cookbook Maintenance LatePoint

See Tomorrow’s Appointments in LatePoint with AI

Tomorrow's bookings by staff member, with each client's phone, comments and notes, first visits marked, and what needs you flagged.

Difficulty Beginner
Time ~5 min

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).

The prompt
My site uses LatePoint for appointments. Give me the schedule for [tomorrow, or the date you want]. Don't change 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. Work out the date in the site's timezone (YYYY-MM-DD; if you can't tell the site's timezone, ask me for the date) and run latepoint/get-bookings-for-date with it. Run latepoint/list-locations once to put names to location_id.
3. Set cancelled bookings aside for a short list at the end. LatePoint gives times as minutes after midnight in the site's timezone: 540 is 9:00 am, 780 is 1:00 pm.
4. Group the rest by staff member (agent_name), in time order: start and end time, service, customer, the location if there is more than one, and the booking's comment (notes: from the booking form, or added by staff) if there is one. Mark pending bookings as not approved yet. If a booking's end_time is 0, show its end as start_time plus duration and flag it: it has no end time saved, which breaks LatePoint's open times for that day until it is fixed.
5. For each customer, run latepoint/get-customer with id set to the booking's customer_id, and add their phone number and the notes on their client record (their latest booking-form comment, or what staff typed there), labelled client notes, unless they are word for word the booking's comment. Run latepoint/get-customer-bookings with customer_id and per_page 100; if none of their bookings before this date has status approved or completed, mark this as a first visit (LatePoint doesn't mark past bookings completed by itself, so approved ones count too).
6. Flag what needs me: pending bookings to approve, any booking with no staff member (agent_name empty), and two bookings for the same staff member whose times overlap. Don't flag bookings for the same service at the same start time when that service's capacity_max (from latepoint/get-services) is above 1: that is a group booking. Overlaps of different services may be allowed in LatePoint's settings, so call them worth a look, not errors.
7. End with the number of bookings per staff member and how many are pending.
Already connected?

Skip pasting the full prompt. Drop this into your AI on a site that already has WPVibe:

Run the “See Tomorrow’s Appointments in LatePoint with AI” recipe from the WPVibe cookbook on my connected site.

Before the day starts you want one list: who is coming, when, for what, with whom, and what to know about each client. LatePoint’s calendar shows the bookings, but each client’s phone number, notes and past visits are another click per booking.

The AI reads the day’s bookings from LatePoint, groups them by staff member in time order, adds each client’s phone number, the booking’s comment and the notes on the client’s record, and marks first visits. It flags what needs you: bookings still waiting for approval, overlapping bookings for one person, and a booking whose staff member is missing. It only reads, so nothing on your site changes.

Ask for tomorrow, or name any date. Cancelled bookings are listed apart at the end. The admin notes your staff keep on a client aren’t available to the AI, so check those in LatePoint. The recipe needs only LatePoint’s Enable Abilities switch, so leave the edit and delete switches off. To find a free time for a client who calls, use this recipe.

Outcome

One list of the day's appointments by staff member, with client details and anything that needs you, and nothing changed.