Contextual entities
Contextual entities are detected in the context of a specific expression.
Last updated
Contextual entities are detected in the context of a specific expression.
Last updated
Contextual are recognized inside of expressions. The NLP understands the entity by learning which type of word it is, where it's located in the sentence, and what the specific context around it is.
Contextual entities are the only type of entities that can (and should be) added to an expression itself, for example: I want to book a train ticket from @origin
to @destination
.
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.
There are 2 ways to add contextual entities to your bot:
From your list of expressions
From the Entities tab (see below)
To add a contextual entity:
From the Entities tab, click on Add contextual entity.
Give it a Name and a series of Entity values.
You can give Synonyms to those valuesif you want to.
When adding contextual entity variables, there's no need to add capitalised and non-capitalised words. All text is decapitalized by the NLP before any recognition happens.
You can toggle on the Fuzzy matching if you want to.