NOTE: This is an advanced feature and it is not enabled by default. To enable this feature go to the Settings Page in Tars dashboard and make sure the check box next to Enable Conditional-Jump Section in Gambits is checked on.

Once you enable this, you will start seeing an extra option in the Gambit Modals near the bottom like this:

Once you check this on, you will see the section to configure Conditional Jump like this:

Branches

Here you can add Branches, using Add Branch button.  In each of these branches, you can define one or more conditions, tied together with AND/OR operations. Here is what branches with conditions look like:

Each of these branches represents a different direction the conversation can take. So for each branch, there will be corresponding socket:

The sockets moving from left to right correspond to branches within the gambit moving from top to bottom. In less confusing terms, look at the picture above and compare it to the previous image showing the conditions. 

Branch 1 (less than or equal to 20,000) corresponds to the left-most socket, branch 2 (greater than 20,000 and less than 50,000) corresponds to the middle socket and the default branch corresponds to the right-most socket.

Condition

A Condition is simply a check to compare two values. In the screenshot below, on the left you have {{ursp.age}}, which is just the user response gambit named age. Then you have Operator set to Less Than from the dropdown menu. And on the right you have 45.

This simply means that this condition will be true if the the user has given any value less than 45. i.e. 34, 21, 12, 44. And it will be false, if the user has given value 45, 48, 54, 112, 1034 etc.

You can add more conditions in One branch itself, and they can tied together with AND/OR.

More details about each option in Conditional Jump feature has been explained in this help doc here.

Note - Before we continue, make sure you understand the above information. If you don’t, please contact us by chat support on bottom right of this page. The feature is extremely powerful and is the difference between a bot that just collects and serves information and a smart bot that can actually make sense of information.


Did this answer your question?