-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get User Data not working #12998
Comments
Hi, any news? J. |
Just tried to execute code that move datas from the workflow variable that contains the user data to a user variable, still not working |
Hi, Regards, |
@H-JonathanLoise I'm just another user struggling with a related, but different, issue however if I understand correctly, perhaps I can help. You're showing a custom config for the webchat then showing screenshots of the cloud editor variables. The view of those variables and their values are populated by using the emulator, not the deployed webchat. You can add console.log() statements in the studio then go to the dashboard's Logs (the ones outside of the studio blueprint editor, not the emulator logs inside it). Then you can see the variables' values for your deployment. Also, regarding the first screenshot, you didn't type |
Hi @jgaltio, About the first screenshot, If i type user.{variable} the dot is removed automatically, I can only fill or create a workflow variable. Currently I set a custom code to mode the workflow variable content into the user variable but the user data from my reactjs application are not captured. Thank you for your support, really appreciated. |
Hi, @H-JonathanLoise Sorry for the late reply. To tell the truth, I don't know the answer to your question. I'm not sure if the bug is studio-related or webchat-related by simply looking at the information you provided. We are currently working on releasing a new version of the webchat with better documented API. In the meantime, I'll leave the issue open and poke around the rest of the dev team. You can also try posting your issue on our discord server, you might find an answer over there. Frank |
Hi @franklevasseur, Regards, |
@H-JonathanLoise , hang in there, i'm building a fiddle to replicate this. |
Here's my fiddle |
considering this is in the docs:
it should work. but i can't get it to respond right now either. |
thoughts ? |
issue.replication.mp4 |
Hi @fosteman thank you for your support. So you have to retrieve the user data using the specific card and that is what I did: Then I moved that data inside the user variable: And in the last I used the text card to say Hi to the end user: Regards, |
Hi, any news on this? Same problem here. |
News? |
Hi guys this is fixed and pushed in production :) feel free to re-open if needed |
Still not working for me, @H-JonathanLoise did you fix your problem? |
Let me add some more info about my problem here: |
It works perfectly on my side since eff made the fix. @H-JonathanLoise, can you confirm ? |
Hi @franklevasseur is not working. Could you share the screens of your test? Regards, |
Hi, any news? J. |
1 similar comment
Hi, any news? J. |
Still can't reproduce on my end, setting user data and getting it works for me... I tried on webchat v0, v1 and on the new frontend v2... |
Hi @H-JonathanLoise , I just found what was my problem, the attributes that I passed to userData needed to be strings, I was sending integers and because of that it wasn't working, hope this can help you. |
Hi @franklevasseur @Topiksit0, Or if I pass a json string, can I transform that string in an object in the botpress WF? J. |
Hi @H-JonathanLoise , it won't work with a complex object, I recommend you to just stringify the object |
@Topiksit0 ok thank you, but I think it's possible in the botrpress WF to convert back that json string in a javascript object and save it in a separated variable, right? J. |
Hi,
I'm using reactjs with botpress and I'm trying to send userData to the bot.
As you can see in this image my user variable is not found and also if I create a new one it creates a workflow variable, but also using the workflow variable it is not able to retrieve the frontend user data sent:
In this second image you can see that I initialized the data variable but the studio as still the label "not set":
This is my reactjs code and you can see I added the userData:
Testing the bot from my react application I always get undefined, so this means that is unable to read the react userData values.
Am I doing something wrong or there're issues by your side?
Regards,
Jonathan
The text was updated successfully, but these errors were encountered: