> For the complete documentation index, see [llms.txt](https://docs.deepconverse.com/product-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.deepconverse.com/product-docs/chatbots/deploy/open-chatbot-via-javascript.md).

# Open chatbot via Javascript

You can trigger opening of the chatbot on click of a button or an external event. To do so use the following Javascript

```javascript
window.dispatchEvent(new CustomEvent('dc.bot.show'));
```
