botpress / v12

Botpress OSS – v12
https://v12.botpress.com
GNU Affero General Public License v3.0
78 stars 87 forks source link

Emulator and "userId" issue in Studio #1596

Closed thomastomg closed 2 years ago

thomastomg commented 2 years ago

Hi, we've got a new issue with the update to the latest version (botpress-v12_26_9) 2 days ago : the userId isn't working when testing our bot in the Studio/emulator. It doesn't affect our custom webchat in production, it seems to be a Studio issue. We can't work and test our new features for 2 days now. Thanks for your help ! Thomas

Expected behavior We use the "userId" to match with our patients' database.

Environment (please complete the following information):

EFF commented 2 years ago

Hey @thomastomg thanks for your feedback. What do you mean by userId isn't working ? are you specifically speaking about the custom userId settings in the debugger panel ?

Screen Shot 2022-02-02 at 9 32 22 AM

thomastomg commented 2 years ago

That's it, yes.

It doesn't seem to be working once it's saved :

[image: Capture d’écran 2022-02-02 à 15.28.16.png]

Thomas

Thomas Gouritin Expert chatbots et IA Accompagnement de projets techniques Vulgarisateur chez Regards Connectés

Tel : +33(0)6 70 49 17 42 Email : @.*** Twitter : @tomg <http://www.twitter.com/tomg>

Le mer. 2 févr. 2022 à 15:33, Francois-Xavier P. Darveau < @.***> a écrit :

Hey @thomastomg https://github.com/thomastomg thanks for your feedback. What do you mean by userId isn't working ? are you specifically speaking about the custom userId settings in the debugger panel ?

[image: Screen Shot 2022-02-02 at 9 32 22 AM] https://user-images.githubusercontent.com/955524/152173945-df406eb5-e2ff-426f-bb7c-85a53426b381.png

— Reply to this email directly, view it on GitHub https://github.com/botpress/v12/issues/1596, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASA6XF4W5CDLEXQ3VIEHBALUZE6B5ANCNFSM5NMGOG5Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

EFF commented 2 years ago

@samuelmasse @laurentlp Correct me if I'm wrong, I believe this has already been fixed and will be part of next release right?

laurentlp commented 2 years ago

Hi @thomastomg, the feature for setting a custom user ID changed when we split messaging into its own repo.

The documentation on how to configure and use a custom user ID is accessible here: https://botpress.com/docs/channels/web#configuring-a-custom-user-id

In your case, you can still set a custom user ID using the debugger but the will be accessible through the user's attributes (event.state.user.webchatCustomId) instead of the usual event.target.

You can find more details on why it was implemented that way in this PR: https://github.com/botpress/botpress/pull/5591

thomastomg commented 2 years ago

Hi Laurent,

Thank you, I'll check that and test it right away.

Best,

Thomas

Thomas Gouritin Expert chatbots et IA Accompagnement de projets techniques Vulgarisateur chez Regards Connectés

Tel : +33(0)6 70 49 17 42 Email : @.*** Twitter : @tomg <http://www.twitter.com/tomg>

Le mer. 2 févr. 2022 à 19:06, Laurent Leclerc Poulin < @.***> a écrit :

Hi @thomastomg https://github.com/thomastomg, the feature for setting a custom user ID changes when we split messaging into its own repo.

The documentation on how to configure and use a custom user ID is accessible here: https://botpress.com/docs/channels/web#configuring-a-custom-user-id

In your case, you can still set a custom user ID using the debugger but the will be accessible through the user's attributes ( event.state.user.webchatCustomId) instead of the usual event.target.

You can find more details on why it was implemented that way in this PR: botpress/botpress#5591 https://github.com/botpress/botpress/pull/5591

— Reply to this email directly, view it on GitHub https://github.com/botpress/v12/issues/1596, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASA6XFY2IZ57V7DXEIKR2I3UZFXDTANCNFSM5NMGOG5Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>