Join Discord
Powered by
Run js script when a button is clicked
# 🤝help
p
polite-afternoon-12361
02/28/2024, 3:08 PM
Is there a way to run a JS script on the site when my chatbot button is pressed?
f
fresh-fireman-491
02/28/2024, 3:17 PM
Yea, you can use the UI.OPENED event
https://botpress.com/docs/cloud/toolbox/events-triggers/
p
polite-afternoon-12361
02/28/2024, 3:38 PM
I mean these type of buttons not opening the chat sorry
f
fresh-fireman-491
02/28/2024, 3:50 PM
Ah okay, you can use the sendEvent card in your bot and then act on it on your website
fresh-fireman-491
02/28/2024, 3:51 PM
Devmik does it here
https://discord.com/channels/1108396290624213082/1199649804653965342
Previous
Next