Skip to main content

Conversation

Cross-cutting functions Higento uses to interact with you mid-task rather than to act on a workspace object.


ask-user

Ask a follow-up question in chat. With no options, it's free-text only. With 2+ options it renders buttons plus a custom-answer field; multi-select adds checkboxes and a Confirm button.

Input

FieldTypeRequiredDescription
questionstringYesThe single question to ask.
contextstringNoOne short line on why the decision matters.
optionsarrayNo0–8 choices, each \{ id, label \}. Empty/omitted = free-text only.
allowCustombooleanNoWith exactly 1 option: also offer a custom answer. (With 2+ options, custom is always on.)
allowMultipleSelectionsbooleanNoWith 2+ options: allow selecting several (default single choice).
defaultAllSelectedbooleanNoMulti-select only: start with all options checked.
allowAddOptionsbooleanNoMulti-select only: let the user append options before submitting.

Output

FieldTypeDescription
presentedbooleantrue when the question was shown.
introstringThe intro line shown above the question.
questionsarrayThe single question echoed back for rendering (with its resolved option flags).