How to launch a Landbot by clicking a button

Here below you can find the code you need to trigger and open your landbot, embedded as a LiveChat or Pop up mode, by clicking a button.

<button onclick="">Open bot</button>
<script src="">
var myLandbot = new LandbotLivechat({
index: 'your bot url'

Below is an example of how to do it:

How did we do?

Powered by HelpDocs

Powered by HelpDocs