flow management

Updated at:

This document covers the basic concepts of flow management.

Basic concepts

  • flow: A conversational path designed on the flow canvas. The bot follows this path to interact with users.

  • node: Defines an action for the bot to perform. Actions include sending a bot response, collecting parameters, calling an API, evaluating a condition, or performing knowledge base Q&A.

  • edge: The condition that controls the transition between nodes in a flow. An edge can be triggered by a user's intent or a parameter-based condition.

Nodes

A node defines a bot action, such as sending a bot response, collecting parameters, calling an API, evaluating a condition, or performing knowledge base Q&A.

  • bot response: The bot sends information to the user in three ways: a fixed response, a response generated from a large language model (LLM) prompt, or a multi-task prompt response for complex scenarios.

For configuration details, see Bot Response Node.
  • call plugin: Fetches data by calling an API.

For configuration details, see Call Plugin Node.
  • parameter collection: Extracts parameters from user input or proactively prompts for missing information.

For configuration details, see Parameter Collection Node.
  • knowledge base Q&A: Answers user questions by querying a knowledge base of FAQs, documents, or spreadsheets.

For configuration details, see Knowledge Base Q&A Node.
  • condition: Directs the flow based on variable values, user intents, or plugin results.

For detailed steps, see Condition Node.
  • A/B test: A node that runs A/B tests within a flow. It reads a contextual parameter to route users to a specific experiment branch or a default control group. The flow defaults to the control group if the parameter is missing, does not match, or is set to the control group. This node supports creating and reusing experiment groups and customizing node and branch names, enabling you to run quick, lightweight experiments.

For detailed steps, see A/B Test Node.
  • flow redirection node: Redirects users to another published flow within the same business space. This node includes built-in validation and exception handling for all development and runtime phases.

For detailed steps, see Flow Redirection Node.
  • subflow node: Encapsulates reusable conversation fragments into an independent subflow. A subflow has its own lifecycle for design, debugging, and publishing. Once published, it can be referenced by multiple main flows, enabling "design once, reuse everywhere." A subflow can contain nodes such as a Bot Response Node, Call Plugin Node, Parameter Collection Node, Knowledge Base Q&A Node, Condition Node, A/B Test Node, and Return to Main Flow Node.

    • Return to Main Flow Node: The Parameter Collection, Call Plugin, Condition, and A/B Test Nodes can connect directly to a Return to Main Flow Node.

For detailed steps, see Subflow Node.

image

Edges

An edge defines the transition condition between nodes, which can be a user's intent or a parameter evaluation.

  • intent edge

image.png

  • parameter condition edge

image.png

APIs and parameters

  • API plugin: Allows a flow to interact with external business systems. The bot collects API input parameters from the user, calls the plugin, and then continues the conversation.

For configuration details, see API Plugin.

image.png

  • parameter: Structured information required by a flow. You can define parameters to collect this information from the user during a conversation.

For configuration details, see Parameter.

image.png

Create a flow

The conversational AI bot supports three methods for creating a flow: manual creation, AI-powered creation, and creation from template.

Manual creation

Click Create Manually and provide the following information in the dialog box:

  • Name: The name of the flow.

  • Description: A brief description of the flow.

  • proactive re-engagement: If enabled, the bot guides users back to an interrupted flow after handling a new query.

  • tag: Add classification tags to the flow for easier search and management.

After you enter the information, click Confirm to open the flow canvas and start arranging nodes.

image

AI-powered creation

AI-powered creation uses a large language model (LLM) to automatically generate a complete conversation flow from a natural language description or uploaded business documents.

Click AI-Powered Creation to open the canvas editor. In the dialog box on the right, describe your flow requirements or upload related business materials. After the AI parses the requirements, it generates a complete conversation flow. You can then preview, confirm, and edit the generated flow as needed.

Uploadable materials

Material type

Description

Format

Flow diagram / business SOP

Existing flow diagrams, swimlane diagrams, or business standard operating procedure (SOP) documents.

.png / .jpg / .md / .docx

Complete conversation script

Turn-by-turn customer and agent conversations, including branches and exception scenarios.

—

Business requirements

Scope, decision rules, timeouts, and constraints such as transfer to agent.

.md / .docx

Response guidelines

Standard phrasing for each step, used to write node response content.

—

API documentation

You can provide API documentation for automatic configuration. Review and verify the results on the API configuration page.

—

image

AI-powered creation results:

image

Creation from template

Creation from template allows you to quickly build a standardized flow based on built-in templates.

Click Creation from template. In the Create a flow from a template dialog box that appears, select an available template and click Confirm. Then, modify and refine the template based on your business requirements.

Built-in templates

Template name

Description

Repair and install devices

An after-sales service ticket scenario that demonstrates custom and prompt-based parameter recognition.

Send a package

An order booking scenario that demonstrates custom and prompt-based parameter recognition.

Link WeChat account

A multi-turn task that involves calling an API in a loop.

Install and repair charging stations

Based on document-based Q&A.

image