https://discord.gg/botpress logo
How to make a transitino to other node in Autonomo...
# 🤝help
r
I have a bot using AI transition to auto transit to each autonomous node acording to key field searched in user question. The key field is stored in a workflow.fiedVariable. Now i want in each autonomous node (of each field), there is a transition back to former node if workflow.fieldVariable =='ANYTHING_ELSE' (it means when the flow does not defined what key field is) I searched nothing useful information in docs Pls help ! any suggestion is aprreciated ! https://cdn.discordapp.com/attachments/1361270448251211827/1361270448431693824/Question1.png?ex=67fe2566&is=67fcd3e6&hm=102911472e741563223b4bced875ceae78ddb3f9edb97380b802d6ad777c91ba&
l
It works like this, you put a text, I have not tried with a expression, but it would be good to know if this works.... following https://cdn.discordapp.com/attachments/1361270448251211827/1361288505686491288/image.png?ex=67fe3637&is=67fce4b7&hm=427ad890af8b31516736a0a01d482201957d9788e1a770334d40c0f28b5cf0e0&
r
I m learning sth from this clip

https://www.youtube.com/watch?v=-N4OoKg_w4I&t=3s▾

(maybe yours or your teammate :))), it seems that there two ways, transition in Intruction (like your help here) or use a Standard node with an Query KB card, Is that correct
o
When placing the transition card in an autonomous node, there is no need to programmatically type the transition (ex: workflow.isPerson === true) since the autonomous node will automatically generate that code given the context. When placed in a standard node, like I did inside the video, you need to programmatically create the transition yourself as it is not using AI to transition.
This explains why @limited-pencil-78283 was capable of writing "user wants to talk with a human" in the autonomous node's transition card as the autonomous node should be able to interpret this. The example of querying and storing results in that video shows an example where AI isn't being used.
I also recommend checking the routing to other workflows chapter of the video you posted @rough-toddler-35805
r
Thks @limited-pencil-78283 and @orange-egg-72655 , I'll try what you say. Hope it works 💓 However, i still not understand much about the way you routed to other workflow inside the video though I watched it several times. Maybe I need to watch more 😁
Dear @orange-egg-72655 I used an AI way as @limited-pencil-78283 said, I put a text in transition card and it works 😃❤️❤️, thks again. But I wonder is it robust or not ? Maybe I should try the KB Query in Standard card and make a comparation.
o
Cool! I'm glad you found a solution. Should be robust! Let me know what you observe
10 Views