How to use Conditions for Flowbuilder

Prabhansh Jain Updated by Prabhansh Jain

Using Conditions For WATI Flow Builder

Conditions are very important when you want to run the same flow but then have separate outcomes so you use conditions to split the flow into two or more.

Conditions in the flow builder have three options to compare from:

  • Equal to
  • Not Equal To
  • Contains
  • Does Not Contain
  • Starts With
  • Does Not Start With

When is Condition Box Used

Please refer to these help docs to know about how to use the question box and then continue reading to know more about variables.

If you know what are variables in WATI Flow Builder then it will be really easy for you to know when to use the condition box.

So suppose you had this question to ask your users:

Now, the flow after this is all the same and now in the end you would want to split the end messages according to the answer chosen in the above question.

Here is when you can use conditions.

Types Of Conditions in Flow Builder

Now, coming back to the above example of splitting the end message according to the question-answer shown above, there are three ways in which you can set the condition.

Equal to

For Equal to, you are directly comparing the answer variant with the condition and then splitting it into two flows for one being true to the condition and one not.

The flow which is true to the condition could be followed by the colour "Green".

Whereas the flow false will be "Red".

You can see that there is one green and one red.

Not Equal to

Similarly, to the equal to condition, however, this is the complete opposite for this is the condition is true that means that the answer variant is not the same as the condition and that would be colour green. Whereas if it matches then it will be colour red.

Contains

This is mostly used when the question does not have any answer variants, suppose it is a question that asks for the name of a person or the contact number for the person so that you cannot clearly say if the condition will be equal to or not equal to the answer variant. Therefore, here condition is used, it is used to tell if the answer inputted by the user is even a sentence and contains a word in the condition.

Example:

The answer inputted by the user is "My name is Prabhansh"

and you just have to scan the word Prabhansh. So you can use contain condition as then where ever the name "Prabhansh" is found it will make the condition true.

Does Not Contain

This is generally used when the question does not have any answer variants and is a question that asks for the user's input. Suppose a question says "What is your address" and you want to filter out addresses that are not from India so that it will help you with your further flow.

Therefore, you use Does Not Contain in this case and you can then continue with the flow, where all address which does not have India will be considered as TRUE(Green) and the rest would be FALSE(Red).

Starts With

Just like the previous options, this is also generally used when a question does not have answer options/variants to choose from. This option is used when you want to filter out sentences or answers that start with a particular requirement you require.

For instance, there is a question that "How are you?" Now there could be numerous answers to it, but you want to filter out certain answers that start with "I". So any answer that starts with "I" will be considered TRUE(Green) and the rest would be FALSE(Red).

Does Not Start With

It is very similar to the above option that is "Starts With", but is the opposite and which means it will filter out sentences or answers that do not start with a particular filter.

Anything that does not start with your filter keyword would be TRUE for the condition and the ones that start with the keyword would be FALSE.

You are all set for conditions.

Thank you

How did we do?

Advance flow builder: Template

What and how to access Flow Builder?

Contact