Easier Auto Start For Webpage
# 👀feature-requests
l
Making a system for the bot to automatically start with more ease in a webpage is highly needed for those not specializing in coding.
q
Have you already tried this

https://www.youtube.com/watch?v=CLw2Mwd3euQ

l
This happens when we click on the icon, not when the website is opened
And for me, I am unsure why but events dont show.
q
Yes, now I understand 🫡
We have some tutorials and chatbots here using Events & Triggers
You can add these 10 lines of code to your website, then it will open the chatbot automatically after the website has loaded
Copy code
js
<script>
  window.onload = function() {
    console.log("showing bot...");
    if (window.botpressWebChat) {
      window.botpressWebChat.sendEvent({ type: "show" });
    } else {
      console.error("Botpress Web Chat is not available.");
    }
  };
</script>
https://cdn.discordapp.com/attachments/1225864265081294980/1225873490041770154/Screenshot_from_2024-04-05_21-22-04.png?ex=6622b6a7&is=661041a7&hm=7b65f8fda6966068355fb13fbfd47555d180bff045c9b1b213639d4934eb6ce1&
l
Tysm
51 Views