1. Help Center
  2. Pulse
  3. Tips & tricks for effective Instructions

Adding links

In this article, you will learn how to create instructions to make the chatbot send the correct links and guide the visitor to navigate to these links, for example, by clicking on 'click here'.

Providing links to the chatbot

There are several ways to provide your Pulse chatbot with links: by adding the sitemap of your website via the Web Scraper or Document Scraper, or by manually adding links you want your chatbot to send using instructions in Domain Knowledge or Instructions.

To learn how to scrape your sitemap, refer to this Help Center article.

You can read how to add documents in this Help Center article. For example, you can convert the sitemap of your website into a PDF file and add it via the Document Scraper.

By scraping your sitemap, your chatbot will know all the links on your website and can include these in its responses.

Manually adding instructions (in Domain Knowledge or Instructions) looks like this:

Below are the links to the pages you can send:

  • Pricing: www.X.com/pricing

  • Products: www.X.com/products

  • Contact: www.X.com/contact

 

Making links clickable

Next, you can instruct the chatbot to ensure it only sends valid links and makes the links clickable. You can use the templates below for this. It’s best to add these instructions in one of the tabs in Domain Knowledge.

The following instructions are to make the links clickable for the chat widget. In other channels (WhatsApp, Instagram, and Facebook), this currently looks different. However, we aim to make sending links possible there soon using markdown.

For the Chat Widget:

Ensure you create the links using markdown. When you receive a prompt or input with a link, convert it into a clickable link. When sharing links, always use keywords like "here" or "click here" instead of full web addresses.
An example of a markdown link is: [Link text Here](https://link-url-here.org)

 

Using Only Links from the Sitemap

You can also use the following template to ensure the chatbot only uses links from the scraped sitemap. This sitemap must be added to the Document Scraper. You can then identify the Source URL by downloading the document from the Document Scraper and copying and pasting the URL from the browser. The instruction you then add is:

Use the provided information delimited by triple quotes to send links. If the link can't be found in the provided information, do not send a link at all.

"""
Source URL: [https://example.com/faq]. Only use links from this Source URL. Do not invent links that do not exist on this Source URL.
"""

For the Legacy Website Widget:

When sending a link, use only valid, existing links. Always convert a link into a clickable link using HTML <a> tags to create links with clear anchor text. Anchor texts you can use include "here" or "click here". When sending a product from the [company name], use the product's name as the anchor text. Do not send complete website links. For example:

<a href="https://companyname.com/contact">click here</a>

<a href="https://companyname.com/productname.html">product name</a>

Replace the bolded words in this template with words relevant to your chatbot/company.

Note: if you add URL's to the chatbot's knowledge in the Instructions, you will also have to write these as HTML code.

 

HTML Explanation

To make words like 'click here,' 'here,' or 'this link' clickable and allow customers to navigate from there to a link, you need to include HTML code in your instructions, as seen in the template above.

<a href=" is the start of the HTML code, and "</a> is the end of the HTML code.

Between > and <, you can add the word(s) you want to make clickable.

With that combination, you get the following:

<a href="LINK WITH HTTPS">CLICKABLE WORD(S)</a>

 

Note: Links may appear differently in the interactive tester compared to how end-users will see them when the chatbot is live.