https://discord.gg/botpress logo
Please how do make the bot speak first
# 🌎general
l
Please how do make the bot speak first
p
Use the conversation started trigger, it will fire the nodes that are connected upon the bot being opened. Hope this helps!
l
But I need it to pop up whenever there is a new visitor on the website
p
You would need to force the window.botpress.open() function when your webpage loads, it would look like this:
Copy code
js
window.botpress.on("webchat:ready", () => { 
    window.botpress.open(); 
  });
So instead of the second script, you'd have the above method and then window.botpress.init(...). Happy Bot Building!
2 Views