Ask: choice
Last updated
Last updated
The user can be asked to make a choice using this node variant. The system will keep on repeating the question until a satisfied answer is provided, although the system will alternate the question based on the contents of the property Repeat text
.
This renders the following dialog:
The example above shows both the original question as the repeat question for the purpose of this example. Normally it will first ask the original question and only when no input is received (on voice channels) or wrong input is given, the repeat text will be shown. On voice this means you have an opportunity to explain about the DTMF choices: press 1 for … and press 2 for …, because the provided options are always available as DTMF choices (represented by the number of their order).
Property | Description | Explanation |
---|---|---|
Question | The original question | |
Try again (1) | The repeat question when wrong input is provided | optional |
Try again (2) | An alternative repeat question when wrong input is provided | optional |
Assign to | To assign the result to a variable in the conversation | |
Remember | To store the variable in the user object too | The variable name in the Assign to will be used to store the value in the user object. |
Notice that only the choice label (see labelled links below) is stored in the assign to variable, not the exact text that was captured.
The exact text that was captured is stored in the variable {{assign to}}_text
This node will also set a user tag using the assign-to value. Don't forget to manually create this tag in the Tags page.
Choices can be added by drawing lines from this node to other nodes. Every link is a choice option, also called Labelled links. See the chapter Labelled links for more details
Special events can trigger another flow or set of nodes in your existing flow using the so called Dialog Triggers. See the chapter Dialog triggers for more details.