Provide your bot with data about the current user.
.html
file that contains your Webchat embed code. For example:src
URL in the second script tag. For example:.html
file with your embed code. Then, delete the second line:window.botpress.updateUser
function to update user data after your website has initialized Webchat:
{{ event.userId }}
. You can store the user data in any variable you’d like.