https://discord.gg/botpress logo
#🤝help
knowledge base fail
# 🤝help
h

helpful-kilobyte-18816

07/17/2023, 3:35 AM
Whats the correct code for when the knowledge base cant find the information (and you want to take them to a new node eg."try again"). Doesn't seem to be working.
Everytime I ask ai I get different responses, Botpress documentation should be updated to tell you how to manage the situation where the KB doesnt find any info.
m

melodic-pharmacist-33482

07/18/2023, 9:53 AM
use "!turn.KnowledgeAgent.responded" or "!turn.KnowledgeAgent.answer === ''" expression, depending on your use case 🙂
h

helpful-kilobyte-18816

07/18/2023, 1:09 PM
Thanks. What's the difference? How do I know which one to use? Non programmer here.
a

acceptable-gold-88171

07/18/2023, 3:37 PM
if you have respond automatically, use the first one, otherwise, use the second!
h

helpful-kilobyte-18816

07/18/2023, 10:49 PM
Great, thanks
2 Views