How to implement the switch between the conversation branches depending on whether the visitor is returning or not

What if you need your bot to be having different conversations depending on whether the visitor is returning or not?

This is possible with the magic Goto step!

Follow these steps:

Step 1. Add Goto Step, it can be either the entry point (first) step in your flow, or somewhere in between the flow, where you need your bot to react on the current page.

Add {{infoIsReturning}} as a value setting:

Step 2. Add responses to the previously added step, which will effectively jump to the needed branches depending on the current page. Note that you don’t need to have any chat texts to implement the jumps, so responses can be textless:

First Response for one step and one path:

Note the use of the advanced condition, which uses the value of the current step, which is the returning visitor flag, and in that condition, it uses = operator which compares it with true.

It also uses Step 2 in the bot flow as a next step.

Second Response for another step and another path:

Note the use of the advanced condition, which uses the value of the current step, which is the returning visitor flag, and in that condition, it uses = operator which compares it with false.

It also uses Exit in the bot flow as a next step.

Note: an alternative approach would be to use the conditional bot behavior where you can set different bot entry points for the different behaviors, and in the condition, use the ’ Visitor is returning’ field.

Edit this page