setup_bookings
Phase 7 (round 2): set up appointment booking on an editor app — services (with duration and price), staff, service categories, business hours and booking rules — exactly as the AppBuild editor's booking wizard does. One booking page per app: an existing one is updated rather than duplicated. At least one service is required; never invent services, durations or prices — ask the owner. Prices are in normal money (35), durations in minutes. Taking payment at the time of booking is NOT configured here.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"appId": "<appId>",
"services": "<services>"
},
"name": "setup_bookings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appId | Yes | The editor app id (UUID). | |
| staff | No | The people taking the appointments. Optional — can be added later in the editor. | |
| services | Yes | The bookable services. At least one required. | |
| pageTitle | No | Title of the booking page. Defaults to "Appointment Booking". | |
| businessHours | No | Opening hours keyed by day (monday..sunday), each { enabled, startTime, endTime } in 24h "HH:MM". Optional — defaults to Mon-Fri 09:00-17:00, weekend closed. Confirm with the owner. | |
| minBookingNotice | No | Minimum notice in hours. Defaults to 2. | |
| allowCancellation | No | Whether customers can cancel. Defaults to true. | |
| notificationEmail | No | Email that should receive new booking alerts. Optional. | |
| advanceBookingDays | No | How far ahead customers can book. Defaults to 30. | |
| cancellationDeadline | No | Hours before the appointment that cancellation closes. Defaults to 24. |