How to use Questions for Flowbuilder

Prabhansh Jain Updated by Prabhansh Jain

Using Question Box in WATI Flowbuilder

The question dialogue box is very simple in Flowbuilder and it is the most used in the flow builder.

Parts in Question Box

  1. Question text: In this question box, you can add a question text that would be highlighted on the screen. In the text, you can add variables, emojis. Change the text to Bold, Italic, Strikethrough.

As you can see in the above image there are variables added, variables are anything that are saved answers of the users and which I will talk about later. Anything that follows @{Variable Name} is a variable.

There are also emojis added to make the question look user-friendly.

  1. Add answer variant: it's under the Question Text, which you would provide the user to choose from for the question text that you typed in above.

In the above image, you can see that there are two answer options and I can delete and create more.

When you give a user answer options they have to type in the number according to the answer.

So in this case:

Yes = 1

No = 2

So, if a user types in 1 the answer selected will be "Yes"!

If you want the user to enter a custom answer, you may leave the answer options empty, and then the user can then freely answer it.

What if the user does not answer 1 or 2 but answers "hi", so there is always a fallback option that you could link to the flow if the answer is not matched to any answer variant.

It looks something like this:

The last option being "General" is used for a fallback if any answer not matched by the user is there then this would be the ideal option to guide the flow forward.

  1. Save Answers in a variable: This field is to store the user's reply value into the variable. This variable then can be used to put into another condition or to display again what value that user chose. The below sample showing one case that can use this part.
  1. Advanced options:

This option can be used only when the user doesn't specify the "Add answer variant" part. In another word, if the user inputs options in the "Add answer variant" part, "Advanced options" is disabled and vice versa.

This part is used to put validation against the customer's reply. Depend on which data we want the customer to fill in.

***Number:

When choosing validation "Number", the user needs to fill in Min value and Max value.

There is a default validation message, user can also change it to their message eg "Sorry, number of items need to be more than 0 and not greater than 1000. Please try again".

The last item of this part is "Exit flow if validation failed more than ... times". That is to trigger exit flow if a user still replies wrong after .... times. Users should set up this option, otherwise, customers cannot quit the flow if they don't want to ask more related to the current flow. If a user still wants the system to keeps asking until the customer input the correct value, which means ignore the fallback, the user can fill the ...times = 0 times.

***Date:

When choose validation Date, user can only input below format: M/d/yyyy, MM/dd/yyyy, M/dd/yyyy, MM/d/yyyy.

For example 1/1/2021, 01/11/2021, 1/11/2021, 01/9/2021

***Date + Time:

When choose validation Date + Time, user can only input below format (validating against the 12-hour clock):

  • M/d/yyyy h:mm:ss tt (1/9/2021 8:00:00 12)
  • M/d/yyyy h:mm tt (1/9/2021 8:00 12)
  • MM/dd/yyyy hh:mm:ss (12/25/2020 03:59:05)
  • M/d/yyyy h:mm:ss (1/9/2021 8:00:00)
  • M/d/yyyy hh:mm tt (1/9/2021 11:50 PM)
  • M/d/yyyy hh tt (1/9/2021 11 PM)
  • M/d/yyyy h:mm (1/9/2021 8:00)
  • MM/dd/yyyy hh:mm (12/29/2019 03:30)
  • M/dd/yyyy hh:mm (1/19/2020 09:20)

***Pattern (regex):

When choose validation Pattern (regex), user need to fill in Regex pattern format. Below example is for format of email address

^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$

Flow example:

How did we do?

Advance flow builder: Setup Assign Agent / Assign Team

Advance flow builder: Setup Subscribe or Unsubscribe

Contact