Confirm a Booking with the SMS Code
confirm_bookingUse this after the customer supplies the six-digit SMS code from request_booking. It can create customer and job records or an office-review lead, notify the office, and send transactional customer or referral-status texts. Only status:confirmed with booked:true means the visit is scheduled. status:callback_pending with booked:false means the office must follow up and must never be described as an appointment. Replaying the same valid confirmation is safe and returns the stored result.
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": {
"booking_id": "<booking_id>",
"code": "<code>"
},
"name": "confirm_booking"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The 6-digit code the customer received by SMS after request_booking. Ask the customer for it; never guess or reuse a customer_lookup code. | |
| booking_id | Yes | The booking_id (UUID) returned by request_booking for this pending booking. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| booked | Yes | ||
| status | Yes | ||
| message | Yes | ||
| success | Yes | ||
| replayed | No | ||
| timezone | No | ||
| next_step | Yes | ||
| error_code | No | ||
| needs_manual | Yes | ||
| service_city | No | ||
| customer_name | No | ||
| scheduled_end | No | ||
| business_phone | Yes | ||
| review_sandbox | No | ||
| scheduled_start | No | ||
| location_summary | No | ||
| attempts_remaining | No | ||
| business_phone_href | Yes | ||
| confirmation_number | No | ||
| service_description | No | ||
| formatted_arrival_window | No |