Skip to main content
Cookbook Marketing Amelia

Add a Class or Workshop to Amelia with AI

A class or workshop set up in Amelia from a sentence, checked with you and kept hidden until you show it.

Difficulty Beginner
Time ~5 min

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.

The prompt
My site uses Amelia for bookings. Add [the event, for example a Saturday yoga workshop] on [the date] from [start time] to [end time], [price, or free], for [number of places] people.

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. Check the details before anything else: the end must be later than the start on the same day, the start must be later than now, the price must be 0 or more, and places at least 1. Amelia would save an event that ends before it starts, so if anything is off or missing, ask me; do not guess a time, price or number of places.
3. Run amelia/list-events with a search for one word of the name and dates set to that day as both values. If an event with the same name is already on that day, show it to me and ask whether to add another; it may be a duplicate.
4. Show me the summary: name, date, start, end, price and places, and tell me the event will be created hidden from the site. Tell me too that amelia/list-events can't see hidden events, so I can't tell from here whether this one was already added hidden, for example by an earlier run of this prompt, and that I should check Amelia's Events screen first. Wait for my yes.
5. On my yes, run amelia/create-event once with name, periodStart and periodEnd (YYYY-MM-DD HH:mm), price, maxCapacity and show false. Leave depositPayment out.
6. Check the result: one event with the name, period, price and maxCapacity I approved and show false. Tell me its id. Tell me what the ability does not set and to add it in Amelia's Events screen: a description, the staff member, the location and a picture. Tell me too that the ability leaves Allow additional people off, so each sign-up is for one person; if people may book for others, turn it on there. Then tell me to set the event to show there when it is ready: while it is hidden it is not on the site, and amelia/list-events does not list it either.
Already connected?

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

Run the “Add a Class or Workshop to Amelia with AI” recipe from the WPVibe cookbook on my connected site.

You’re running a workshop, a class or a group session and want people to sign up through your site. Setting it up in Amelia means the name, the date and times, the price and the number of places, and a typo in any of them is what your customers see.

The AI checks the details with you first: the end comes after the start, the date hasn’t passed, the price and places are what you meant. Then it creates the event in Amelia hidden from your site, so you can look it over before anyone books. It tells you the event’s id and what to finish in Amelia.

The ability sets the name, one date and time, price, places, color and whether it shows. Add the description, staff, location and picture in Amelia’s Events screen, and turn on Allow additional people if one sign-up may cover several people (the ability leaves it off). Then set the event to show. Amelia itself would save an event that ends before it starts, which is why the AI checks. While the event is hidden the AI can’t list it, so take sign-ups once it shows, with this recipe.

Outcome

A hidden event in Amelia with the name, date, times, price and places you approved, ready for you to finish and show.