Book a person or a business
bookSend a booking or order to one person or business on Foundaree, for the user: "book this salon for Saturday 4 pm", "order 2 kg potatoes from this shop", "book this plumber tomorrow morning". Use kind and username from find. A business must have bookable: true. Use it only when the user asked to book, and only with the user's OWN name and phone number, which they gave you: never guess or reuse another number. Before calling, tell the user what you will send and to whom, and get their yes. The person or business sees it on Foundaree and calls the user back to confirm; nothing is confirmed until they do, so say that. Payment is between the user and them, directly. Returns a bookingId; check { bookingId } shows whether a business accepted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| area | No | Where the work is: the user's area or address hint, e.g. 'Kakkanad, near Infopark'. Optional. | |
| kind | Yes | The kind from the find result. | |
| name | Yes | The user's own name, as they gave it. | |
| need | Yes | What the user needs done, in a sentence or two. | |
| when | Yes | When they would like it, in plain words, e.g. 'Saturday morning' or 'today after 5 pm'. | |
| items | No | For an order: what and how much, e.g. 'Potato 2 kg, Tomato 1 kg'. Optional. | |
| phone | Yes | The user's own phone number, with country code when known, e.g. +91 98470 12345. The person calls back on it. | |
| username | Yes | The username from the find result. | |
| userConfirmed | Yes | true only after you told the user what will be sent and to whom, and they said yes. |