I am exploring ways of saving data across conversation in dialogflow from the client library. What I come up with so far are:
In the case of user storage, is there some gotha I shouid be worry about?
There's no reason to be worried about using userStorage
, some of the advantages of using it are:
userStorage
never expire, and only the user or the Action itself can clear it.userStorage
field of your Action by
setting the resetUserStorage field of your AppResponse
to true.userStorage
field of your AppResponse
object is a string that contains an opaque token supplied by the Action that is saved across conversations for a particular user.Important: Obtain user consent prior to using user storage. Some countries have regulations that require developers to obtain consent from the user before they can access or save certain information (like personal information) in user storage.
Since you will be entering the user personal storage you'll want to ask permission to the users first.