https://discord.gg/botpress logo
Need help for knowledge base answering and fallbac...
# 🤝help
t
Hello all, I am building a chatbot. I have a simple flow in the begining; user to ask the question, chatbot to answer if knowledge base has the answer. If KB doesnt has the answer, chatbot will share a fallback message. However, as you can see in chat screen, chatbot is finding the answer in knowledge base but it is still transitioning into fallback node. Does anyone has an idea? I added two expression cards, one for correct answer, other one is for fallback. Expression 1, condition : {{turn.KnowledgeAgent.responded}} Expression 2, condition : {{!turn.KnowledgeAgent.responded}} https://cdn.discordapp.com/attachments/1420422758202085469/1420422758587826307/Screenshot_2025-09-24_at_17.33.53.png?ex=68d55747&is=68d405c7&hm=f9c5bbaea49f8dbb1273c484550b1d3dfd9e1d7191ae7997914cec8c9392638d&
t
Hi @loud-crowd-60573 It seems it is not about intents, but your scenario for intern" is eye-opening for me as newbie. Thanks ! I am sharing a new screenshot below. Sorry for previous one, I was translating from a different language, this is the final version. As you can see in bot chat screen, bot is finding the answer in KB but it is not sharing. Instead it is leading to KB Has no answer node. https://cdn.discordapp.com/attachments/1420422758202085469/1420483033244499978/ing1.png?ex=68d58f6a&is=68d43dea&hm=8fc17ce9bd437cef74c1ec2d2011096b0903833307459ba9b7dcbfebf48735f9&
l
One thing I would love for you to try is our autonomous nodes! You can give it the exact instructions you want and you will be surprised how amazing it is!
t
Thanks @loud-crowd-60573 but autonomous nodes are asking too much to understand question. I have straightforward knowledge base and I simply want it to answer if it has answer in KB. If it has no answer, a simple error message is enough. I did everything Robert shared in youtube video, now it is sharing the answer in KB but it is also transitioning to "sorry I dont have the answer" node at the same time., bot messages are appearing together. Do you have any idea? I tried changing expression card's positioning but it sill doesnt work. https://cdn.discordapp.com/attachments/1420422758202085469/1420692843063935116/has-answer.png?ex=68d652d0&is=68d50150&hm=a03e192723c65274c10f1b81dd68d076e3882b88750808c08781886a20603653&
l
Hey @tall-advantage-99742 After replicating the situation I was able to find a solution 😄
Let me know if this helps!
The answer is returned without the fallback message displaying
t
Hi @loud-crowd-60573 it worked! "!workflow.useranswer" fixed the issue 🙂 thanks a lot. I am looking forward to continue now!