How to implement the switch between the conversation branches depending on the current page

What if you need your bot to be having different conversations depending on the current page of the website?

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 {{infoReferer}} 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 current URL, and in that condition it uses contains operator which compares it with /path1 path.

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 current URL, and in that condition it uses contains operator which compares it with /path2 path.

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

Edit this page