Timeout execute code
# šŸ¤help
t
Hello everyone, Is there a problem executing codes in Timeout workflow? Isn’t it possible? I’m trying to execute the same code from other workflows and it’s not working. I even had to copy/paste the code because it wouldn’t be generated by Ai. Thank you very much.
a
Hey @thankful-sandwich-72110, no issues executing code in the timeout flow. One thing to be aware of is that if you have any workflow variables from the main flow, they won't be accessible from the timout flow. Workflow variables are scoped to just one workflow, so if you hop from Main to Timeout they disappear.
Session variables, on the other hand, are persistent between workflows. Check out https://botpress.com/docs/cloud/studio/variables/
t
Hi! @acceptable-kangaroo-64719 , thank you very much. It seems that the problem is not the Timeout workflow but the execute code feature. Yesterday i was having some problems generating the code with Ai in Timeout workflow (maybe bc it was the one i was working on). It would create just half of it or no code at all. But today is even worse. I can’t create any code anywhere. Is there a problem with the servers or Botpress side?
a
Hmm that's interesting. What kind of prompts are you using to generate the code?
t
something like "send @user.name and @user.email to webhook https://xxxxxyyy.com" which i used in other workflows before yesterday and worked, but now there is no code generated no matter the prompt.
a
interesting! Could you hit this button and share the number it gives you?

https://cdn.discordapp.com/attachments/1146733415341756427/1147219084287688775/image.pngā–¾

t
Hi @acceptable-kangaroo-64719, sorry for the late reply. I just submitted the report with this number 8a7ee07d-03f0-46aa-8ae9-aef35d108768
a
so I was able to get code generated by typing in this box and pressing enter. Is this how you doing it?

https://cdn.discordapp.com/attachments/1146733415341756427/1148197217182699581/image.pngā–¾

t
Yes, i tried in both, the right bar and there, adding a dot, changing the prompt, lots of trials and nothing works. I also tried deleting cache and history, nothing worked. I had no problem until thursday.
a
have you made sure this little guy is toggled to be blue instead of gray? It goes gray before you can edit the code, but in that mode prompts are disabled

https://cdn.discordapp.com/attachments/1146733415341756427/1148230864896012428/image.pngā–¾

t
Yes, i did. In fact, in order to advance building it, i turned it off to copy and paste the code from othre workflow and modified it. But i still have a missing part of the bot pending until i fix this, as i’m not a coder. 😦
a
have you tried exporting your bot, then making a new bot and importing your bot into that new one?

https://cdn.discordapp.com/attachments/1146733415341756427/1148232186823180350/image.pngā–¾

t
Nope, i didn’t. I will do and let you know. I attached a screen capture of what’’s happening

https://cdn.discordapp.com/attachments/1146733415341756427/1148233017752559706/RPReplay_Final1693830279.movā–¾

32 Views