Book an Appointment for a Client in Amelia with AI
Find a free time in Amelia, check the client is on file and book them after your yes.
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. Book [the client's name and email] for [the service, for example a deep tissue massage] on [the days and times they can do, for example next Tuesday or Wednesday after 2 pm]. 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-services with a search for one word of the service. If several match, show me their names, lengths (duration is in seconds) and prices and ask which one. If none match, run it again with no search and limit 500, show me the services and stop. 3. Run amelia/list-employees and tell me who will do it. The free version of Amelia lists and offers times only for its first staff member; if I asked for someone else, tell me so and ask whether to go on. 4. Run amelia/list-customers with a search for the client's email, then their last name. If several match, show me them and ask which one. If you find one, show me the record and ask if it is the right person. If not, show me the first name, last name and email you would add and wait for my yes; then run amelia/add-customer. If it answers that the email already exists, search again by that email and use that record; if that still finds no client, tell me the email belongs to someone else in Amelia, such as a staff member, and stop. Then run amelia/list-appointments with customers set to the client's id and dates set to the first and last of the days they can do (YYYY-MM-DD). If they already have an appointment there with status approved or pending, show it to me and ask whether they want another; do not book a second one without my yes. 5. Run amelia/check-availability with the serviceId, providerIds set to that staff member's id, and startDateTime and endDateTime set to the days the client can do (YYYY-MM-DD, at most 14 days apart). Keep only the slots that match what the client asked for and that are later than now. Offer me up to five. If there are none, say so and suggest the nearest free days; do not book a time that is not in the slots. 6. Before booking, show me one summary: service, price, day and time, staff member, client name and email. Tell me that booking is final from here, that Amelia marks it approved, and that if Amelia's email is set up it emails the client and the staff member at once. Wait for my yes. 7. On my yes, run amelia/create-appointment once with serviceId, providerId, customerId and bookingStart (YYYY-MM-DD HH:mm). If it answers that the time slot is unavailable, tell me it was just taken, run step 5 again and offer the next times; do not retry on your own. 8. Run amelia/list-appointments with dates set to that day and customers set to the client's id, and confirm the appointment is there with status approved. Tell me the appointment id and the booking id (in bookings), which is the one to give if it ever needs cancelling.
Skip pasting the full prompt. Drop this into your AI on a site that already has WPVibe:
Run the “Book an Appointment for a Client in Amelia with AI” recipe from the WPVibe cookbook on my connected site.
A client calls or emails to book. You have to find a free time that suits them, check they are already on file, and enter it all in Amelia while they wait. On a busy day it waits until the evening, and by then the time they wanted may be gone.
The AI finds the service in Amelia, looks the client up, checks they aren’t already booked on those days, and offers only the times Amelia says are free. Before it books anything it shows you the service, the time, the staff member and the client, and waits for your yes. It adds a new client only after you check their name and email. Then it books and checks the appointment is on the calendar.
Booking runs at once, with no draft and no approval page: Amelia marks it approved and, when Amelia’s email is set up, emails the client and the staff member right away. Amelia refuses a taken time but will save one in the past, so the AI checks the time first. The free version of Amelia lists and offers times for one staff member. To see the week first, use this recipe.
Outcome
One approved appointment in Amelia for your client at a free time you approved, and checked on the calendar.