Chatbot uses wrong links

Hi everyone,

I’m trying to improve my chatbot’s behavior when it comes to sharing URLs. Currently, if it doesn’t find a relevant match in its internal database, it sometimes “guesses” a URL—which unfortunately can lead users to 404 pages.

I’d like to train or configure the bot so that it only suggests URLs that already exist in the knowledge base or database I’ve uploaded. If there’s no valid match, I want it to simply ask the user for more details instead of generating potentially broken links.

Has anyone managed to set up a similar behavior with their bot? Is there a best practice for this?
I’d appreciate any advice or examples!

Thanks in advance!

2 Likes

Hi there, @Ivan_1s :waving_hand:

I see that you have 2 AI Chatbot widgets. Could you please specify the name of the chatbot, where this issue occurs?

Additionally, could you please share:

  • an example when the widget uses broken links

  • cases when the links from the training files should be used

Ivan, we encountered the same issue, but were able to fix it by adding these lines to the existing Instructions box text:

If no hyperlink is provided in the training documents, do not create or assume one — even if the referenced page appears to exist. Do not infer or fabricate links. Only use hyperlinks that exactly match the examples and URLs found in the training documents. If a document mentions a page title (e.g., "Drain Cleaning Tips page") without providing a link, do not add a hyperlink — even if the page seems to exist.

This cleared up the problem for us.

2 Likes

Paul, thank you so much. I’ve entered this prompt into the instructions, and I hope the issues won’t keep repeating. Honestly, I had written some text myself and gave it as a prompt, and it would work fine for a day or two, but then it would go back to the old behavior. I hope this one you provided will have better results. In any case, thank you very much for your response.

1 Like

I also hope this prompt will help you resolve the issue. However, if the issue still persists, please answer the questions below. I’ll be happy to investigate with the devs:

1 Like