How can I decide when to trigger the knowledge bas...
# 🤝help
s
I have a node with a single choice capture card, where I ask the user a question and provide three options for them to select one. I want to make it so that if the user enters anything the bot will respond from the knowledge base, but if they select a button to proceed in the flow. Now it happens that the user selects an option, but sometimes the bot answers from the knowledge base, and then takes the user to the next node. How can I set it that it only answers from the knowledge base if the user doesn't select an option?
a
This is an interesting question, @shy-glass-43299! The knowledge base doesn't care if the user message is a button or a free text message, it will search the knowledge base. For your use case it's a bad thing, so what would be the preferred way of dealing with this (and we can make a post on #1111026806254993459) My thoughts: * Some people might like the click button & get KB answer, so maybe there should be a switch on the knowledge agent for "Answer on button clicks" * If a button has a transition, maybe the transition should execute before the knowledge answer? I'd love to know what you think would be the best way to go about this. For now, you can try turning on manual answering in the KB agent's config and then make a text card with
{{turn.KnowledgeAgent.answer}}
to tell the answer to the user.
s
I think point 2 would work better, that the transition happens before knowledge. And only if the user doesn't click, then transition doesn't happen, but knowledge base kicks in
a
Alright, I made a post on #1111026806254993459 here, you can add your thoughts as well https://discord.com/channels/1108396290624213082/1130829162341486705
2 Views