> For the complete documentation index, see [llms.txt](https://manuals.dialox.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://manuals.dialox.ai/advanced-topics/bubblescript/how-to-add-a-custom-button.md).

# 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](https://jsfiddle.net/Botsquad/gjpfL5va/)

```markup
<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:

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