I am having an issue with saving user variable. I ...
# 💻developers
h
I am having an issue with saving user variable. I can set the variable just fine when testing from embedded botpress client in my website and in botpress studio itself, but upon starting a new conversation, the user variable is set to empty/null again. I thought user variables persist and dont get reset unless I change them intentionally? This makes me wonder how am I setting identity of the user when I start the conversation. I am using a conversation trigger event so bot starts the conversation first . do I need to set userId somewhere in my trigger payload so botpress knows the user identity?