Match entities
Match entities are a type of entity that is detected when the user states a word that is part of a predefined list, or matches a certain pattern.
Last updated
Match entities are a type of entity that is detected when the user states a word that is part of a predefined list, or matches a certain pattern.
Last updated
A match entity can be detected anywhere in the conversation, meaning it is context-independent.
Entities can always be asked inside a Collect input block, but match entities can be detected anywhere in the conversation, which means they will skip the Collect input block in your flow. This would result in a conversation like this one:
Because you predefined the package number as a match entity, the bot was able to pick up on it in the user's expression, therefore skipping the Collect input block asking for it. The result is a much better user experience and a seemingly smarter bot 😉
Match entities have 2 options:
Note that match entities are context-independent, meaning that they can be detected at any place in the conversation. Therefore, they are very different from contextual entities which are context-dependent and can be detected only at certain places inside the conversation.
A match text entity will be detected when what the user says matches a value in a pre-defined list.
To add a Match text entity:
From the Entities tab, click on the Add match entity button.
Select Match text.
Enter an Entity name.
Enter different Entity values.
If you want to, add Synonyms to these values by typing them in the field then clicking Enter
on your keyboard.
Click on Create entity.
When a user says "I want to know more about the Premium pack", the match entity @product will be recognized and saved with the value "Premium".
A match pattern entity will be detected when what the user says matches a certain regular pattern.
To add a match pattern entity:
From the Entities tab, click on the Add match entity button.
Select Match pattern.
Add an Entity name.
Add a regular expression under Pattern.