Quick book, signed out
quick_bookFor a personal AI agent whose person has not signed in: book one place. sub is your stable id for the person; the same sub is the same guest at HOTDROP. agentName is your app's name, shown to staff. givenName and familyName are required: the desk checks the guest in by name, as for ClassPass, so ask the person in the chat. email is optional: the desk confirms it on arrival, nothing is sent to it. Two ways to pay. You pay (agentPays: true): once the person approves the price, your own platform wallet issues you a Stripe shared payment token (spt_) for totalMinor GBP, and you send the same call with the approval and paymentToken: it charges the token and returns state booked. If your platform cannot issue one, use the pay link; never ask the person to paste a token. Or the person pays: it returns state awaiting_payment, booked false, payUrl for them to pay and statusToken to read it; the place is held, not booked, until they pay by payBy. Either way the person never leaves the chat: the desk checks the guest in by name and has the waiver signed on arrival. Offer sign-in first: a signed-in person books with credits.
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": {
"sessionId": "<sessionId>",
"sub": "<sub>",
"givenName": "<givenName>",
"familyName": "<familyName>"
},
"name": "quick_book"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sub | Yes | ||
| No | |||
| credits | No | ||
| approval | No | The approval of the operation this tool returned with approval_required: { operation_id, revision, approver: "user" }, all three required; only the person approves. Call once without it, show operation.summary to the person, then call again with structuredContent.approval as it came. | |
| agentName | No | ||
| agentPays | No | ||
| givenName | Yes | ||
| sessionId | Yes | ||
| familyName | Yes | ||
| paymentToken | No | ||
| idempotencyKey | No | Any unique string per intended action. A retry with the same key answers with the first result and never acts twice. |