SMS Sending (Expired and Not Recommended)

This diagram element is used to invoke an interface for sending SMS messages to send an SMS message based on a template.

Diagram Element

Parameter Description

  • Node Name: name of a node.
  • Description: details of a node.
  • SMS Template: You can select an SMS template defined under Resource Management > Resource Template. This function is supported only when the OP is independently deployed.
  • SMS Content: If you do not need an SMS template for a simple content, you can enter the content here.

Condition Branch Description

Table 1 Condition branch description

Condition Branch

Description

Usage

SYSERROR_INNER

ODFS internal error

Triggered when an unknown error occurs in the ODFS.

SYSERROR_INTERFACE

Business interface invocation failure

Triggered if an error occurs when the Business Interface Invocation diagram element is used to invoke a third-party interface.

This branch is generally used on the connection line between the Business Interface Invocation diagram element and subsequent node.

Using the Diagram Element

The SMS Sending diagram element is used to send an SMS message.

Click the diagram element or drag it to the canvas, and select an SMS template or add an SMS content. If you need an SMS template, define it under Resource Management > Resource Template in advance.

Typical Application Scenario

The following describes how to use the SMS Sending diagram element to send a dinner reservation SMS message after the dinner reservation time is confirmed.

  1. Add an interface for sending SMS messages. For details, see Adding Business Interfaces.

    The message body of the interface must contain the input parameters smsContent and userMobile. Set other parameters based on the site requirements. The following is an example:

    When you manually enter the message body to configure the interface:

    When the automatically generated message body is used:

  2. Sign in to the AICC and choose Configuration Center > Chatbot Management > Flow Configuration.
  3. Configure an intelligent IVR flow.

    1. Choose Flow > Orchestration and click New to add a simple flow.
    2. Click + in the Flow Variable area. In the dialog box that is displayed, set the variable name and data type.
      Figure 1 Flow variables to be added
      Figure 2 Flow orchestration example (SMS Sending diagram element)
      • Use the reply variable FLOW.ask for the Robot Reply diagram element to ask the customer about the dinner reservation date: "What date would you like to make a reservation for dinner?"
      • The input parameters smsContent and userMobile of the SMS message sending diagram element interface do not need to be set. If they are set, they are used preferentially.
      • You can select an SMS template (variables can be set) or customize the SMS content.
      • SmsContent, SMS template, and SMS content. The priorities of the values are as follows: smsContent > SMS template > SMS content
      • userMobile and the user number obtained by the system. The priority is as follows: userMobile & > User number obtained by the system
    3. Save and publish the flow.

  4. Choose Intelligent Chatbot and bind the flow to a robot.
  5. Choose Intelligent Chatbot. In the last column corresponding to the robot, click Test Call.

    In the test dialog box that is displayed, click Start Call to test the robot.