condition for "No valid answer found"
# 🤝help
a
How do I set a condition for when turn.KnowledgeAgent.answer is empty or for when I get "No valid answer found" when querying the knowledge base. I've tried the following to no avail: !bot.KnowledgeAgent.answer !turn.KnowledgeAgent.answer turn.KnowledgeAgent.answer === '0'

https://cdn.discordapp.com/attachments/1132566745119465503/1132566745232715866/image.png

https://cdn.discordapp.com/attachments/1132566745119465503/1132566745438240818/image.png

c
Tell your Ai task to return if kb is empty”answer could not be found in kB”
m
Hi @adorable-minister-80645, If you are using the "knowledge agent" you can use the expression "!turn.KnowledgeAgent.responded" but if you are using "Query Knowledge Bases" you can do the following using "!turn.KnowledgeAgent.answer" and "turn .KnowledgeAgent.answer" At least for me it worked that way. sorry for my bad english

https://cdn.discordapp.com/attachments/1132566745119465503/1133752695921070090/image.png

234 Views