Using the latest WebChat inject script, I’m attempting to set a custom userId during initialization.
I’ve tested multiple inject versions and init() methods, but the userId continues to default or fail to apply.
Current code is below.
Would appreciate any input on what might be wrong.
window.botpress.init({
"botId": "xxxxxxxxxxxxxxxxx",
"userId": "gary d",
"configuration": {
"composerPlaceholder": "Chat",
"botName": "Test",
"botDescription": "Test Description",
"website": {},
"email": {},
"phone": {},
"termsOfService": {},
"privacyPolicy": {},
"color": "#5eb1ef",
"variant": "soft",
"themeMode": "light",
"fontFamily": "inter",
"radius": 1
},
"clientId": "xxxxxxxxxxxxxx"
});