How to switch from one bot to another

When you have multiple bots and are in need of using them all, you can use the following logic to switch from one bot to another:

Use the quriobot.start(“bot_path”) logic of the bot you want to switch to and add it to a script Chat text type (requires developer mode)

function () {
  setTimeout(function(){
    quriobot.start("bot_path")
  }, 1000)
}

How to find your bot path? Easy, it’s always in the Embed code section of the bot edit page.

Example: https://quriobot.com/qb/canvas/switch1

What if you need to switch to the other bot but start from a non-default entry point step?

In that case, the code needs to be different, adding the entry point step key:

function () {
  setTimeout(function(){
    quriobot.start("bot_path", undefined, 12345, true)
  }, 1000)
}

Where 12345 - is the step key that can be obtained from the bot step settings.

Edit this page