Flow management
In flow management, you can describe a business process, allowing a bot to answer questions based on that workflow.
Key concepts
Flow: A conversational process designed on a visual canvas. The bot follows the flow to interact with users.
Node: A component that defines an action for the bot to perform. A node can be used to send a reply, collect information, call an API, or make decisions.
Branch: A condition that controls the transition between nodes within a flow. A branch can be triggered by a user's intent or a parameter value.
API plugin: A tool that lets a flow interact with external business systems. The bot can collect input parameters from the user during a conversation and then automatically call the API plugin.
Parameter: A piece of structured information used within a flow. You can define parameters to collect and store data.
Access the feature
Log on to the Intelligent Outbound Robot Console, select Large Model Scenario Management, and then navigate to the flow management page.
Flow modes
Flows can be created in simple mode or advanced mode. By default, new flows are created in simple mode.

Simple mode: Apart from the opening message module, this mode uses only one type of node: the business step node. Configuration relies primarily on prompts.

Advanced mode: This mode provides multiple node types for more precise configuration and requires a higher level of technical expertise.

Node configuration
On the flow canvas, you can design a business process that the bot follows to interact with users.
Business step
This node references the flow description from the text input mode and combines the capabilities of multiple nodes, including conditional logic, variable collection, and bot replies.
On the flow editing page, select the business step node. You can then enter the objective of the customer interaction and the process details in prompt format. You can also configure actions such as hang-up, number collection, or transfer to agent within the flow.
You can view the node overview and a flow overview.


Scene reply node
Node Name
Enter a custom node name, up to 20 characters in length.
Reply Method
NoteIn the reply text, you can enter "/" to reference a parameter, API input/output parameters, variables, or system parameters.
Note: To reference a parameter, you must add a parameter collection node before this node. To reference API input/output parameters, you must add and configure a call API plugin node. To reference a variable, you must configure it in the Global Configuration settings.

A scene reply node defines how the bot responds to a user. It supports two reply methods:
Use fixed text to reply: The bot replies with a predefined script.
Generate replies based on a prompt: Define a conversational prompt for the node to interact with the user. You can click Select Template to use a built-in system template.
Note:
Recommendations for reply node prompts:
Write prompts from the bot's perspective, defining its actions.
Keep the actions for a single node simple, direct, and focused.
Refer to the following template examples for the appropriate level of detail:
Template
Description
Prompt example
Dialogue example
Direct Reply
Provide a sample reply. The bot uses the sample and conversation context to formulate a response.
Reply with "Are you a family member or a friend of the insured party?"

Reply Command
Provide a command, and the bot follows the command to interact with the user.
Ask the user to clarify their relationship with the insured party, whether they are family or a friend.
Ask and verify the customer's reply
Proactively ask the user a question and then validate their response.
Reply with: "When did the incident occur?"
After the user provides the time of the incident, check if the provided time is more than ten days before the system parameter: CURRENT_DATE.

Formulate document reply
In the reply, emphasize that the response should be based on a specific document.
Provide a complete response to the user by referencing the contents of the document titled "Collective Land Ownership Registration Transfer."
Action
In the Action section, you can set system instructions, including a hang-up instruction, number collection instruction, and transfer to agent instruction. The number collection and transfer to agent instructions can be configured in Global Configuration.
Hang-up instruction: The bot hangs up after delivering its response.
Number collection instruction: The bot collects the number after delivering its response.
Transfer to agent instruction: The bot transfers the call to an agent after delivering its response.
Parameter collection node
A parameter collection node defines the key information the bot needs to collect. This information is stored in a parameter value. Once a parameter is collected, it can be used for conditional logic or referenced in replies later in the flow.

You can configure a parameter as required or optional:
If set to Required, the bot prompts the user for the information if it is missing from the conversation.
If set to Optional, the bot collects the parameter only if the user mentions it.
Important
The bot's ability to collect parameters depends on how well they are defined. Clear definitions help the bot understand the user's input and format the output according to your business requirements.
Call API plugin node
When the bot reaches a call API plugin node, it executes the API call:
If a required API input parameter is missing, the bot prompts the user for it. The conversational effect is the same as with a parameter collection node.
Once all required input parameters are collected, the bot automatically calls the API plugin, parses the result, and continues the conversation based on the subsequent branch configuration.
API plugin parameter assignment (Optional): You can assign fixed values to certain parameters of the API plugin.

