Ask the business
ask_businessSend questions to one business's contact person, for example the questions answer_questions could not answer. Nothing is sent on the first call: it returns a preview of exactly what would go to the contact person, and a confirmation code. Show the whole preview to the user; only if they agree, call again with the same business and confirm set to the code. Then Avenbridge emails the questions to the contact (with the user's email as reply-to) and sends the user a copy; the answers come back through status and, once given, through answer_questions. The same questions sent again within a day are not sent twice. Needs business_id (or business) when the user has more than one business.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | The confirmation code from the preview. Only after the user has seen the preview and agreed; leave out on the first call. | |
| context | No | One line on what the answers are for, e.g. the questionnaire's name. Optional. | |
| business | No | Name of the business as it appears in list_my_businesses. Used only when business_id is not given. Leave both out when the user has one business, or to search every business the user has. | |
| questions | Yes | ||
| business_id | No | The business id exactly as given by list_my_businesses (for example yyigsmj5b7mcwxe7). Preferred: use it whenever you know it. |