https://discord.gg/botpress logo
Transition condition
# 🤝help
f
Hi, I am new to botpress, I was watching the "How to build an AI chatbot: step-by-step guided walkthrough tutorial" in You Tube and created the workflow, but when I add the label in transition like "user input is a number between 1 and 5" it does not automatically create the condition. The Generative AI is enabled (see the screenshot). Could you please tell me if I am doing anything wrong, or is there any other setting that I need to enable to get this working? https://cdn.discordapp.com/attachments/1367141778444259451/1367141778586603610/BotPress_Transition.png?ex=68138180&is=68123000&hm=8363386b8e3919a2b58ef79a165d61c82fa49c9f39e31c72d0e96b1791c172f8&
p
The code generation should work inherently, it is however important to reference the specific variable you assigned the number of people to. There does seem to be an issue with it currently. If your variable is numPeople (workflow.numPeople) than the code the AI would generate would be: workflow.numPeople 0 You can paste and adapt this to all three of your transitions.
f
Thank you Leanne. I also expected it to generate something like this as in the video, but it didn't generate it. I will try pasting what you mentioned and see.
p
No problem, let me know if any other nodes/cards aren't generating the code they're supposed to.
f
Sure will do. Thank you.