Use tags to limit your KBAI content

When using KBAI, it can be useful to tell your bot which content to scrape. Define different categories of content by using tags.

Once you've added KBAI content and build you flow, it might be useful to tell your bot which content to scrape. For example, if a customer asks for something on topic X, it's better if your bot only looks for the content on topic X at that point in your conversation.

You can optionally define different categories of topics by using tags.

Add tags to your content

To add tags to your content:

  1. Add content to your KBAI.

  2. Add a tag under Tag this source. You can either:

Use variables as KBAI tags

You can use variables as tags. This means that any variable captured in your flow (for instance under button click) can be used to define which part of your knowledge base should be searched.

In the example below, a variable is saved under a button click, then the variable is used to search only documents tagged with pizza in the knowledge base.

Tag your sources to differentiate them.
  1. Click Save.

Edit tags

To edit your KBAI tags:

  1. From your Contents page, click on the 3 dots at the end of the line where your content is listed.

  2. Click on Edit.

  1. In the window that pops up, you can remove existing tags or add new tags.

Update your content tags.
  1. Click Save.

Use tags in your KBAI flow

To use tags in your KBAI flow:

  1. Open your KBAI block where the bot retrieves the answer.

  2. Under Limit your content, choose the tags of the sources that you would like your bot to visit. Only content tagged with these tags will be searched by the bot.

  3. Save your changes.

Limit the content that your bot scrapes by using tags.

Example

An example use case would be a bot that has a lot of content uploaded to it from different sources, but needs to give a specific answers when it comes to questions about security.

The "security" intent that catches all questions related to security. When that intent is triggered, the bot answers through the Knowledge base AI content that is tagged with "security". Afterwards, the bot will provide a link where more security information can be found.

Example of a flow where a bot scrapes only content related to security.

Last updated