https://discord.gg/botpress logo
#🤝help
I created a chatbot, and I want it to send a proactive message.
# 🤝help
f

freezing-plastic-62137

07/12/2023, 12:07 PM
I have copied&pasted this code into my website (I changed the bot ID and host) but it doesn’t work. Thanks for any help
i

incalculable-photographer-13938

08/15/2023, 9:07 AM
I am looking for the way to make it work myself. What I have discovered so far is that you must handle sendEvent function in the other way, because it finally started responding only after I removed if condition(event.data.name === "webChatReady"). Also, my friend, use the init function from your own created chatbot - it can be found on the dashboard in the section integration

https://www.youtube.com/watch?v=CLw2Mwd3euQ&t=2s

This video explains everuthing!