Entity Management
This topic describes how to manage entities, including creating, configuring, publishing, importing, and searching them.
Function Overview
Concept: An entity is a set of words that share the same type, such as cities, dates, or colors.
Purpose: When you apply different properties to the same intent, new intents are generated. For example, adding an "address" property to the "check weather" intent creates intents like "check Hangzhou weather," "check Beijing weather," and "check Jiangxi weather." Each of these intents requires a different response. Using an entity, you can generalize these into a single intent: "check weather for a given address." Here, "address" is an entity. Configuring responses by referencing entity information greatly improves efficiency in listing intents and their corresponding replies.
Access the Feature
Log on to the Cloud Contact Center console. In the navigation pane on the left, choose Instance Management - V2, then click the endpoint of a specific instance to open its console.

Click the menu button in the upper-right corner of the page and select Digital Employee to open the Digital Employee business console. In the navigation pane on the left, choose AI Platform > Multi-Turn Conversation (Dialog Studio) > Entity Management.

Create an Entity
Create a Standard Entity
In daily life and business scenarios, many different words can represent the same meaning. For example, "Beijing," "Capital City," and "China's capital" all refer to the same city. You can group such terms under a single fixed entity through configuration.
After entering the Entity Management interface, click Create Standard Entity. Fill in the required information based on your business needs, then click Create to complete the creation.
Entity Name: The name of the entity. Enter it as needed.
Entity Code: A unique identifier for the entity. You cannot change it after creation.

After the entity is created, you are automatically taken to the entity configuration interface. Configure the entity content as needed, then click Save to finish creating the entity.

Create a Regular Expression Entity
A regular expression is a pattern used for matching and replacing text. It consists of ordinary characters (such as letters a–z) and special characters (metacharacters). A regular expression describes one or more strings to match when searching text. It acts as a template that matches a character pattern against a target string. You can add up to five expressions to each regular expression entity.
After entering the Entity Management interface, click Create Regular Expression Entity. Fill in the required information based on your business needs, then click Create to complete the creation.

After the entity is created, you are automatically taken to the entity configuration interface. Configure the entity content as needed, then click Save to finish creating the entity.
NoteAfter writing a regular expression, test it in the Test Expression window to verify its correctness.

View System Entities
To help you start using multi-turn conversation quickly, the system provides many predefined entities for immediate use. The following table lists system entities along with their descriptions and examples:

Entity Name | Entity Description | Entity Examples |
@sys.number | System - Number | one hundred twenty-five, 100, zero point three, 1.8 |
@sys.phone-number | System - Phone Number | 176******** |
@sys.age | System - Age | 15 years old, 30 years old, fifty years old |
@sys.ordinal | System - Ordinal | first |
@sys.number-fraction | System Score | one third, 1/3 |
@sys.percentage | System - Percentage | 20 percent, 20% |
@sys.money | System - Amount | 200 CNY |
@sys.temperature | System - Temperature | 20 degrees, 90 degrees Celsius, 20.5 degrees Fahrenheit |
@sys.number-range | System - Number Range | one to five, greater than 10 |
@sys.plate-number | System - License Plate Number | Zhe A12345 |
@sys.date | System - Date | tomorrow, next Monday, March 20, June next year, National Day, 2017-10-5 |
@sys.time | System - Time | nine a.m., twelve thirty p.m., six fifteen p.m. |
@sys.date-time | System - Date and Time | twelve thirty p.m. tomorrow, eight fifteen a.m. next Wednesday |
@sys.duration | System - Duration | one hour, 15 minutes, one hour and five minutes |
@sys.timeset | System - Recurring Time | every Monday, every weekday |
@sys.address | System - Address | No. 882 Julu Road, Jing’an District, Shanghai, China |
@sys.geo-country | System - Country | China, Singapore |
@sys.geo-province | System - Province | Zhejiang, Hebei |
@sys.geo-city | System - City | Beijing, Hangzhou, Shanghai |
@sys.geo-district | System - District | Chaoyang District |
@sys.name | System - Person Name | Lu Xun |
@sys.surname | System - Common Surnames | Zhang |
Entity Management
Besides creating entities, the system also supports importing, exporting, searching, publishing, and deleting entities. Perform these operations directly in the Entity Management interface. The following list explains each operation:
Entity Configuration: Configure entity details. For standard entities, define members and their synonyms. For regular expression entities, define regular expressions.
Publish: Deploy the entity configuration to the production environment. (When you publish a dialog bot, entities are published automatically. Use this feature only when you modify an entity independently.)
Export: Export a single entity, multiple entities in batch, or all entities. The export file includes basic entity information (name and type) and entity configuration. Do not edit basic information in the export file. You can add to the entity configuration in the file. After import, the system merges the new configuration with the existing one.
Import: Import entities. This adds new members, synonyms, or regular expressions to existing entities.
Search: Find entities in your bot by entity name.

