Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
On this page

Show all

Adding Flows

Updated on 2025-01-23 GMT+08:00

Flows are classified into main flows and subflows. No obvious business logic division is available for main flows and subflows. A recommended scenario is as follows:

Only one main flow can be configured for a tenant space. If no flow is associated with the access code in Configuring a Robot, the customer is connected to the main flow directly.

Subflows can be used in other scenarios.

For details about the description and usage of each node in the flow, see Diagram Elements.

Procedure

  1. Choose Configuration Center > Chatbot Management > Flow Configuration.
  2. Choose Flow > Orchestration and click New.
  3. Set the flow template to Blank Flow. A blank template is used as an example to describe the usage of common diagram elements.

    NOTE:

    What are the benefits of using a flow template?

    The flow templates for inbound and outbound calls are preset, including complete recognition nodes, recognition parameters, and branch conditions for processing logic that fails to recognize an intention for three times. You only need to add the corresponding reply templates, variables, and branch condition values for the flows. You can use a template to quickly configure a robot in corresponding scenarios.

    In the Thai environment, the inbound call flow template and outbound call flow template cannot be selected.

  4. Set flow parameters.

    1. Click + in the Flow Variable area.
    2. In the dialog box that is displayed, set Variable Name and Data Type.

      This variable is used to store data in other diagram elements. According to the plan, you also need to add the following variables:

      • welcome: greeting. The value is a string. The default value is Welcome to the self-service appointment system.
      • answer: reply variable for the question asking for the appointed department or doctor or the new date. The value is a string. There is no default value.
      • room: variable for asking for the appointed department. The value is a string. The default value is Currently, the available departments are Internal Medicine and Surgery.
      • doctor: variable for asking for the appointed doctor. The value is a string. The default value is Dr. Liu and Dr. Li are on duty in the current department.
      • check: variable for asking whether to confirm the appointment information. The value is a string. The default value is Are you sure you want to confirm the preceding information?
      • docSlot: appointed doctor. The value is a string. There is no default value.
      • roomSlot: appointed department. The value is a string. There is no default value.
      • dateSlot: appointed date. The value is a string. There is no default value.
      • timeSlot: appointed time. The value is a string. There is no default value.
      • ask: customer reply, which is used for semantic recognition and intention matching. The value is a string. The default value is Appoint ${FLOW.docSlot}'s ${FLOW.roomSlot} at ${FLOW.timeSlot} on ${FLOW.dateSlot}.
      • default: default reply when no intention is matched. The value is a string. The default value is Excuse me, please say it again.
      • thanks: thank-you message. The value is a string. The default value is The appointment is successful. Thank you. Goodbye.
    3. Select an encryption type and click Confirm.
      NOTICE:

      For security purposes, set Encryption Type to Encrypted for storage and decrypted upon retrieval or Encrypted for storage and retrieval if the flow variable contains personal data, such as the customer ID card number.

  5. Drag the corresponding diagram elements to the canvas on the right and connect the diagram elements based on Figure 1 and Table 1.

    The following figure shows the flow after the configuration is complete. When configuring a flow, you can right-click the canvas to move the canvas on the page.

    NOTE:

    After condition judgment is performed on a diagram element, you need to add a branch without selecting a condition name, that is, the default branch. Ensure that the IVR flow can find the next node when other conditions are not met.

  6. Configure information for each node and connection in sequence. The configuration methods of diagram elements of the same type are similar. This section describes only one diagram element of each type. For other configurations, complete them based on Table 1.

    1. Configure a flow to ask whether to change the appointed date.

      Set Reply Way to TTS, and select the template configured in Adding Resource Templates for Reply Template.

      If Reply Mode is set to Interruption recognition, the customer can speak before the voice playback ends, which saves the service time.

    2. Configure the Semantic Recognition node.

      The configuration indicates that the diagram element has a branch based on the returned result. That is, the branch whose intention code is finish is matched successfully, and the values of the slot variables doctor, date, time, and room in the matched intention are assigned to the flow variables docSlot, dateSlot, timeSlot, and roomSlot.

      NOTICE:

      If an intention has multiple slots (for example, book time query node), you need to set Event to Clear Current Context Cache during semantic recognition setting. Besides, judgment control needs to be performed in the flow. For details, see How Do I Configure the Scenario Where Multiple Slots Are Filled Repeatedly?. In this example, for ease of understanding, the case of multiple rounds of slot filling is not considered.

    3. Click the connection line between the Semantic Recognition and Robot Reply diagram elements (the voice recognition matches the reply information configured in the intention response), and select the branch corresponding to the connection line as the branch configured in the previous step.

    4. Configure the Interface Invoking node.

      If the Business Interface Invocation diagram element is applied to the interface invocation scenario, you need to select an interface configured in Adding Business Interfaces. Set input parameters of the interface.

      In this scenario, real interfaces do not need to be invoked. The Business Interface Invocation diagram element is used to add cache variable names.

  7. After diagram elements are configured and connection lines and branches are correctly selected, click Save on the top of the canvas.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback