Urgent Question - How to retrieve the URL of the w...
# 🤝help
f
I am using the latest Botpress Cloud, and I only know i can get the search results from event.kb.results after i crawled the webpages in the embedding but i do not see the URL of the page in event.kb.results. Is there a way I can get it?
f
You want to know what URL it went to for the information?
f
yes exactly!
f
Use the emulator
Then go to event debugger after asking a question which have searched the website
Select Knowledge Query

https://cdn.discordapp.com/attachments/1143929694467670037/1143936185148899408/image.png

Then go down to citations

https://cdn.discordapp.com/attachments/1143929694467670037/1143936293714272369/image.png

f
thank you!! but this is not exactly what we want do you know how i can i get that information to return to the user in chatbot?
like have citation within the answer it return to the user
f
yea
Just did it actually to see for my self

https://cdn.discordapp.com/attachments/1143929694467670037/1143937430328713236/image.png

f
ohhh
got you
f
Inside the "Query Knowledge Bases" use this:
f

https://cdn.discordapp.com/attachments/1143929694467670037/1143937541511323718/CleanShot_2023-08-23_at_11.59.182x.png

do this
f

https://cdn.discordapp.com/attachments/1143929694467670037/1143937546989076600/image.png

Then just have a text containing "{{turn.KnowledgeAgent.citations}}"
It will print it out like this

https://cdn.discordapp.com/attachments/1143929694467670037/1143937655323775077/image.png

If you have the answer manually on the knowledge agent you wont get the first response

https://cdn.discordapp.com/attachments/1143929694467670037/1143937962241970256/image.png

f
thank you this is so helpful
f
Any time 🙂
c
Wow 🙂 so great to have power users like you who are willing to help! Thanks @fresh-fireman-491
f
at the same time, this is not yet working for me:

https://cdn.discordapp.com/attachments/1143929694467670037/1143953382856474674/CleanShot_2023-08-23_at_12.59.142x.png

do you know how to solve this?

https://cdn.discordapp.com/attachments/1143929694467670037/1143953607474040832/CleanShot_2023-08-23_at_13.01.342x.png

it does not give me url but just give me the page title
cc @crooked-van-25152 and @fresh-fireman-491
f
Do you use a text card for the {{turn.KnowledgeAgent.citations}}
Just put the {{turn.KnowledgeAgent.citations}} in the text card
I used the web search on botpress.com and that might be why I got the links
If you have used web pages it will just show the link you have sent which seems to be aspx.html
c
Can you show us your node?
f
i used the {{turn.KnowledgeAgent.citations}} with web pages -- and passed it my sitemap
f
So you use the sitemap for it under the webpage?
f
yes
c
@early-train-33247 can you please have a look here?
f
the web pages search does i have crawled the URLs

https://cdn.discordapp.com/attachments/1143929694467670037/1143960847681585273/CleanShot_2023-08-23_at_13.30.572x.png

just that it does not return the URL anywhere
f
I think the difference between the response i got and the response you got is the fact that I use web search and you use web page
f
yes i think so too
but the web page search has so much better result
and we really hope to use it
i am think maybe we can just search both ways
if that is possible
do 2 searches in one workflow one search for webpage that get us the answer and another one do web search
and @fresh-fireman-491 do you heppen to have a moment like to kindly help me debug this a bit via a video call?
would love to pay for it too because this is really urgent for us
f
If you are using the whole sitemap why not just use a web search with the domain? I have the next 30-40 minutes free so just let me know 🙂 No need to pay anything
23 Views