Hello guys, I have this case where I have a route that goes to GPT and it translates the audio I sent, in that I wanted to know if I can pass the result to a variable to go back to the top route that would be to send the message to telegram. Then I wanted to know if it’s possible to do it and how it’s done, because he doesn’t let me connect the ball from the bottom to send it to the ball from above.
Thank you for everything
Hi @GSS_Innovations, Routers, or any other modules, can have only one input. To pass information from branch to branch we use “Set variable” module in the end of branch 1 and then in the beggining of branch 2 we can use “Get variable” module (or variableS, multiple). From branch to branch you don’t have access to their variables, so…
Also make sure if you implement this, that Order of branches is correct. If I understood correctly, telegram>chatgpt module will be executed first, so it’s first branch. And then we’ll use output of chagpt (set variable) module in branch 2 (get variable).
Mention me if you have more questions.
Thank you very much for the explanation, if it doesn’t bother you, could you send me a print more or less of what it would be like? It’s like, I can do one part and it would join with the other when I get the variable, it would be like this:
Like, if it goes to the top step, I can’t get the data from the top.
@GSS_Innovations, If you’re router is correctly configured (top side first), you should be ok. Slight adjustment :
Variable will be declared in the top and transferred to the bottom branch. You’re only declaring output text from chatgpt right ? That should do it.
But that’s it, if I put the set variable only on the top, it will only take the balls on top, it doesn’t find what it executed on the bottom.
@GSS_Innovations, Yes that’s how set / get work. You declare on top, and then “Get” on bottom. or vice versa. depends which branch you want to run first and get data FROM - you’ll put “SET” there.
Welcome to the Make community!
Please see these duplicate threads asked and answered by other community members:
Hope this helps! Let me know if there are any further questions or issues.
— @samliew
P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.