Intent Management
This topic describes how to manage intents, including creating, editing, and publishing them.
Function Overview
Concept: An intent represents different expressions of the same type of content. For example, user statements such as “You’re awesome,” “That’s impressive,” “You’re so professional,” and “Your tone is too gentle” can all be grouped under the intent “User Praise.”
Purpose: Create an intent to configure possible user inputs. For instance, set up a “Check Weather” intent with its corresponding response. When a user enters a weather-related query, the system triggers the “Check Weather” intent and returns the configured reply.
Access the Feature
Log on to the Cloud Contact Center console. In the navigation pane on the left, choose Instance Management - V2 and click the endpoint of a specific instance to open its console.

Click the menu button in the upper-right corner and select Digital Employee to enter the Digital Employee Business Console. In the navigation pane on the left, choose AI Platform > Multi-turn Conversation (Dialog Studio) > Intent Management.

Create an Intent
Add a Single Intent
On the Intent Management page, click Add Intent to create a single intent.
Enter the required intent information based on your business needs and click Create to complete the process.
Intent Name: The name of the intent.
Intent Code: A unique identifier for the intent. You cannot change it after creation.

Import Multiple Intents
On the Intent Management page, click Batch Operations and select Import Intents. On the batch import page, upload an Excel file that follows the template format to complete the bulk import.


Edit an Intent
Editing an intent includes configuring its Name, Alias, and Phrasings. Click Edit in the Actions column of the target intent to open the editing interface.


Edit Intent Name and Alias
Intent Name: The name of the intent. You can edit it after creation based on your business needs.
Intent Alias: A user-friendly description of the intent. When the bot detects two similar intents, it uses the alias to clarify with the user. Example clarification: “Do you want to apply for a housing provident fund loan or use your provident fund to pay your mortgage?”
Intent Phrasings
Intent phrasings include two types: User Phrasings and Phrasing Templates. Add user phrasings and templates to the intent. Press Enter after typing to quickly add a phrasing.
User Phrasings
These are various ways users might express the same intent. Include diverse phrasings to improve coverage.
Similar expressions, such as: “I want to buy a train ticket,” “Buy a train ticket,” “Buy one train ticket.”
Different expressions, such as: “I want to buy a train ticket,” “I want to travel by train,” “Take a train to [city] for fun.”
We recommend adding at least five user phrasings per intent.
Phrasing Templates (LGF)
Basic Elements
Phrasing templates (LGF) use pattern matching to represent user inputs. They support the following elements:
Element | Description | Example |
${} | Reference to an entity parameter |
Note
|
[] | Optional element |
|
() | Required element |
|
| | OR operator |
|
.{min,max} | Specified number of characters |
|
All symbols used in these elements must be English punctuation marks.
Configuration Practices
Simplest LGF
The simplest LGF is plain text. For example, “Today’s Beijing weather” matches only one exact input—“Today’s Beijing weather”—when strict matching is enabled.
Optional Parts
Using "[]" indicates that a portion of the text is optional. For example, in the LGF expression below, the "de" (translated as "'s") can match two inputs: "today Beijing weather" and "today Beijing's weather". By placing optional markers in different positions, you can double the sentence's expressive power (×2). For instance, the expression "today Beijing ['s] weather [forecast]" matches four inputs: "today Beijing weather", "today Beijing 's weather forecast", "today 's Beijing weather", and "today Beijing weather forecast."
Logical OR
Use “|” to express alternatives. For example, “(today|tomorrow|day after tomorrow) Beijing[’s] weather[forecast]” expands matching to 12 variations (multiplied by the number of options). To avoid ambiguity, always group alternatives with “()”. If an alternative is also optional, “[]” provides natural grouping, as in: “(today|tomorrow|day after tomorrow) Beijing[’s] weather[forecast|status|condition].”
Parameter Expression
The previous examples use static text. However, in Dialog Studio, you often need to fill parameters. For weather queries, you typically require “time” and “location.” Use “${}” to reference parameters by name (not source term). For example, “${date}${city}[’s] weather[forecast|status|condition]” matches many inputs such as “Tomorrow Hangzhou’s weather status,” “2nd Guangzhou weather,” and “Three days from now Shenzhen weather condition.”
Wildcard Generalization
Optional parts and logical OR enhance expression power, but sometimes you need broader generalization. For example, to cover varied prefixes and suffixes like “[Could you|Check|Tell me] ${date}${city}[’s] weather[forecast|status|condition][how|what’s it like|is it good],” LGF supports wildcards written as “.{min,max}.” Example: “.{0,3}${date}${city}[’s] weather[forecast|status|condition].{0,3}.” Here, “.{0,3}” matches 0 to 3 arbitrary UTF characters (each Chinese character counts as one). This handles flexible prefixes and suffixes. However, excessive wildcard use can cause false matches. Limit wildcard ranges to 10 characters or fewer.
Common Errors
Error type | Incorrect configuration | Error description | Correct configuration |
Syntax error | I want to listen to Andy Lau[’s songs | Only “[” is present, with no matching “]”. | I want to listen to Andy Lau[’s songs]. |
I want to listen to <singer>’s songs | Reference parameters must use ${parameter name}. | I want to listen to ${singer}’s songs. | |
Referenced parameter is not defined | I want to listen to ${singer}’s songs | The “singer” parameter is not defined in the intent basic configuration. | Define the parameter in the intent basic information configuration. |
Template contains only optional parts | [${singer}][’s songs] | The entire template consists of optional parts. This means the template matches even when the user enters nothing, which is not a valid template configuration. | I want to listen to [${singer}][’s songs] The template includes a required part such as “I want to listen to”. |
Publish, Export, and Delete Intents
On the Intent Management page, click the More icon in the Actions column of a target intent to publish, export, or delete it.

Publish: Deploy the intent configuration to the production environment. (When you publish a conversation bot, intents are published automatically. Use this option only when you modify phrasing configurations separately.)
Export: Export a single intent, multiple intents, or all intents. The exported file includes basic intent information and phrasing configurations. Do not edit basic information in the exported file. You can add phrasings in the file before reimporting.
Delete: Remove the intent.
System Intent Intervention
If a system intent fails to meet recognition requirements, you can improve its performance using the following intervention methods:
Add user phrasings: New phrasings improve system intent recognition.
Add phrasing templates (LGF): Configure templates for system intents using the same rules as regular intents.

