How can I make chatbot to give links?
# 🤝help
a
Hello, I have been trying to make the bot to share links to specific webpages. I trained the bot from URL so he should recognize which links I am talking about. Thanks in advance.

https://cdn.discordapp.com/attachments/1143208596620972032/1143208596813906060/image.png

f
Hey @adamant-night-14663 welcome to the community! Can you create a problem report and hsare the ID here so i can take a look
a
Thank you, here is the ID 448ffab3-a6fb-4f58-95f3-6a57aadb1fed
f
Hi @adamant-night-14663 , You can find it here: {{event.state.agentVariables.KnowledgeAgent.turn.citations}}

https://cdn.discordapp.com/attachments/1143208596620972032/1143216790571331687/image.png

So all what you need to do is to add a text card that shows the URL for the page holding the data
a
Awesome, thank you so much I am going to make the test and I will upload the node screenshot here, so you guys let me know if it is okay
f
Perfect 🙂
If it didn't work, add a report ID 😉 so I can replicate it on my end 🙂
a

https://cdn.discordapp.com/attachments/1143208596620972032/1143218579613954108/image.png

Is this the right way? I am sorry I am kind of new to this.
f
Anything after the "always" transition is ignored. From logical perspective, "always" happens always, so whenever the bot is executing the card sequentially, it will reach the "always" card then move our of the node. Can you move that card up, between the "No answer from Knowledge" and "always", you can drag it.
then give it a try and tell me what do you think?
a
, Well I hope this is the right way. However, it is giving wrong links

https://cdn.discordapp.com/attachments/1143208596620972032/1143220878931398738/image.png

https://cdn.discordapp.com/attachments/1143208596620972032/1143220879262756864/image.png

f
What do you mean by wrong links?
a
I ask for the support page and I receive the home page link
f
Understood, but actually all the search results to that query returns the home page:

https://cdn.discordapp.com/attachments/1143208596620972032/1143221592093098166/image.png

You want it to return this URL https://rafal.com.sa/support/ correct?
a
You are right
Also, I would really appreciate it if we can find a way where the links are provided only if requested by customers. Because, every message I send he gives me a link. I know I am asking for too much but I would really appreciate your help
f
I think you can add a choice field after the bot answers, add a choice that asks the user, something like "do you want the link for that or not?"
a
Got you, I am going to try it. Thanks again
f
You're welcome 💪
a
Can you see that is the error?
f
what is the error?
a
Hey, I found a solution that could fit bot now I have another problem
I want him yo answer this tye of questions instead of the one with the X

https://cdn.discordapp.com/attachments/1143208596620972032/1143237250260410410/image.png

By answering this way he is going to provide links and answer perfectly. How can I make that to be the answer? thanks in advance

https://cdn.discordapp.com/attachments/1143208596620972032/1143237816600514630/image.png

c
Hey man, I solved this a few days ago working on a chatbot. What I did was to setup intents for the possible URLs I would like to give to the user and set predefined answers for each intent that included the URLs
I couldnt solve it with knowledgebase answers so predefined answers to intents was the best solution
a
Wow, I am going to try that, thank you
f
Sorry if I was late for the party 😄
You can also add in the KB description to "Return all the information and include the URLs and links"
But I like what @cuddly-spring-6354 suggested
Please keep us posted if it worked for you 🙂
a
Hey, It actually didn't but I am pretty sure I made a mistake. I really appreciate your help guys, thank you so much. Be safe
32 Views