https://discord.gg/botpress logo
#🤝help
Can't find out how to direct the flow of my nodes
# 🤝help
r

rich-beard-26668

02/14/2024, 4:07 PM
I have a question that lets my users answer and then I want the AI to return an answer based on the KBs that I've provided. I'm fairly new to bot making/botpress in general so I don't know what's going wrong. When I have the user answer me, the expression !turn.KnowledgeAgent.responded is supposed to bring them to the no_answer node if the AI can't come up with an answer. But it seems that after some testing, even after the AI is able to answer the user it still shows them the text message from the node no_answer. How can I correct it? Would appreciate any help available, thank you :))
f

fresh-fireman-491

02/14/2024, 5:29 PM
Hey You can use !turn.KnowledgeAgent.answer to check if it wasn't able to find an answer from the knowledge base. You would have to use an expression card with the output variable of the AI card instead.
c

cuddly-pizza-65694

02/15/2024, 8:23 AM
Also, not sure why you need to do anything special here. This is a fairly straight-forward use case. It can be handled with a raw input like so.