Expression working incorrectly
# 🤝help
s
Hey everyone, i'm having thew following issue: I have an expression which is for when the bot doesn't find the answer to the user's question in the KB and it is supposed to send you to the fallback message. The thing is, even when the answer is found in the KB, the bot sends the answer to the user but also the fallback message

https://cdn.discordapp.com/attachments/1142235913435492443/1142235913599066203/image.png

https://cdn.discordapp.com/attachments/1142235913435492443/1142235913829761214/image.png

https://cdn.discordapp.com/attachments/1142235913435492443/1142235914094006383/Captura_de_pantalla_2023-08-18_201659.png

b
I have found this before. The quickest solution is to just query if false first (no kb solution) and then redirect, else, answer. Have you tried that?
s
no, could you send me a screenshot on how to do it?
b
I don't have my computer with me right now but basically change the order to this: Raw input Query knowledge bases No answer from knowledge {{!turn.KnowledgeAgent.answer}} Always That way,.if there's no answer it sends right away, otherwise, skips it and then answers. That has worked for me. Kinda shouldn't because it's a boolean but it does.
s
changed it, even if the answer is in the kb the bot now responds with the fallback message
b
you can try this (I just did it)

https://cdn.discordapp.com/attachments/1142235913435492443/1142524832462942298/image.png

138 Views