Use tags to limit your content

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

You haven't heard of our Knowledge base AI feature yet? Make sure you have a read 👇

Knowledge base AI

Once you've set up your FAQ flow using a knowledge base, 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 define different categories of topic by using tags.

Add tags to your content

Adding tags to your pieces of content is an optional step when creating your knowledge base.

To add tags to your content:

  1. When the window pops up, you have the option to add a tag under Tag this source. You can either:

Use variables as tags

You can now 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.

To add a variable tag to your knowledge base, follow these steps.

Edit tags

Once all your sources are added to the knowledge base, you can still edit your tags.

To edit tags:

  1. Click the three dots at the end of the line where your content is listed.

  2. Click the Edit option.

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

Use tags in your knowledge base flow

Tags become useful when you add them to your knowledge base flow so that they limit where your chatbot will look for an answer.

To use tags in your knowledge base flow;

  1. Open your Knowledge base AI block that retrieves the answer.

  2. Under Limit your content, choose the tags of the sources that you would like your bot to visit. Only the pieces of content that have the tag that is specified in the Knowledge base AI action will be used to generate the answer.

  3. Save your changes.

Example use case

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.

Last updated