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

Stored Procedure

Diagram Element

Parameter Description

  • Node Name: name of a node.
  • Description: details of a node.
  • Stored Procedure: stored procedure added on the Configuration Center > Flow Configuration > Resource > Stored Procedure page.
  • Cache Variable and Response Attribute: flow variables and their values. The output parameter returned by the stored procedure is valid only on the current node. If you want to use the value in subsequent flow nodes, define a cache variable here and assign the value of the output parameter to the cache variable.
  • Condition and Condition Expression: branches of the exit of the current diagram element. For example, you can set a branch based on the value of an output parameter in the stored procedure. Different subsequent flows can be specified for each branch.

Using the Diagram Element

The Stored Procedure diagram element is used when data needs to be imported to the database. It cannot be used in public cloud scenarios. In scenarios where the OIAP is independently deployed, the database you access needs to be deployed in the same security zone as the OIAP for security purposes.

Currently, the stored procedure applications of the MySQL database, Oracle database, and GaussDB are supported.

Click the diagram element or drag it to the canvas, select the stored procedure to be invoked, set its input parameters, and add cache variables to temporarily save its output parameters. For the list type in output parameters, you need to set it separately based on rules.

Typical Application Scenario

The following describes how to use the Stored Procedure diagram element.

  1. Sign in to the AICC and choose Configuration Center > Chatbot Management > Flow Configuration.
  2. Configure a database.

    1. Contact the system administrator to add the database URL to the trustlist.
    2. Choose Resource > Stored Procedure, click the Stored Procedure Databases tab, and click Create.
      Figure 1 Configuring a stored procedure database

  3. Configure a stored procedure.

    1. Obtain the developed stored procedure script. An example is as follows:
      Figure 2 Stored procedure script example
    2. Choose Resource > Stored Procedure, click the Stored Procedures tab, and click Create.
      Figure 3 Basic Information page
      Figure 4 Input Parameter page
      Figure 5 Output Parameter page

  4. Configure an intelligent IVR flow. The usage of the Stored Procedure diagram element is similar to that of the Interface Invoking diagram element. Select the configured stored procedure, set input parameters, and assign output parameters to a variable as required.

    1. Choose Resource > Variable, click the Custom Variable tab, and click Create to add a system variable for receiving the output parameters of the stored procedure.
      Figure 6 System variable to be added
    2. Choose Flow > Orchestration and click New to add a simple flow.
      Figure 7 Flow orchestration example (Stored Procedure diagram element)

      Use the reply variable GLOBAL.xxxx for the Robot Reply diagram element to reply the number output by the stored procedure to the customer.

    3. Save and publish the flow.
    4. Choose Intelligent Chatbot and bind the flow to a robot.

  5. Choose Configuration Center > Access Configuration > Called Party and add a called route. Set the IVR to the added intelligent IVR.
  6. Log in to the OpenEye using a softphone number to simulate a customer, and dial the access code added on the Called Party page. If the robot can query the number output by the stored procedure based on the calling number and reply it to the customer, the configuration is successful.

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