Crafter.ai

Tagging Documents

Ultimo aggiornamento: 12/12/2025

User Manual - Knowledge Base Tagging System The tagging system allows for the organization and categorization of documents uploaded to the chatbot's knowle...

Tagging Documents ChatbotTag Documents Chatbot

User Manual - Knowledge Base Tagging System

The tagging system allows for the organization and categorization of documents uploaded to the chatbot's knowledge base. Tags enable:

  • Organizing documents by thematic categories
  • Selectively filtering chatbot responses based on context
  • Creating dynamic conversational flows with contextualized content
  • Improving the accuracy of the bot's responses

Overview of the Tagging System

What is a Tag?

A tag is a colored label that can be assigned to documents in the knowledge base. Each tag is characterized by:

  • Label: Descriptive name of the tag (max 150 characters)
  • Color: Distinctive color chosen from a predefined palette

chatbot documents tagging

Available Colors

The system offers 8 predefined colors for tags:

  • 🔴 Red (#e53935)
  • 🟡 Amber (#ffca28)
  • 🟡 Yellow (#ffee58)
  • 🟢 Green (#66bb6a)
  • 🔵 Blue (#42a5f5) - default color
  • 🟣 Indigo (#5c6bc0)
  • 🟣 Purple (#ab47bc)
  • ⚪ Gray (#bdbdbd)

Tag Management

Accessing the Tag Manager

  1. Navigate to the Teach section of the wizard
  2. Go to the Uploaded Documents table
  3. Click the "Manage Tags" button NB: You must have at least 1 document uploaded to see the tags.

Creating a New Tag

  1. Enter the tag name
  2. Type the name in the "New Tag" field
  3. Maximum length: 150 characters
  4. The field cannot be empty
  5. Select the color
  6. Click on one of the 8 available colors
  7. The default color is blue
  8. A white checkmark indicates the selected color

Note: You can create a maximum of 8 tags per chatbot.

Modifying an Existing Tag

Changing the Name

  1. In the Tag Manager, click on the tag name field
  2. Edit the text
  3. Press Enter or click outside the field to save

Changing the Color

  1. In the Tag Manager, view the color grid under the tag name
  2. Click on the desired new color
  3. The change is immediate
  4. A white checkmark indicates the currently selected color

Note: If the name exceeds 150 characters, an error will be displayed and saving will be blocked.

Deleting a Tag

  1. In the Tag Manager, click the "Delete" button under the tag
  2. Confirm the deletion in the popup that appears
    • Click "Yes" to confirm
    • Click "No" to cancel

IMPORTANT - Deletion Limitations:

  • You cannot delete a tag if it is used in one or more nodes of the Flow Designer
  • The system shows a warning tooltip: "This tag is used in one or more nodes of the flow designer and cannot be deleted"
  • You must first remove the tag from the flows, then it can be deleted

Assigning Tags to Documents

Viewing Tags on a Document

In the "Uploaded Documents" table, each document shows:

  • The assigned tags as colored chips under the file name
  • The distinctive color of each tag
  • A status indicator on the left side of each tag
  • A "X" button to remove the tag (when available)

Adding Tags to a Document

  1. Open the assignment dialog
  2. In the document row, click the chip "+ Add Tag"
  3. Select existing tags
  4. In the "Select existing tags" section, click on the tags you want to assign
  5. Selected tags show a white checkmark in the corner
  6. You can select multiple tags at once

Create a new tag (optional)

  1. In the "Create new tag" section, enter the name
  2. Select the desired color
  3. Click "Create"
  4. The new tag is created and automatically selected

Confirm the assignment

  1. Click "OK" to confirm
  2. Click "Cancel" to cancel the changes

Notes:

  • You cannot assign tags that are already present on the document
  • The limit of 8 total tags per chatbot also applies here
  • When the limit is reached, the creation of new tags is disabled

Removing a Tag from a Document

  1. Click the "X" button on the tag chip
  2. Confirm the removal in the dialog that appears:
  3. Message: "Do you want to remove the tag [tag_name] from the document [file_name]?"
  4. Click "Yes" to confirm

Limitations

  1. Not all tags can be removed immediately
  2. The "X" button only appears on removable tags
  3. Tags in certain states may not show the removal button

Visual States of Tags on Documents

Each tag shows a colored status indicator on the left side:

StatusColorMeaningTooltip
UntrainedGrayThe tag is not in use"The tag is not in use. Train and publish the chatbot"
UnpublishedOrangeIn use only in testing"The tag is used only by the test chatbot. Publish the chatbot to use the tag online"
PublishedGreenIn use online and in testing"The tag is in use both in testing and online"
Scheduled for RemovalGrayScheduled deletion"Scheduled removal of tag from the document"

How to read the states:

  • Hover over the colored indicator to see the explanatory tooltip
  • The indicator is located on the inner left edge of the tag chip
  • The states reflect the training and deployment lifecycle of the bot

Using Tags in the Flow Designer

The Flow Designer offers two specific nodes for working with tags. These nodes allow for the creation of dynamic conversations that utilize filtered content from the knowledge base.

tagging documents on chatbot flows

Node: "Bot Replies with Filtered KB by Tag"

This node allows the chatbot to respond using only documents with specific tags.

How to Configure It

  1. Add the node to the flow
  2. In the Flow Designer, select this node from the list of available nodes

"All Files" Mode

  1. Activate the toggle "Entire Knowledge Base"
  2. The bot will use the entire knowledge base
  3. Ignores any previously set tag filters

"Filter by Tag" Mode

  1. Deactivate the "Entire Knowledge Base" toggle
  2. The "Filter by tag (optional)" selector is activated

Select tags

  1. Click on the selection field
  2. Choose one or more tags from the list
  3. Selected tags appear as colored chips in the field

"Select All" Option In the tags dropdown, the "Select All" option allows for quickly adding all available tags

Node Behavior

  • With selected tags: The bot responds using ONLY the documents that have at least one of the selected tags
  • Without selected tags (empty field): The behavior depends on the bot's configuration
  • "All files" active: Uses the entire knowledge base, ignoring any tag filters from the conversation

Example of Use

Scenario: A chatbot for a company with documents on "Products" and "Services"

1. User says: "Tell me about the products"
2. Node: Bot Replies with Filtered KB
   - Selected tags: [Products]
   - The bot responds using only documents tagged "Products"
3. User continues to ask questions
4. The filter remains active for the next responses

Search and Filters

Searching for Tags in Flows

The search system allows you to find tags used in flows:

Access the search bar

  1. In the Teach section, use the question search bar
  2. Field: "Search in the Knowledge base"

Search results

  1. Category: "Tags in flow nodes"
  2. Shows the flows that contain nodes with specific tags

Glossary

  • Tag: Colored label for categorizing documents
  • Knowledge Base (KB): Set of documents uploaded to the chatbot
  • Flow Designer: Visual editor for creating conversational flows
  • Node: Element of the flow designer that performs an action
  • Training: Process of the chatbot learning from documents
  • Deployment: Publishing the chatbot in production
  • Chip: UI element that visually represents a tag
  • Utterance: Variation of a question/phrase
  • QA: Question-Answer pair
  • Debounce: Delay before executing a repeated action

FAQ

Q: Can I create more than 8 tags?
A: No, the limit is 8 tags per chatbot, determined by OpenAI specifications.

Q: What happens if I delete a tag used in a flow?
A: The system blocks the deletion showing an error message. You must first remove the tag from the flows.

Q: Are tags visible to the end user?
A: No, tags are internal organizational tools. The user only sees the filtered responses from the chatbot.

Q: Can I add custom colors?
A: No, colors are limited to the predefined palette of 8 colors.

Q: How do I find which flows use a specific tag?
A: Use the search function in the Teach section, which will show the flows in the category "Tags in flow nodes".

Q: Do I need to retrain after modifying tags?
A: Yes, any modification to tags (creation, assignment, removal) requires new training and deployment to be effective on the production bot.

Q: Can I assign the same tag to multiple documents?
A: Yes, a tag can be assigned to any number of documents.

Q: What does "All files" mean in the BotRepliesWithKb node?
A: It means that the bot will use the entire knowledge base ignoring any tag filters from the conversation. It does not mean "use all tags".

Q: Is the removal of a tag from a document immediate?
A: The removal is recorded immediately but becomes effective on the chatbot only after new training and deployment.

Q: Can I rename a tag after creating it?
A: Yes, you can modify the name and color of a tag at any time from the Tag Manager.