Skills
Set up booking
Load when setting up a new bookable service, room, class or event with its own form and calendar.
Follow rules for account selection, write keys and publication. For several services, batch repeated calls to each supported tool with one run_many per step when listed. Use individual calls otherwise. forms-and-booking
- Call
get_settingsfor time zone, currency, languages and form defaults. Fill gaps in the requested service, price, hours, slot length and limits with the person. - Call
create_calendarwithname,kindand weeklyhoursin account time. Make one new calendar per person, room or class. Usehourlyfor time slots oreventfor fixed sessions. Supply event dates and session hours withset_calendar_dateand capacity withset_calendar_limits(per_slot). - Call
create_formfor each service withtitle,kind: "service",status: "draft"and the requested pricing. Use the new form and calendar ids throughout. Configureset_form_schedulewith the formid,calendar_ids,slot_minutesand requested start step, buffers, notice, window or cancellation. - Keep the time step and add one question step with
add_form_step(formid, stepnameand 2–7 necessaryquestions). Omit account contact details. For translations readget_form_questions, then useupdate_form_stepwith the samestep_id, targetlocale, and existing question and option ids in the full list. Useupdate_formif pricing or confirmation needs adjusting. - Read
get_formand calllist_free_slotswith the formidand a representative opendate(YYYY-MM-DD). Checkdraft: trueand the returned slots. If no calendar is linked, correctcalendar_idswithset_form_scheduleand check again.