Powered by
How to transition when "No valid answer found" in ...
# 🤝help
p
proud-hamburger-43203
09/05/2025, 7:39 PM
My objective is to trigger the 'else' card when there is no answer found in my KB. The issue i'm seeing is that it never gets to my 'else' card (2nd card) when the answer isn't in the KB, instead it just responds to the user. I've tried the expression outlined here:
https://botpress.com/docs/learn/reference/knowledge-base/introduction#handle-no-answer-found
{{!event.state.agentVariables.KnowledgeAgent.turn.answer}} but that doesn't work. I attached a video here:
https://drive.google.com/file/d/1J8UREiDLVzIKlH8k0tzpi5P9I9cVmEtH/view?usp=sharing
And I tried a bunch of vars including the suggestion from a similar post in 2023 on here:
https://discord.com/channels/1108396290624213082/1128582753714180136/1128582753714180136
https://cdn.discordapp.com/attachments/1413609428858703992/1413609429206569020/Screenshot_2025-09-05_at_2.33.03_PM.png?ex=68bc8ddf&is=68bb3c5f&hm=d7f044d3643fae412a3f5b6ae07c15d94516d00bf709310a05011259129a0d8c&
proud-hamburger-43203
09/05/2025, 7:57 PM
I tried this as well from "Quick Reference Section" and it didn't work. condition: turn.KnowledgeAgent?.answer?.length
2
Views
Previous
Next