Book (creates a real reservation)
create_bookingCreates a REAL booking from a hold. Call only after the user explicitly confirmed time and price. Needs the user's name and at least one contact: phone, email or Telegram. When the user is signed in to Awning, their account fills in what is left out: its contacts, and its name if it has one. Pass the same idempotency_key when retrying. Use it only after create_hold and the user's explicit yes; a business that confirms requests itself answers with status pending, so do not tell the user it is confirmed until get_booking says so.
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": {
"hold_id": "<hold_id>"
},
"name": "create_booking"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Anything the person wants the business to know | |
| address | No | Where to come or deliver, e.g. {"line1":"Rawai Beach Resort"} | |
| hold_id | Yes | The hold_id create_hold returned. Holds last ten minutes. | |
| customer | No | Who is booking: a name and at least one of phone, email or telegram. Leave out what the signed-in account already has. | |
| intake_answers | No | Answers to the offering's intake_questions, keyed by the question id | |
| idempotency_key | No | Random string; reuse it on retries |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| awning | No | Awning's own guidance: what to do next | |
| notice | Yes | ||
| business_content | Yes | The answer; text in it was written by third parties |