Ask a question in the chat. Requires connected suggestion nodes, which are displayed as buttons or checkboxes.
Ask a question in the chat. Requires connected suggestion nodes, which are displayed as buttons or checkboxes.
Category: Base
Tutorial: Start interactive node tutorial
| Label | Property | Type | Default | Description |
|---|---|---|---|---|
| Question Text | text | textarea | "Question" | The question text as Markdown and optional Handlebars variables. |
| Allow multiple options | multiple | checkbox | false | If true, the buttons are displayed as checkboxes, of which several can be selected. |
| Reviewable from within the chat | reviewable | checkbox | true | If true, the answers to this question in the chat can be changed retroactively. |
| Auto-Repeat if back in context | repeatOnReentry | checkbox | true | If true, the question will forget its state and will be asked again when it leaves and re-enters the context. |
| State | Initial Value | Description |
|---|---|---|
| reviewing | false | If true, the question is currently being reviewed (displayed again). |
| answered | false | Has this question already been answered? |
| value | null | The value of the response, if defined on the suggestion node. |
| values | The values of the answers for multiple choice questions are defined at the suggestion nodes. | |
| valid | null | The question is valid if at least one answer option has been given (only relevant for multiple choice). |
| invalid | null | The question is invalid if no answer option was given (only relevant for multiple choice). |
reset() - Reset the question and its suggestions and forget the given answers.resetSelection() - Only reset the answer options.toggleReview() - Toggles the redisplay of the question in the chat to revise answers.answer() - Answer the questions and commit your selections in multiple choice questions.