Card Query Knowledge Bases (fallback when not answ...
# 🤝help
m
Hi guys, I'm using the "Query knowledge base". How do I do it when the answer does not exist in the knowledge base? I tried using "!turn.KnowledgeAgent.responded" but it didn't work as expected, I would like it to send it to the fallback when I don't have a response. When it does not find an answer, it repeats the node, I would like it to go to the fallback instead, informing that there are no answers for this question. *Sorry for any writing errors.

https://cdn.discordapp.com/attachments/1133438745530613810/1133438746042306700/image.png

r
@microscopic-lizard-92513 you can check if the turn.KnowledgeAgent.result is null !
m
@rich-battery-69172 like this? I did that but it didn't work

https://cdn.discordapp.com/attachments/1133438745530613810/1133452680447148082/image.png

This expression was ignored in this case

https://cdn.discordapp.com/attachments/1133438745530613810/1133452977580019863/image.png

r
null
* it's case sensitive !
@microscopic-lizard-92513
you can also do
!turn.KnowledgeAgent.result
r
Hello, I also have the same problem turn.KnowledgeAgent.responded always equals false, whereas turn.KnowledgeAgent.answer has a value.
Hello @rich-battery-69172 Is it a bug?
r
responded means the bot sent the answer to the user
that's not a bug it's on purpose – it's false when the bot didn't respond (which means you have to respond manually)
49 Views