Updated on 2024-10-12 GMT+08:00

Rule Validation V2

This diagram element is used to verify the customer input or output based on rules.

Diagram Element

Parameter Description

Figure 1 Rule validation V2 parameters

  • Variable to be Verified: Enter the variable corresponding to the parameter to be verified, for example, IVRREQUEST.input.
  • End of Special Key: Specify the end character of the parameter to be verified. The options are as follows:
    • With #
    • With *
    • With # or *
    • Without special keys
  • Contains Characters: Specify the characters that can be contained in the parameter to be verified. You can select multiple values. The options are as follows:
    • Matches numbers
    • Matches uppercase letters
    • Matches lowercase letters
    • Matches letters, digits, and underscores (_)
    • Empty character

Verification Rules

  • Name: Select a verification rule. The options are as follows:
    • Minimum Length
    • Maximum Length
    • Length Range
    • Min.
    • Max.
    • Value Range
    • Email
    • URL
    • Time Format
    • Decimal Number
    • Positive Integer
    • IP Address
    • Alphanumeric Underscore (not starting with a number)
  • Rule Parameters: Enter rule parameters. Variables are supported.

Condition Branch Description

Table 1 Condition branch description

Condition Branch

Description

Usage

SUCCESS

Successful verification

Triggered when the verification is successful.

FAILED

Verification failure

Triggered when the verification fails.

SYSERROR_INNER

ODFS internal error

Triggered when an unknown error occurs in the ODFS. If no option is selected, the flow goes to the exception handling flow.

Using the Diagram Element

This diagram element is used to verify the customer voice or keyboard input based on rules.

Click the diagram element or drag it to the canvas, and set parameters based on the parameter description.

Typical Application Scenario

The following describes how to use the Rule validation V2 diagram element to verify whether the customer input is a valid date.

  1. Sign in to the AICC and choose Configuration Center > Chatbot Management > Flow Configuration.
  2. 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. The default value of the variable will be played to the customer.
      Figure 2 Add Variable

      Figure 3 Flow orchestration example (Rule validation V2 diagram element)
      • Select the reply text SUCCESS for the Robot Reply diagram element of the SUCCESS condition branch, indicating that the time meets the format requirements.
      • Select the reply text FAILED for the Robot Reply diagram element of the FAILED condition branch, indicating that the time does not meet the format requirements.
    3. Save and publish the flow.

  3. Choose Intelligent Chatbot and bind the flow to a robot.
  4. 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. If the robot answers SUCCESS or FAILED based on the time entered by the customer, the configuration is successful.
    Figure 4 Testing the robot