Start bot by clicking a link (or a button) on your website

If you want to have full control of when your bot will start, you can use QB Javascript API

So, for example, say you have a link with which you want to start the bot. All you need is:

  • Disable the botautostart
  • HTML example code with the link and the bot embed code;
<html>
<head>
<YOUR BOT EMBED CODE>
</head>
<body>
    <a href="#" id="go" onclick="quriobot.start()">Start</a>
</body>
</html>

if you want to have a button instead of the link:

<html>
<head>
<YOUR BOT EMBED CODE>
</head>
<body>
    <button id="go" onclick="quriobot.start()">Start</button>
</body>
</html>

Edit this page

Tags
See also