How do I create a listener to know when
# 💻developers
g
How do I create a listener to know when the chatbot widget is clicked?
a
Hey @green-table-28586 , what are you trying to achieve and what technology are you using?
f
You can use the
UI.OPENED
event to listen for it on your website. https://botpress.com/docs/cloud/toolbox/events-triggers/#webchat-lifecycle-and-events I have had some issues with other events in the V2 webchat, but they work perfectly in the V1
g
I had to use mutation observer
This thing doesnt work
for me
it doesnt work on v1
for me
Also MESSAGE.RECEIVED doesnt work for the initial 1-3 messages sometimes.
my code
4 Views