Set up bookings
set_bookingTurn on online booking for a site and set it up: services (name, duration_minutes, optional buffer_minutes, price in RM, group_size for classes), weekly opening hours, optional staff (each with their own services and hours), seats (chairs/rooms when there is no staff), how far ahead and how late people can book, the cancellation window, and instant or manual confirmation. Only the fields you give change; a services or staff list replaces the current one. Then build the booking page with k.booking (see site_guide).
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": {
"site": "<site>"
},
"name": "set_booking"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | Site slug (e.g. "kopitiam-muar") or id | |
| hours | No | Weekly hours: { "mon": ["09:00-13:00", "14:00-18:00"], "sat": ["10:00-16:00"], "sun": [] } (24-hour, site time zone) | |
| seats | No | ||
| staff | No | Leave out (or []) when anyone can serve; then seats sets how many bookings can run at once | |
| confirm | No | manual = bookings wait for the owner to confirm | |
| enabled | No | ||
| services | No | ||
| timezone | No | Default Asia/Kuala_Lumpur | |
| notify_owner | No | ||
| slot_minutes | No | Start times every N minutes (default 30) | |
| max_days_ahead | No | Default 30 | |
| whatsapp_alert | No | WhatsApp the owner for each booking (needs a linked Komers store) | |
| google_calendar | No | Use the owner's Google Calendar: their busy times block slots, and bookings are added to a 'Komers bookings' calendar. Needs a linked Komers store with Google Calendar connected in Komers. | |
| min_notice_minutes | No | Default 60 | |
| cancel_until_minutes | No | Customers can cancel/move until this long before (default 120) |