Variable Passing Between Bots

This is a question concerning an ongoing discussion. Baptiste, you will be happy that I am simplifying my (CRAZY) large bots. So I am breaking them up into smaller organized ones. So the issue that I am having- Bot 1 (Variable is created and assigned value) > Bot 2 (Variable is created) = Works fine Bot 1 (Variable is created and assigned value) > Bot 2 (Variable is not used, not created, doesn’t exist) > Bot 3 (Variable is created) = Doesn’t work the Variable does not have the assigned value from Bot 1. The issue is I have a crazy amount of customized variables and to sit and create ALL of the variables in ALL of the simple bots takes a LOT of time just to simplify out to the different bots (versus doing them all in one). Is this how it is supposed to work, or should these variables be saved to the session and passed between bots and when I need them I can create the variable in that bot and use the value? My understanding before is they should persist and be available to me without me having to create a TON of variables in every bot even if that bot doesn’t use that variable. Please let me know thanks!
4 Replies
Baptiste
Baptiste3mo ago
Hmm That's interesting. Indeed, it does not properly pass the variables if an intermediary bot does not have it I'll check if that can be fixed
greenrhyno
greenrhyno3mo ago
@Baptiste I've been busy with some personal things so I haven't been on this project. Checked Gitub that you updated and completed this and my initial testing shows it is working correctly now. Thank you!!!! I will let you know if I run into any problems but this will make it way easier if I don't have to create all the variables in all intermediate bots, just the ones that variable is used. LOVE IT! You the MAN!
Baptiste
Baptiste2mo ago
❤️ Glad to hear that!!