Create booking
create_bookingBooks a customer for a service, automatically assigning the first available qualified staff member if none is chosen. Validates availability to reject past times, closed days, and double-bookings.
Instructions
Book a customer for a service. If staff_id is omitted, the first qualified free staff member is assigned. Rejects past times, closed days, times outside opening hours and double-bookings. Confirm the details with the user before calling.
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": {
"customer_id": "<customer_id>",
"service_id": "<service_id>",
"start": "<start>"
},
"name": "create_booking"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| start | Yes | Business local time as YYYY-MM-DDTHH:MM | |
| staff_id | No | ||
| service_id | Yes | ||
| customer_id | Yes |