Date Processing (Expired and Not Recommended)

This diagram element is used to offset the date that a customer speaks by month or hour. For example, if a customer says "March 2019", this diagram element can be used to offset March 2019 backward by two months and output "May 2019".

Diagram Element

Parameter Description

  • Node Name: name of a node.
  • Description: details of a node.
  • Offset Period
    • By month
    • By hour
  • Source Character String: variable of the string that has been defined and assigned a value in the previous flow. The string format is yyyyMM for offsetting by month and yyyyMMddHHmmss for offsetting by hour. For example, "201903" said by a customer can be transferred using a variable.
  • Target Character String: variable of the correct string after time conversion. This parameter is usually set to a flow variable.
  • Number of Offsets: mode of converting the source month.

Using the Diagram Element

The Date Processing diagram element is used when the relative time expressed by a customer needs to be fuzzily processed.

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 Date Processing diagram element to offset the month said by a customer backward by one month.

  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 1 Flow variables to be added
      Figure 2 Flow orchestration example
    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. The robot outputs input parameters, and the customer enters any month. Then, the robot offsets the month forward by one month and outputs the result.
    Figure 3 Testing the robot