How to save user input permanently

Hi @Vish what do you want to do exactly ? Please give me more context on what you’re trying to achieve. There are multiple ways to save a user answer permanently.

1- Using Set Variable
If it’s user specific, you can save the answer to the users profile (user.attributes) if you don’t want to save it in users data, please check other memory options in setVariable action.
2- Using bp sdk
you can use the kvs available in botpress sdk see docs here .
3- Using event collector
Note that messages are persisted under the events table in the database, you can always retrieve them with a database query if necessary

Again it really depends on your use case.
Hope this helps :v:

1 Like