code run in a bot is executed on a cloud machine, not on the user's machine. This means functions like
localStorage.steItem()
will not function.
Since Botpress assigns each user a userId, you can try saving these to a table in your bot, and looking up that table at the start of each chat.