Cancel a Client’s Appointment in Amelia with AI
Find the client's appointment in Amelia, cancel just that one after your yes, and check it took.
Prerequisites
A site connected to WPVibe running Amelia (Booking for Appointments and Events Calendar) 2.4.15 or newer (tested on 2.4.15, free) on WordPress 6.9 or newer, with an administrator account.
My site uses Amelia for bookings. Cancel [the client's name or email]'s appointment [on the day, or for the service, for example Monday's massage]. 1. Run discover_abilities with category amelia-read, then with category amelia-write. If the amelia abilities this needs are not listed, stop and tell me to install or update the free Amelia booking plugin (Booking for Appointments and Events Calendar, 2.4.15 or newer, on WordPress 6.9 or newer). If an amelia ability answers that I am not allowed, tell me WPVibe must be connected as an administrator, then stop. 2. Amelia takes and gives dates and times in the site's own timezone, as YYYY-MM-DD HH:mm. Run amelia/list-customers with a search for the client's email, or their last name. If several match, show me them and ask which one. If none match, tell me and stop. 3. If what I described is a class, workshop or other event registration, not an appointment, tell me it is cancelled with amelia/cancel-booking, type event and the booking id it was given when it was booked, or in Amelia's Events screen, and stop: amelia/list-appointments lists only appointments. Otherwise run amelia/list-appointments with customers set to that client's id (it covers today through the next 90 days; for a later date pass dates as two YYYY-MM-DD days). Run amelia/list-services with limit 500 to name the services. Show me each appointment with its id, day, time, service and status. If the one I described is not there, tell me and stop. 4. Pick the appointment I described. If more than one fits, show me them and ask which. If it is already canceled, or its start time has passed, tell me and stop. Show me the day, time, service and client again, and tell me that cancelling runs at once, that Amelia emails the client and the staff member when its email is set up, and that it can't be undone here. Wait for my yes. 5. On my yes, take the id inside that appointment's bookings for this client (the booking id, not the appointment id) and run amelia/cancel-booking once with bookingId set to it and type appointment. If it answers with an error, do not retry: run step 3 again and tell me the appointment's status now. 6. Run amelia/list-appointments with dates set to that day and customers set to the client's id, and confirm its status is canceled. Then run amelia/check-availability with that serviceId, providerIds set to the appointment's providerId, and that day as both startDateTime and endDateTime, and tell me whether the time is free again. Do not change anything else.
Skip pasting the full prompt. Drop this into your AI on a site that already has WPVibe:
Run the “Cancel a Client’s Appointment in Amelia with AI” recipe from the WPVibe cookbook on my connected site.
A client can’t make it and asks you to cancel. You need the right appointment, not their other one next week, and you want the time freed up for someone else. Cancel the wrong one and the client gets an email about a visit they still want.
The AI finds the client in Amelia and lists their coming appointments. It shows you the one it will cancel and waits for your yes. Then it cancels it and checks Amelia shows it as cancelled. It never cancels more than the one you picked, and it can tell you whether the time is free again.
Cancelling runs at once, with no approval page, and when Amelia’s email is set up Amelia emails the client and the staff member about it. The abilities can’t bring a cancelled appointment back, so book a new one with this recipe if they change their mind. To cancel a class or event registration, use the booking id from this recipe, or Amelia’s Events screen.
Outcome
The one appointment you picked is cancelled in Amelia and checked, with nothing else changed.