Use your KBAI source URL in a button

Learn how to display the source of your KBAI answer inside a URL button.

When your bot retrieves an answer from your knowledge base, this answer exists within a variable that also contains a link to the source of this answer. This source is either a PDF name or link to an URL.

In the case of an URL source, this URL link can typically be used as a button within the bot conversation.

Example of a knowledge base source URL used within a conversation as a button.

To use the KBAI URL within an answer:

  1. Create your Text message.

  2. Add a button that displays the following variable: {knowledgebase.contentUrl}. Your bot message should look similar to this one:

Your final result should be similar to this:

Example of a knowledge base source URL used as a button.

Last updated