Can the bot retrieve information from the user or ...
# 🤝help
s
🤔 Is it possible for the bot to access the user or their previous input and provide a corresponding response?
r
You can save responses to user variables, and later retrieve those responses. https://botpress.com/docs/cloud/studio/variables/
s
Oh, thank you @rich-oxygen-43707 , I will give it a try 👍 Could you possibly provide me with an example so that I can use a similar approach?
r
Create user variable in bot settings. Capture workflow variable using capture card. Execute code to assign the input value to the user variable. (This example is slightly more complex because input field is not a simple text field.) That user variable is "permanent" so it can be retrieved later.
s
Thank you very much! 🙏 I will try it...
It's not as easy as I thought 😉
4 Views