https://discord.gg/botpress logo
auto open bot
# 🤝help
i
Hi, I am using the embed code to add the bot onto my website and I use the below code to open bot when it is ready. This is not working and this event is fired only after I click the chat icon. Is there a way to auto open bot when the website is loaded?
Copy code
window.botpress.on("webchat:ready", () => {
    window.botpress.open();
    console.log("bp ready");
  });
p
2 Views