How to add a custom button

You can also open a conversation in the widget directly from a button on the page. This can be done by creating a button with an onclick attribute and some Javascript. A live example can be found here

<button type="button" onclick="BotSqd.openConversation('main')">Open conversation</button>

Alternatively you can also use a link instead of a button by setting the onclick handler similar to the example above:

<a href="#" onclick="BotSqd.openConversation('main')">Open conversation</a>

Last updated