This guide explains how to use agent building and visual flow skill orchestration in Tongyi Xiaomi Conversational Agent.
1. Activate the product
- Path: Alibaba Cloud Bailian - Application Square - Customer Service Conversational Agent.
- Go to the console of the Customer Service Conversational Agent application and click Enable for Free in the upper-right corner.
- On the activation page of the Customer Service Conversational Agent, activate the service. After activation, you are billed based on your actual call volume, that is, bills are generated daily and deducted from your Alibaba Cloud account balance.
2.Agent building
2.1 Create an application
Click Create Application, enter an application name and description, and a basic agent is created.
- Application Name: Enter a name for the agent based on your business requirements;
- Application Description: Add a description for the agent based on your business use case.

2.2 Configuration
1. Persona
- Definition: In the bot space, each bot can have a persona. You can debug the bot through prompts, and define the bot's role, workflow, skills, constraints, and other requirements in the persona.
- Select Template: In the Select Template window, you can insert a general template and enter the corresponding persona constraints as required by the template.
- Optimize: After you finish editing the persona, you can click Optimize, and the model will optimize the persona content based on your input.
2. Bot greeting
- Definition: The opening message the bot sends when you open the bot conversation window.
3. Knowledge base (flow skills and FAQ)
- Definition: You can bind the flow skills and FAQ corresponding to the current agent. For detailed steps on configuring flow skills, see 3. Visual flow skill orchestration. For steps on configuring FAQ, see 4. Configure FAQ.
4. More settings
- Model: The built-in Lingque conversational large model is used. You can change the temperature and the number of context turns to adjust the model.
- General knowledge:
-
Response Language: The language in which the bot replies.
- Same as user's language: The bot replies in the same language as your query;
- Chinese only: The bot always replies in Chinese, regardless of the language you use;
- English only: The bot always replies in English, regardless of the language you use.
-
Security:
- Security Interception: When the system detects that the input or output content involves "answer sensitive words", it automatically replies with the "sensitive word response";
- Preset security response: When a user's question contains "user sensitive words" or the model's generated reply contains sensitive content, the bot automatically replies with the preset sensitive response. The default preset security response is: "I cannot answer this question. Please try asking something else."
- Model generation failure: The fallback response the bot sends when a system error occurs or the service times out.
2.3 Call volume
On the call volume page, you can view the token consumption.
2.4 API
The debugging information of the conversational agent is synced to the API. You can copy the code to make calls.
3.Visual flow skill orchestration
3.1 Create a flow
-
Click Knowledge Base Management > Flow or + Bind Flow to open the flow list window.

-
Click New Flow to open the flow creation window.

-
Fill in the flow Name and Description as required, then click Confirm to create a blank flow.


-
Find the new flow and click Edit to enter the flow orchestration page.

-
Create a starting branch to enter the flow canvas. After the start node, add a "Branch" and set the conditions that trigger the subsequent branches after the flow is entered. For detailed steps, watch the video below:

- Select and arrange nodes based on the conversation logic to build the dialogue flow.
3.2 Flow debugging
- Configure the environment before debugging.
- Service Simulation: API plugins in the flow directly return mock values. This is suitable for cases where the API is not yet ready.
- Passthrough Parameters: External parameters passed to the bot along with the user's question. For example, when a phone call is connected, you can pass the caller's number to the bot as a passthrough parameter, which can then be used in subsequent API plugin calls.

-
Conversation debugging
Have a conversation directly. After the bot replies, you can click Generation Complete to view the bot's output. For parameter collection, you can view the specific parameters collected by the bot.

4. Configure FAQ
4.1 Create FAQ knowledge
-
Click Knowledge Base Management > FAQ or + Bind FAQ to open the FAQ list window.


-
Click Create FAQ Base to open the creation window and enter a name for the FAQ base.

-
Find the new FAQ base and click Edit to enter the page for adding FAQ knowledge.


-
Click Add FAQ or Import FAQ to add the corresponding frequently asked questions to the FAQ base. Fill in the Question, Answer Type, Answer, Effective Time, and Similar Questions as required, then click Submit.
After successfully adding an entry:

4.2 Bind the FAQ knowledge base and test the results
- Click Bind to bind the corresponding knowledge base to the bot.


- Test the results in the conversation test window on the left, as shown below:

