https://discord.gg/botpress logo
I created a bot as tutorial, there 3 main node:
# 🤝help
r
1. Field_Choice for user select their fields wanted to ask (one choice only) 2. Qry_Field_KB inlucdes a Execute Card to delelte the Question variable, then a Text and Capture card to get their new Question, then querry the Field KB and give the answer. If it does have the answer then transition to node Have_ans 3. Node Have_ans to give the answer and a single Choice to ask the user to select "Keep asking in current field" or "Other field". The problem I wanna help: is there a solution alow user keeps asking in current field then just write out their question and bot keep answering without having to select "Keep asking current field" ? I tried to add an Execute Code card "if user not select Other choice then get the question and set OtherChoice Variable (boolean) = false else true" and use this excecute Code to transtion to the Qry_Field_KB but it not works and turn to Error flow Any help/suggestion is appreciated, pls https://cdn.discordapp.com/attachments/1364903217229729843/1364903217644703804/image.png?ex=680b5cad&is=680a0b2d&hm=02e66ead75deab06554168c43d92b6ce10350175b70acccc415aa9d5c1bbfa88&
p
If you're not opposed to using AI cards, you could add an AI transition that reroutes to the field node if they want to keep asking questions in the same field and to the field choice node if they prefer changing fields. Additionally, there could be an end conversation option in the same card. Let me know if I can be of any further help Happy Bot Building!
r
Thks @prehistoric-airplane-85682, I first use AI Transition to do the same thing but then I follow other instruction to use Standard + KB Query card to keep it robust, I still want to use this way but if no choice Im back to AI transition 💖