https://discord.gg/botpress logo
#🤝help
Implementing KBs to Task Ai
# 🤝help
l

lemon-byte-70178

02/15/2024, 9:16 PM
Hi, I'm struggling with some logic here. Let's say a user asks a question that isn't available in the KnowledgeBase, but there might be related content in the KBs. However, when it doesn't find anything and passes the empty output to the AI task, it causes a problem. Desire Response If the KnowledgeBase fails to provide the desired response for a user query, instead of passing an empty query data to the AI task, I'd like the AI to generate a response related to the user query while also incorporating any remaining content present in the KBs that might be relevant.
f

fresh-fireman-491

02/15/2024, 9:29 PM
Hey there @lemon-byte-70178 Take a look at this tutorial

https://www.youtube.com/watch?v=Q2VMitD6DMU&t

l

lemon-byte-70178

02/15/2024, 9:46 PM
Thanks for sharing! I have another question. What if the bot is for ecommerce or SaaS, and it can't find an answer in the KBs, so it asks Chatgpt Like, what if it promotes or lists products similar to ours, competing or related to our own?
how can i avoid that from happing and make the response more related to data available in my KBs.
f

fresh-fireman-491

02/16/2024, 6:18 AM
You can give it Task Instructions where you could tell it to only recommend these products: x, y, z.
l

lemon-byte-70178

02/16/2024, 7:00 AM
okay i understand