https://discord.gg/botpress logo
Choice input + Raw input
# 🤝help
m
Hi guys, I am building a bot and would like to use the single choice input and text input simultaneously. The user input should query the knowledge base only if the input doesn't match the fields in the single choice. While this is the expected behaviour, at times I see that the response comes both from the single choice as well as the knowledge base query. Has anyone faced this issue? Is there an alternate path. Eg. User is shown a single choice input 'About us' which redirects to a separate node. The user types raw input: 'About us" which should ideally go to the above node. Instead it queries the KB and also triggers the node. And the bot shows 2 answers.
w
hey, from what I understand you could use your single choice card and below use intents to trigger if the user inputs something and redirect him to the right node
m
I tried that, but the issue still exists. Ill try to explain in a better way. Single choice with KB Enabled Single choice option: About Us -----> redirects to node 1 Now when I click this single choice option, it queries the DB as well as redirect to node 1. And finally, returns two answers one from db and one the message in node 1.
w
okay i see, personnaly i prefer to work with the card "query KB", it gives you more possibilities, and in particular more flexibility to do what you want to do
m
Thanks, ill give it a try.
7 Views