Hello everyone! I want to know how I can change the default botpress button to open my bot from a custom button of my website?
This function would not be giving me results and it is not entirely clear to me where I should place it:
document.getElementById("toggle-bp").addEventListener("click", function() {
window.botpressWebChat.sendEvent({ type: webchatOpen ? "hide" : "show" })
})