What are System Entities

Image of an author
Sylwia Kocur
6 min read
updated: Oct 17, 2024

System entities can help your chatbot validate information provided by the visitor, such as email addresses or phone numbers. You can save the collected data as attributes and pass them to your external systems or use them in the further parts of your chatbot flow.

See our video tutorial on how to use attributes and entities in your bot flow. See this video tutorial to learn how to manage them effectively!
See our video tutorial on how to use attributes and entities in your bot flow. See this video tutorial to learn how to manage them effectively!

You can choose from eleven available System Entities. To access entities, type two curly brackets or use the attributes symbol in the text field.

You can create user entities to match your needs. For example, you can create an entity with all the names of your products. This way, the bot will accept a query only when the product’s name matches your offer.
You can create user entities to match your needs. For example, you can create an entity with all the names of your products. This way, the bot will accept a query only when the product’s name matches your offer.

The list of system entitiesLink icon

Below is the list of available System Entities you can use in ChatBot. System entities are created automatically and let you validate the user-provided data.

Name

Description

Example query

Returned data

Any

Matches anything non-empty

AP534GD12 is my order number

AP534GD12 is my order number

Alphanumeric

Matches anything until the first space or a special character

AP534GD12 is my order number

AP534GD12

Email

Matches the correct email addresses

support@chatbot.com

support@chatbot.com

Integer

Matches integer numbers

12

12

No

Matches no and synonyms

nope, no way...

no

Number

Matches ordinal and cardinal numbers

Twelve hundred

1200

Phone number

Matches phone number

650-283-4757

650-283-4757

URL

Matches a valid URL

chatbot.com

chatbot.com

Yes

Matches yes and synonyms

yeah, sure...

yes

Yes-No

Matches yes, no and synonyms

no way, sure...

yes,no

Data gathered through attributes and validated by entities can be reused during the chat or sent to external services so you can reuse it for other purposes.
Data gathered through attributes and validated by entities can be reused during the chat or sent to external services so you can reuse it for other purposes.

Any entityLink icon

The Any entity recognizes the entire content of a message as correct. You can use this entity to validate and save all messages sent in full length while collecting the details.

If you used an attribute with this validation in a user input block, the bot might loop to the location where you have it. 

We recommend using the Backtracking action after the User input block where the attribute is for such cases. 

You can alternatively use the Question action to ask and collect an answer in a single step.

If you used an attribute with this validation in a user input block, the bot might loop to the location where you have it. 

We recommend using the Backtracking action after the User input block where the attribute is for such cases. 

You can alternatively use the Question action to ask and collect an answer in a single step.

Examples:

  • Want to know more about ChatBot -> Want to know more about ChatBot 

  • I would like to book a demo -> I would like to book a demo

When the bot is integrated with any integration that enables asynchronous communication (e.g., Facebook, Slack, WhatsApp, Telegram), you should start the bot flow with a User Input block where you have an attribute with the Any validation. 

This will ensure the chat starts correctly and does not go to the Fallback branch.

When the bot is integrated with any integration that enables asynchronous communication (e.g., Facebook, Slack, WhatsApp, Telegram), you should start the bot flow with a User Input block where you have an attribute with the Any validation. 

This will ensure the chat starts correctly and does not go to the Fallback branch.

Alphanumeric entityLink icon

The Alphanumeric entity saves letters and numbers to an attribute until the first space or a special character. You should use this entity only when you are sure the user will provide the crucial part of the message in the first string. 

Examples: 

  • Want to know more about ChatBot -> Want 

  • E13B44DE -> E13B44DE

  • ABC_DEF -> ABC

Email entityLink icon

The Email entity must contain @ and end with .xyz (e.g., abc@def.xyz). When the user enters their email, the chatbot compares it with the email entity and checks whether it has the correct format. 

If the format of an email entered by the user is correct, the chatbot can save it as an attribute. If the format of an email is wrong, the chatbot can ask the user to correct it.

 We recommend using the Email default attribute with the Email entity.
 We recommend using the Email default attribute with the Email entity.

Integer entityLink icon

The integer entity must contain integer numbers (e.g., 1, 7, 97, 3073). When the user enters some numbers in a chat, the chatbot compares it with the integer number entity and checks which number is the integer number. This entity lets you automatically validate numbers.

Number entityLink icon

The number entity can help you gather data, such as the amount of money, height, weight, latitude, longitude, user ID, etc. The system analyzes the user input from left to right. It then automatically exchanges numerals for numbers if needed. 

Examples: 

  • four hundred thirty-five million two hundred forty thousand = 435240000

  • 1,10 = 10.1

  • 3000K = 3000000

Phone number entityLink icon

The Phone number entity helps your bot recognize phone numbers written in all popular standards — with country code, dashes, and brackets. The system checks if the input written by a user on chat resembles the phone number.

To use this entity and save the user’s phone number, you’d need to create a custom attribute.
To use this entity and save the user’s phone number, you’d need to create a custom attribute.

URL entityLink icon

The system URL entity validates links shared by the users during the chat.

Yes and No entitiesLink icon

The system Yes and No entities help your chatbot recognize the correct answer. We’ve gathered many ways to confirm or deny information. You can use this entity without predicting how your users might express yes or no.

How to add system entities to the bot flowLink icon

Entities are used for users’ query validation. You can use them in various places, depending on your needs:

  • Add a User Input block to collect the user’s query. Type two curly brackets {{ to open the attribute window or use the attributes icon. Choose the entity in the Parameter validation and set the attribute’s name. Use an entity that best matches your use case’s needs.
    Add a Bot Response block, choose the correct response, and use curly brackets to add the attribute.
    The user’s response from the User Input block will be displayed when the bot sends the message.

  • Use the Question action to validate the response and save it as an attribute in the same step.

Test the bot using the Testing Tool and see whether it works as intended.
Test the bot using the Testing Tool and see whether it works as intended.

Read more:

Was this article helpful?

Got it!

Thanks for your feedback.

Thank you!

We’re happy to help.

Start a free ChatBot trial
and build your first chatbot today!

Free 14-day trial No credit card required

Discover our text| products