ask
Presents a question in the Buddy bubble with 2–4 answer buttons or a typed reply, and can highlight fields the user must complete; returns the chosen, typed, or no answer.
Instructions
Ask the user a question in the Buddy bubble and wait for the answer: 2 to 4 answer buttons, and the user can always type their own answer instead. Use it when you need the user to choose or decide (which reply, which item, which time) instead of guessing. With highlight, it also hands a step over to the user (a password or code, their details in a form, a file picker, a captcha): e.g. "Type your password, then tap Done" with options ["Done", "I can't"] and the field in highlight. Returns ANSWER with the option picked, ANSWER (typed) with the user's own words, or NO ANSWER. It is not an approval: still call confirm before anything outward-facing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| options | Yes | 2 to 4 short answers, one per button | |
| question | Yes | The question, short and clear | |
| highlight | No | Optional: what the user has to do on the screen before answering (as in point_out), e.g. the fields to fill in. Buddy marks them, and the question waits next to the bubble instead of covering the screen; the marks go once they answer. When every mark is a button or a switch, Buddy closes the question itself once it sees them done (the result starts with DONE). | |
| browser_highlight | No | Optional, instead of highlight: items in the background browser the user has to use (a sign-in, a captcha, their details). Buddy opens the browser full screen with them marked, and closes it once the user answers. |