Bot asking additional questionz
# 🤝help
f
Hey everyone, I was talking with my client about functions of his chatbot and he asked me if it is possible to make chatbot ask additional questions before answering from database to better understand question
a
Hey @full-gpu-42216 that's possible in Botpress, yes. You can use the new "query knowledge bases" card to search the KB with whatever you want. I've had good success with a logic like: 1. Search the KB with the user's raw query 2. If nothing comes up, use the AI task to come up with a relevant followup/disambiguation question 3. Use another AI task to generate a new query from the user's first question, the AI question, and the user's answer 4. Search the KB with this new, synthetic query

https://cdn.discordapp.com/attachments/1140556279912337548/1140598046279880724/image.png

f
so it should look like a node with first query, then if nothing comes up it goes to another node with ai task, where ai generates question and in the same node it gets another knowledge card and puts in this query to get answer and if no answer is generated the answer is something like "sorry i dont know"
a
that's one way to do it, yeah
3 Views