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
Was this helpful?
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
Was this helpful?
A match entity can be detected anywhere in the conversation, meaning it is context-independent.
Entities can always be asked inside a 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:
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:
Select Match text.
Enter an Entity name.
Enter different Entity values.
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:
Select Match pattern.
Add an Entity name.
Add a regular expression under Pattern.
to match a
to match a
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 which are context-dependent and can be detected only at certain places inside the conversation.
From the tab, click on the Add match entity button.
If you want to, add to these values by typing them in the field then clicking Enter
on your keyboard.
From the tab, click on the Add match entity button.
The pattern that you fill in match pattern entities should be written as a regular expression (RegEx) Python style. For more information check .