Answer a business's questions
answer_requestAdds the user's answers to a request that send_request returned with status needs_info, by its public_ref. The request was held because the business asks questions it needs answered before it can reply; nothing was sent to anyone. The answers are the user's own answers to the questions in open_questions, passed on as the user's words: a guessed answer reaches the business as if the user gave it. Once every required question is answered the request goes on as send_request describes, and next_step describes what happens next for the user. Answers can be added only through the address the request was sent on, and only while it is held. reply, with the same public_ref, passes on the user's reply, in their words, to a follow_up that get_request_status shows: a question the business asked about the request before answering. For a request_match, a business's follow_up is in match.replies, and a reply with that business's request_ref goes to it alone. choose, with the public_ref request_match returned, passes on the business the user chose, as the user's own choice; it cannot be undone. Each call takes exactly one of answers, reply and choose.
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": {
"public_ref": "<public_ref>"
},
"name": "answer_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reply | No | The user's reply to the business's question about this request (follow_up in get_request_status), in their words, at most 500 characters. It goes to that one business only, as the user's own words. | |
| choose | No | For a request_match: the slug of the business the user chose, one of those in match.replies with may_choose true. That business is then given the user's name and contact as the user's own choice, the others are told they were not chosen, and it cannot be undone. | |
| answers | No | Answers to the business's questions (request.questions in get_business), keyed by each question's id: a number for a number question, one of the options for a choice, YYYY-MM-DD HH:MM for a date and time, true or false for yes or no, and words for text. They are the user's own answers, sent to the business as the user's words: a guessed answer reaches the business as if the user gave it. | |
| public_ref | Yes | The public_ref send_request returned. With reply to one business of a request_match, that business's request_ref from match.replies in get_request_status. With choose, the public_ref request_match returned. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | ||
| booking | No | ||
| confirm | No | ||
| outcome | Yes | not_connected: the business has not joined, so nothing was sent. The user's name, contact details and words were not kept; we count only that someone asked. | |
| fallback | Yes | Other ways for the user to reach the business directly. | |
| duplicate | No | True when this request already existed and was returned instead of a new one. | |
| next_step | Yes | Plain words describing what happens next for the user. | |
| public_ref | No | The reference for get_request_status. | |
| respond_by | No | ||
| status_url | No | A page where the user can follow the request. | |
| alternatives | No | When outcome is not_connected: businesses with one of the same labels, in the same place, that can take a request now, found by an ordinary search. Nothing has been sent to any of them. | |
| slot_outcome | No | When slot_start was given: booked when the time was booked as the request reached the business; not_available when it was not (taken by then, or the business no longer offers open times) and the business will answer as usual; pending until the request reaches the business. | |
| open_questions | No | When status is needs_info: the required questions still unanswered. answer_request adds the user's answers to them. | |
| confirmation_sent_by | No | "email" when a link to confirm was emailed. We never text one: "sms" is not used. | |
| needs_customer_confirmation | No |