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

Help Center/ Cognitive Engagement Center/ User Guide/ Tenant Administrator Guide/ Robot Management and Configuration Guide/ Configuring an Intelligent Robot/ FAQs/ How Do I Transfer the Disconnection Reason Code to the Specified Business Interface?

How Do I Transfer the Disconnection Reason Code to the Specified Business Interface?

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

When a call is disconnected, a specified interface may be required to report the disconnection reason code. To implement this function, you need to define the specified interface on the Business Interface page, create an exception flow, and record the disconnection reason code in the flow using a global variable.

Clarify the types of call disconnection reasons. From the perspective of participants, the reasons can be classified into the following types:

  • 1. A customer hangs up the call. Assume that the reason code is 2.
  • 2. The call is disconnected when the flow ends normally. Assume that the reason code is 0.
  • 3. The call is disconnected when the flow ends abnormally. Assume that the reason code is 1.

This section describes how to configure the flow, variable, and interface to report the three types of disconnection reason codes to the specified interface.

  1. Define a global variable to identify the disconnection reason.

    When adding a global variable, specify the default value, which must be the reason code for calls disconnected by customers. For example, set the global variable name, data type, and default value to release_type, Character, and 2, respectively, as shown in the following figure.

  2. Add an exception flow and set the reason code for abnormal disconnection.

    Create a flow by referring to Adding Flows and set Scenario Type to Exception Flow. Generally, a Robot Reply diagram element is required in an exception flow to play etiquette expressions about causing the inconvenience, for example, "Sorry, we are facing some technical issues. Please try after some time. Thank you."

    Use the Interface Invoking diagram element to assign a value to the global variable, indicating the reason code of abnormal disconnection in the flow. In this example, set the global variable to 1. Use the Call Ending diagram element to end the call in an exception flow.

  3. Set the reason code of normal disconnection in front of the Call Ending diagram element in a normal flow.

    You do not need to change the logic of the current normal flow. You only need to add an Interface Invoking diagram element in front of the Call Ending diagram element in a normal flow and assign a value to the global variable, indicating the reason code of normal disconnection in the flow. In this example, set the global variable to 0. The following is an example.

  4. Set the parameters for the specified interface.

    Add a business interface based on the interface information provided by the business side by referring to section 4.1.1. However, set the preceding variable that indicates the disconnection reason code to the input parameter of the message body in the interface, as shown in the following figure.

  5. Invoke the specified interface for the Call Ending diagram element in the main flow.

    By referring to Call Ending, invoke the configured interface for the Call Ending diagram element in the main flow to report different reason codes after a flow disconnects a call.

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