System entities
System entities are Chatlayer's built-in predefined entities that match a certain general pattern that is widely used.
Last updated
System entities are Chatlayer's built-in predefined entities that match a certain general pattern that is widely used.
Last updated
You can think of system entities as match entities that are pre-made just because they fit regular, typical patterns that would be widely used inside bot conversations.
Chatlayer.ai supports the following system entities:
Variable name | Example input by user | Example result in session | |
| Validates if the user input has an email format | "ilovebots@chatlayer.ai" |
|
| Accepts numbers with more than 6 and fewer than 17 numbers in them | "+32 487 23 02 03" |
|
| "5th" |
| |
| "5 euro" |
| |
| "5 kilometers" |
| |
| Recognizes any number. | "eighty eight" |
|
| "3 liters" |
| |
| "80C" |
| |
| "3 pm tomorrow" |
| |
| Checks if the given input is a URL. Accepted formats can be with www (www.chatlayer.ai) or without (chatlayer.ai). Just the domain 'chatlayer' will not be accepted. |
| |
| "3 hours" |
|
You should never overwrite System Entities yourself – they are automatically overwritten by the last detected variable (if any values are detected). So instead, save the System Entity to a variable of your own choosing outside the sys
or internal
namespaces.
To use system entities in your bot:
Create a Collect input block. For instance, make it as a block that asks for the user email.
Under Capture use response as, scroll down until you find the list of System entities.
Select the system entity of your choice. For this example, we would select @sys.email
.
Under Save variable as, choose a variable to store the entity value.
Click Save.