Note
For information about how to configure an API plugin, see API plugin.
Conditional node
This node is used for conditional branching based on parameter values. It supports conditions based on collected parameters, variables, API plugin parameters, and system parameters (such as current date and time). You can define multiple conditional branches.
Note
The conditions must cover all possible scenarios.

Branch configuration
Flows include two types of branches:
User utterance branch: Triggered by the user's intent expressed during the conversation.
Logical condition branch: Used after a call API plugin node, parameter collection node, or conditional node. It defines logical combinations of parameter values, and the bot proceeds down the branch that matches the conditions.
User utterance
Types of user utterances
The default branch is used after the call connects. This branch defines the opening message node that initiates the flow.
After a reply node, a user utterance determines the next conversational step based on the user's response.
Intent edge configuration
When configuring a user utterance, you can specify an intent name as the entry condition. We recommend using a short phrase that clearly expresses the meaning, such as:
User requests a refund
Issue an invoice
User confirms account receipt
For business-related utterances where the trigger condition may be broader than the intent name implies, you need to add user utterances. Follow these requirements when configuring utterances:
Diversity: Ensure that utterances are different from one another and provide new information.
Representativeness: Avoid overly specific cases. Each utterance should represent a category of questions and be reasonably concise.
Differentiation: The utterance should differ from the intent name. If it is identical, the intent name alone is sufficient.
Note
Do not use filler words or phrases without meaningful content in sample utterances.
You can configure up to 50 utterances. In most cases, 20 are sufficient. For general intents, you may not need to add any utterances.
The following figure shows sample user utterances for "Issue an invoice":
Parameter configuration
Log on to the Intelligent Outbound Robot Console. After selecting an instance, go to Large Model Scenario Management > flow management, and select parameters to open the parameter management page.

Click Create Parameter to open the Create Parameter dialog box, and then fill in the fields.
Name: We recommend following standard code naming conventions, such as using underscores between words (snake_case) or camel case (for example, plate_no or plateNo). Note that when using a parameter (slot) alone, the parameter name can be in Chinese, but English variable names are recommended for optimal performance.
Description: Include a Chinese alias, a format and content description, and a standard example.
ImportantTo reference a parameter, you must configure a parameter collection node before the current node. This parameter can then be used as a condition for a logical branch or referenced in the bot's reply. When configuring a reply, you can type "/" to open a dropdown list of parameters to select and reference.
Features
Create a flow
When you click the Create Flow button, you can choose from two creation methods:
Create a blank flow
When creating a blank flow, fill in the Name, Type, and Description fields.
NoteThere are two types of flows.
Main flow: Automatically triggered when a call is connected.
Subflow: Triggered based on the user's intent during the conversation.
Each scenario supports one main flow and multiple subflows. Flows can be bound to multiple scenarios.

Create from a template
You can create a flow using a built-in system template. Note that flows created from a template are always subflows.

After creation, you can view the flow's information in the list.

Edit a flow
Click the Edit button for a flow to enter the editing interface.

Click the "+" icon after a node to select a subsequent node. In this example, we select a call API plugin node for demonstration.

Click the user utterance to edit the intent edge for the branch: enter "Query phone number location" and select the "Call Plugin" node to configure the corresponding API.

After the API node, configure a bot reply node to output the results of the API call.

To delete a node or an intent edge, hover over the element on the conversation flow canvas and click the Delete icon that appears. Alternatively, you can click the intent or edge and then press the Delete key on your keyboard.

Test a flow
After configuring the flow, click the Test button to test it.
If the following prompt appears, the flow is not bound to a scenario. You must bind it by clicking the Bind button.

After binding is complete, you can click the Test button again to open the test dialog box. As shown in the figure, the test was successful.
In flow mode, the test window previously showed only basic information like the session ID, which made it difficult to trace conversations and locate issues. The expanded debugging information now includes the triggered flow name, node name, matched FAQ, and API plugin name.

After you configure the flow, click Test. The bot will automatically check the integrity of the flow. If errors are found, follow the prompts to optimize the flow. For more details, see the following video:

Export a flow
To export a flow, click the Export Flow button in flow management. You can then go to the task center to view and download it.
The exported flow is a ZIP file. Import the ZIP file directly without unzipping it to prevent import failure.
Import a flow
To import a flow, click the Import Flow button in flow management, select the corresponding ZIP file, and then go to the task center to check the import status.
Version history
In the flow list, click the History button to view historical version numbers and release times. You can also export or roll back to a historical version.



















