@Bassam Tantawi is this something we're
# 💻developers
c
@famous-jewelry-85388 is this something we're aware of? Can you please help here? thanks Bassam
f
@early-boots-14521 yes bot variables get cached as per my understaning.
you tell me more about your business? maybe we can find a workaround ?
e
Hello, sorry for the late response. Been so busy making bots 🤯 So what I mean it's this, hope I can express it correctly. 1. - I create the variable user.userId or bot.botId for example, so I can have the same workflow but changing some of those parameters. In this particular case, bot.assistantId for the Assistants integration (here I'm referring to defining the default value for the value in the panel) 2. - I click on publish bot 3. - Later on I want to switch the assistant for another one, so I change the variable bot.assistantId and click publish. 4. Some times and for some conversations I find that the variables have been cached, so those conversations would still have the bot variables that I defined before I changed them and switched them
f
Got that ...Why is it in the bot variables and not in configuration variables or env variables?
Why don't you change it in the default value? I am not challenging I am trying to understand better
e
I did change it in the default value, and that got cached. But you are totally right it should be an env variable
f
Keep me posted please, it is important for me to learn more about it 🙂
e
Sure! But there has been a change of plans 😅
My bot was getting just too complicated with all the code cards and actually eating quite a bit of ram out of my old Macbook
With the studio open
Anyway so I've been looking into the SDK documentation and trying it out and I think that's definitely the way to go
For many reasons but one of the main one is version control, that way at least I can keep track of all changes
But yeah! It's awesome the amount of information
I think I will try to chip in and open a PR with whatever improvements or integrations I manage to make!
f
Perfect! Really excited 🙂
e
So there's the channel for people using the v12
But I haven't found anyone deploying directly from the SDK to the cloud
Do you happen to know about anyone?
I thought it would be much more common!
p
@famous-jewelry-85388 Hi, I'm experiencing problems with the cached Bot variable that stores some shared common data. After replacing the current Bot variable with the updated default value containing the new value and republishing the Bot, it still retained the old value. Is there a method to invalidate the Bot variable cache so it will utilize the new key? Appreciate any assistance on this matter