https://discord.gg/botpress logo
Knowledge Base First, Then AI with Website Lookup
# 🤝help
g
How can we create a workflow that first fetches from the Knowledge Base, and if not found there, uses AI to find the answer from my website?
p
You could have different standard nodes; on for the query knowledge base and then a transition based on the answer found or not and then a search web card. Hope this helps!
g
Earlier, I was using an autonomous node, but now it was unable to answer queries or fetch data from the website.
p
Yeah, it depends on the use case, the more your AN has to do the more likely it is to mess up. Have you tried the alternative I suggested?
p
Search Web works best when the freshness is set to no selection and the website doesn't contain "www.". An alternative to that card would be to add the website to a knowledge base and query the knowledge base in you standard node instead of with a search web card.
g
I have already added the website to the knowledge base and configured the bot to query it first. If the bot is unable to retrieve a solution from the knowledge base, what should I do in that case? Previously, I was using an anonymous node for such scenarios, and it was working as expected—providing appropriate responses. However, for the past 1–2 weeks, the anonymous node has not been functioning correctly and is no longer returning any answers.
p
You can definitely achieve the same result without an AN. However, I'm curious if you have the website in your kb and the first step is querying it, what information more could be found by searching the web? Both website and Web search are options in a kb though.
g
I was trying to check for example the MBA fee details, and as you can see in the attached screenshot, the first step is querying the website. Although the solution seems to point to the correct location, it’s still not able to fetch the data. After that, I even added an AN node to explicitly pull the information from the website, but it’s still not working as expected. Could we please schedule a quick meeting to look into where the issue might be? If yes, you can schedule the meeting at your convenience. Here is my email ID for coordination: yash.agarwal@gusindia.global https://cdn.discordapp.com/attachments/1376885986201698475/1378950485448458380/image.png?ex=683e7737&is=683d25b7&hm=65ee30d7a2668b48aeb1074c33fe7046bc4d636d40092b936eb8afb20a77f6a8&
@User Anyone can help me on this?
l
@gentle-twilight-74420 - have add the website to your KB? - I can look into the issue for you
g
yes i have added the website in KB
@limited-pencil-78283
is the correct expected output
@gentle-twilight-74420
g
yeah
@limited-pencil-78283
this is correct and expected
g
wait let me show mine KB
what you add in workflow? means which card?
@limited-pencil-78283
l
this looks correct
g
but not showing correct result
l
i can share my bot, try with it
g
can you share your AN Instruction?
@limited-pencil-78283 There?
g
Thanks
l
@gentle-twilight-74420 did that work for you?
g
Hi @limited-pencil-78283
l
In your workspace, there is a table that has data
But it should still get imported
g
no i have created new user
l
It should still work, try, this table is not relevant to function of the bot
g
let me try again
still getting error what should i do any suggestions?
l
As I said, the bot should have been imported, read the message. It states the bot was imported, only the table was skipped
g
Cool
Let me do the same changes and test if it works or not
@limited-pencil-78283
l
can we do a quick call?
g
sure
4 Views