Annotations - Cognigy Documentation

Annotations

Annotations enable you to tag specific words within example sentences as placeholders. These placeholders, linked to Slots, allow the NLU model to identify and extract key details from user inputs. For example, in the sentence I want a shirt, you could annotate shirt as a placeholder tied to a product Slot, helping the NLU recognize similar items, such as pants or hats.

Key Benefits

How to Use

To use Annotations, follow these steps:

  1. In the Flow editor, go to NLU > Intents and select the desired Intent.
  2. Highlight a word in an example sentence within the text field and click +. A row with two lists will appear.
  3. Select Slot Type and key from the lists.

Multiple annotations can be added to a single sentence, each underlined in a unique color.

Exact Matching

If two sentences are nearly identical but differ only in Keyphrases that share the same Slot, the NLU model detects them as highly similar. In such cases, it automatically assigns a score of 0.95 to indicate a strong match.

Example

Example Sentence: I want a burger

User Input: I want a pizza

Result: If pizza and burger are both tagged with the same product Slot in the Lexicon, the match score will be 0.95.

Recommendations

More Information

Last modified on June 15, 2026