Disappearing Variables
# 🤝help
q
Hey folks. Not sure if I'm doing something stupid but every now and then I am unable to find my variables, especially in the AI Task cards where you need to select the variable(s) in which to save the AI task's results, but the variables that I have set up (mostly bot variables) don't always appear as options, even though they certainly exist and are used elsewhere. Anyone else have this issue and know what to do about it? I've tried exporting my bot and reimporting it in a new project but that doesn't work.
f
Hello @quiet-hairdresser-14769 Can you create a video demoing what you are seeing?
I have a few thoughts but I want to be sure I understand the situation first.
q
So here's my bot variables

https://cdn.discordapp.com/attachments/1144557219669627071/1144927388132704316/Screenshot_2023-08-26_113127.jpg

And then in an AI Task, if I type in for instance "budget" then the bot.budget variable no longer appears. It USED to, but in time it just kinda stopped, hence where workflow.budget is there

https://cdn.discordapp.com/attachments/1144557219669627071/1144927615740809227/Screenshot_2023-08-26_113150.jpg

It's only in AI Tasks, though. If I call the var in something like a Text card then it works fine, it finds it no problem. Just in AI Task where the vars go missing
f
Hello @quiet-hairdresser-14769 I just want to take a step back for a moment. The Bot variable means all users will see the exact same variable. So, if I have a bot variable set to 10, all users see 10. If I run it through an AI task that changes it to 7, then it will automatically change to 7 for all users whether their conversation went through the AI task or not. Do you want to use a bot variable for this?
From what I am seeing I could see a potential argument for a user variable or workflow variables not bot variables.
But I could be missing something.
For clarification here is some documentation I think will help. https://botpress.com/docs/cloud/studio/variables/
q
Okay. I think I understand. I'll have to rebuild this one then utilizing the variables better. Thanks, I'll check out the documentation
f
No worries.
Let me know if you have any other questions.
q
You know, this clarifies a lot of issues I've been having, purely due to misuse of the variables 🤷‍♂️. It makes perfect sense now as to why my bot isn't working consistently. Sigh... Thanks for your help, again. Is there maybe some way of getting expedited tech assistance down the line? I'm going to be working on some fairly intense bots in the coming months and might need help at a slightly faster rate if possible
f
@quiet-hairdresser-14769 can you give me a few more details about the the bots you are planning on building. Is this as a hobby or are you building for a company?
q
Building for a company. We're planning a few really intricate bot projects in the coming months