Send a request to several matching businesses
request_matchSends one booking request, quote request or question from the user to the directory, to be matched with businesses, instead of to one named business. query and place take the words for the kind of business and the place, as search_businesses does; with no place, only businesses that work online or ship here are asked, and a booking that names a place goes only to businesses in it or near it. The businesses asked are the first that search lists for those words and place (nothing is sold for placement; among equals the order changes daily) that can take this request now: they have joined and are taking requests, take this kind, its answers answer their required questions and, for a booking with a time, they have it open when they offer open times. max_businesses says how many: 5 by default, at most 8. It contacts real business owners in the user's name, with the name and the phone number or email address the user gave. user_requested: true states that the user explicitly asked for their request to be sent to several matching businesses; a call without it is refused and sends nothing. The same request sent again soon after returns the first match, with duplicate true, and sends nothing new; a match counts as one request against the daily limit for the user's phone number or email address. On an address without a key the user confirms every request once first, by texting a code to our number from the phone they gave (confirm says how), or with only an email address by a link we email them, and no business hears anything until then. We never text the user first; after they text us, the answers come in that conversation. Each business is then sent the request, told that others have it too; other matching businesses nearby can see it on their own pages and answer it too. Each may accept, pass, reply or put a question to the user, as with send_request, and every answer and question reaches the user through us without their contact. The user then chooses one business, from the link they are sent or through answer_request with choose: that business alone is given the user's name and contact (the others see only the first name and the words), and the others' copies are closed as not chosen. If none is chosen within the time to answer, the user is told, with the numbers of those that answered. get_request_status follows it by the public_ref returned: match.replies lists each business's answer. When outcome is no_match, nothing was sent or kept, and contacts lists the businesses an ordinary search finds. next_step describes, in plain words, what happens next for the user.
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": {
"kind": "<kind>",
"query": "<query>",
"summary": "<summary>",
"customer": "<customer>",
"user_requested": "<user_requested>"
},
"name": "request_match"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | booking: the user wants a time with a business. quote: the user wants to know what a job would involve. question: anything else the user wants to ask. | |
| place | No | Where: a town, optionally with its state or region, or a postcode. Every word of it has to match where a business is or the places it serves, so a longer place matches fewer businesses. A booking that names a place goes only to businesses that serve in person in it or near it; for a quote or a question, businesses that work online or ship to the place's country are asked too. Left out, as when the user needs no one in person, only businesses that work online or ship here are asked. | |
| query | Yes | The kind of business wanted, in a few plain words, as search_businesses takes them in query. The businesses asked are those search_businesses lists first for these words and place, among those that can take the request. | |
| answers | No | Answers to questions businesses ask, keyed by each question's id as get_business lists them in request.questions. Each business takes the answers to its own questions; one that cannot use the answer given is not asked, and one whose required question is not answered here is sent it with that question marked as not answered. They are the user's own answers, sent to each business as the user's words: a guessed answer reaches the business as if the user gave it. | |
| summary | Yes | What the person needs, in plain words, at most 1000 characters, as the user wants it passed on, with their budget in their own words if they gave one: each business reads it as written. | |
| customer | Yes | Who the request is from: the user's own name and contact, as the user gave them. At least one of phone and email is needed: the confirmation message and every answer go there. Only the business the user chooses is given them; the others see the first name only. | |
| quantity | No | How many people or items, when the user said. | |
| time_window | No | One time that would suit the user. For a booking, a business that offers open times is asked only when one of them starts in this window (or at start, when there is no end); a business that offers none is asked and answers whether it can. Nothing is held. | |
| timing_note | No | Timing in words when exact times are not known, at most 120 characters. | |
| max_businesses | No | How many businesses to send it to, from 1 to 8. Default 5. | |
| user_requested | Yes | True states that the user has explicitly asked for this request to be sent to several matching businesses at once. Anything else is refused, and nothing is sent. | |
| declared_client | No | Optional: the name of the assistant sending this. Recorded as a claim only. | |
| idempotency_key | No | A random value made for this one request, such as a UUID. Another call with the same key and the same request returns the match already made instead of a second one. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| match | No | A request sent to several businesses at once with request_match. | |
| reason | No | When outcome is no_match: why no business was asked. | |
| status | No | As get_request_status gives it: awaiting_customer, then delivered once sent, answered once a business answered or the user chose one. | |
| confirm | No | ||
| outcome | Yes | no_match: no business that can take this request matched the words and place, so nothing was sent or kept; contacts lists what an ordinary search finds instead. | |
| contacts | No | When outcome is no_match: the businesses search_businesses finds for the words and place, joined or not, with their public phone numbers. Nothing was sent to them. | |
| duplicate | No | True when this match 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. | |
| confirmation_sent_by | No | "email" when a link to confirm was emailed. We never text one: "sms" is not used. | |
| needs_customer_confirmation | No |