Sending parameters with each message from the webchat widget ...
# 🤝help


07/21/2023, 11:05 AM
Hi, I am using the webchat widget on a website but I want to pass in other values along with the users message e.g. JWT token from the browser's local storage, page url etc. Can anybody point me to some sample JS code that would show me how to send these parameters into Botpress on each message? I am sure it's possible but can't find any documentation. Thanks!


07/21/2023, 12:17 PM
Hey Pomegran, not sure if there's a way to send them on each message, but I know with triggers you can pass in any info when the chat starts. Are you a part of the triggers beta?


07/21/2023, 2:24 PM
Hi @acceptable-kangaroo-64719 . I am not part of the beta. How can I be part of the beta? Seems a pretty basic feature of webchat/chat widgets that is missing. If we want to drive more personalised bots, passing in user information (to drive personalised conversations) seems a real important feature. Thanks for responding!
I have submitted for form!