Bot not finding links on Notion pages

Hello,

I’m currently working with Notion pages that include webinar summaries, each starting with a link to the webinar’s replay. I’m developing a bot that should provide content based on a subject I input. The bot successfully finds the correct Notion page with the webinar, but it can’t extract the link that redirects directly to the webinar replay.

I’ve tried providing examples, explaining where the link is on the page, and mentioning that the link starts with <https://app.getcontrast.io/videos/>. However, it keeps making different errors. Sometimes it only gives me the base URL <https://app.getcontrast.io/videos/>, other times it combines it with the page name instead of the actual URL, or it appends random letters that lead to an unknown page.

No matter what I try, it doesn’t work.
Do you have any suggestions or solutions for this issue?

Hi!

Unfortunately LLMs tend to hallucinate on long links so there can be a lot of trial and error to make them use only provided links and not invent any.
What’s your prompt and which model are you using?

1 Like
  1. Receive Question and Customer Information

The bot receives a content request from the sales person, related to a customer who has expressed a specific concern or interest.

  1. Search on the Figures Blog and Webinar Notion Pages

The bot explores blog articles and Notion pages dedicated to webinars to identify content relevant to the customer’s concerns.

For webinars, the bot must find the app.getcontrast.io link that corresponds to the webinar on the page used. Random or unvalidated links should not be used. On each notion page an app.getcontrast.io link is written at the beginning of the notion page (app.getcontrast.io) is the beginning of the link I give you so that you can identify which link to copy, you must use the whole link which changes according to each webinar). It’s this link that must be given in the answer if you’re using a notion page.

  1. Synthesis and proposal

The bot compiles the results and proposes resources in the form of suggestions, sorted in order of relevance, from the most to the least relevant content.

And I add an exemple after

Ok, maybe use ‘You’ instead of ‘the bot’ when talking to the model. Which model did you chose for your assistant? Claude 3.5 sonnet ?

Are there any reference links given in the Dust UI at the bottom of your conversation?

I tested various versions of the assistant, both with and without reference links in the example at the bottom, but they all continue to make errors.

But were the reference links correct?
Most of the time LLMs are not great at producing links, that’s why we’re adding reference links at the bottom ourselves that are managed by us and not the LLMs :slight_smile:

Yes but I only placed some as example. Do I need to put them all, and so update them manually everytime a new link is add on a notion page ?

I’m not sure to completely understand - Dust is good at finding the content and retrieving the links for you and attaches them as references at the bottom of your conversation. It looks like this:

Is this what you are talking about?

I had to manually insert the webinar links into the bot’s instructions one by one for it to redirect properly, as the bot isn’t able to detect the links from the Notion page. This is somewhat frustrating.

1 Like

Understood - sorry about that !
Just to make sure, what did you put in the ‘describe your data’ input in the search tool when plugging your notion datasource?