confirm_route_hotel
Books the hotel from a quote_route_hotel answer and charges the person's chosen card exactly the quoted total. Call it only after the person clearly said yes to the price you read from that quote — never on a maybe, and never for a price they did not hear. Pass amount_cents_heard: the total_cents of the quote you read out; if it differs from the quote, nothing is booked. Pass utterance: what the person said. Read the answer's spoken line word for word. It is either Booked (with a confirmation code) or Not booked; there is no pending state, so never describe one. If the price changed, nothing was booked and the answer carries a new price: read it and wait for a new yes before calling this again with the new quote_id. Calling it again with the same quote_id returns the same outcome and never books twice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quote_id | Yes | The quote_id from quote_route_hotel. | |
| utterance | No | What the person said when they agreed (e.g. 'yes, book it'). | |
| amount_cents_heard | Yes | The total_cents of the quote that was read to the person and that they said yes to. |