Book a time
bookUse to complete a booking, only after the customer agrees to the exact services, price and time. start comes from find_times; catalog_revision and expected_estimate_cents from the estimate they saw. Needs a phone or email so the business can reach them, and an address for a service at their place. A retry with the same request_key returns the same booking. Only status confirmed means booked; otherwise next says what the customer still has to do. Repeat with repeat and visits, or dates. Keep reply_token private: it is how the customer sees, moves or cancels it.
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": {
"business": "<business>",
"selections": "<selections>",
"catalog_revision": "<catalog_revision>",
"expected_estimate_cents": "<expected_estimate_cents>",
"customer_authorized": "<customer_authorized>",
"request_key": "<request_key>",
"start": "<start>"
},
"name": "book"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| who | No | Who they'd like, by name, from the catalog's team. A wish: someone else may take it, unless only_who | |
| zip | No | ||
| note | No | ||
| dates | No | Exact starts for several visits, e.g. one per guest checkout | |
| start | Yes | An exact start from find_times | |
| repeat | No | ||
| visits | No | With repeat: how many visits, including the first | |
| address | No | The street address, for a service at the customer's place | |
| business | Yes | ||
| only_who | No | Only this person: fewer times, but it stays with them | |
| inquiry_id | No | An open conversation to book in, with its reply_token | |
| selections | Yes | ||
| reply_token | No | ||
| request_key | Yes | A private unique key: a retry with it never books twice | |
| customer_name | No | Not needed when the sign-in or X-User-Name gives it, and likewise phone and email | |
| customer_email | No | ||
| customer_phone | No | ||
| catalog_revision | Yes | From quote or find_times | |
| customer_authorized | Yes | ||
| expected_estimate_cents | Yes | The total the customer agreed to |