Ask: Choice

To ask the user to make a choice out of a list of options

Using the Ask: Choice node variant, the user can be asked to choose a single option from a list. The system will keep trying to elicit a response until a satisfactory answer is provided, alternating the question based on the contents of the property Repeat text. Once an option is selected, the Flow will continue by following the correctly labeled link.

This renders the following dialog:

The example above shows both the original question and the repeat questions. The Smart App will first ask the original question, and only when no input is received (on voice channels) or wrong input is given, will the repeat text be shown. On voice this means you have an opportunity to explain the DTMF choices: press 1 for … and press 2 for …, because the provided options are always available as DTMF choices (in order of their links from left to right).

Ask choice

Node properties

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 also store the variable in the user object

The variable name in the Assign to will be used to store the value in the user object.

Record audio ☎

On phone channels there is an option to record the audio

Assign audio URL to

When record audio is toggled the URL to the audio file will be stored in this variable

When record audio is toggled the URL to the audio file will be stored in this variable

Value to store in variable

If a variable is selected in Assign to, this dropdown enables you to choose which value to store in it

circle-info

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

Choices can be added by drawing lines from this node to other nodes. Every link is a choice option, also called Labelled links. See Labelled links for more details.

Dialog triggers

Special events can trigger another flow or set of nodes in your existing flow using Dialog Triggers. See the chapter Dialog triggers for more details.

Storing choices

If you want to store the user's choice in a variable, you can use the Assign to field to select one. By default, the value stored is the label that corresponds to the user's choice (see labelled links). Alternatively, you can choose to store the exact user input, or a custom value for each choice. To set up the latter, select link value and make sure to include values on each of the node's labelled links.

A choice's Custom value can be configured on the link properties
Setting up Custom values
circle-info

Note that the exact input captured is also stored in the variable {{assign to}}_text

Resources

Last updated

Was this helpful?