knowledge base fail
# 🤝help
h
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
use "!turn.KnowledgeAgent.responded" or "!turn.KnowledgeAgent.answer === ''" expression, depending on your use case 🙂
h
Thanks. What's the difference? How do I know which one to use? Non programmer here.
a
if you have respond automatically, use the first one, otherwise, use the second!
h
Great, thanks
2 Views