Node Documentation

Question Node

Ask a question in the chat. Requires connected suggestion nodes, which are displayed as buttons or checkboxes.

Overview

Ask a question in the chat. Requires connected suggestion nodes, which are displayed as buttons or checkboxes.

Category: Base

Tutorial: Start interactive node tutorial

Configurable properties

LabelPropertyTypeDefaultDescription
Question Texttexttextarea"Question"The question text as Markdown and optional Handlebars variables.
Allow multiple optionsmultiplecheckboxfalseIf true, the buttons are displayed as checkboxes, of which several can be selected.
Reviewable from within the chatreviewablecheckboxtrueIf true, the answers to this question in the chat can be changed retroactively.
Auto-Repeat if back in contextrepeatOnReentrycheckboxtrueIf true, the question will forget its state and will be asked again when it leaves and re-enters the context.

Initial states

StateInitial ValueDescription
reviewingfalseIf true, the question is currently being reviewed (displayed again).
answeredfalseHas this question already been answered?
valuenullThe value of the response, if defined on the suggestion node.
valuesThe values ​​of the answers for multiple choice questions are defined at the suggestion nodes.
validnullThe question is valid if at least one answer option has been given (only relevant for multiple choice).
invalidnullThe question is invalid if no answer option was given (only relevant for multiple choice).

Callable methods

  • 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.