How to trigger a javascript function by clicking on a payload button

Hey, I integrated rasa in my website using webchat component via socketio channel, and I am wondering how can I trigger a js function, i already implemented in my script tag in the html page, when the user clicks on a paylaod button

Thank you in advance,

Ayoub

Hey @Akenayou, I’m hearing that for now you’ll have to fork the webchat widget yourself, but @gausie might look into this soon-ish when creating a new widget.