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

Time Selection

The orchestration capability varies depending on the time. That is, the holiday time of each region may be different. During flow orchestration, perform different orchestration operations based on the holidays and working days.

Diagram Element

Parameter Description

  • Node Name: name of a node.
  • Description: details of a node.
  • Week Selection: Select the working days of a week.
  • Service Period: Select the start working time and end working time.
  • Specified Service Date: Specify one or more dates as working dates.
  • Specified Non-service Date: Specify one or more dates as non-working dates.

The time zone is that set by the system administrator when the tenant space is created. If the time zone is not set when the tenant space is created, the value of the built-in variable timezone is used.

The configuration priority is as follows: Specified Non-service Date > Specified Service Date > Week Selection.

Condition Branch Description

Table 1 Condition branch description

Condition Branch

Description

Usage

NON_SPECIFIC_TIME

Non-working time

Triggered when the current time is non-working time.

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

The holiday time of each region may be different. During flow orchestration, perform different orchestration operations based on the holidays and workdays.

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 Time Selection diagram element to determine whether the current time is working time for subsequent business handling.

  1. Sign in to the AICC and choose Configuration Center > Chatbot Management > Flow Configuration.
  2. Configure an intelligent robot.

    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 variable to be added
      Figure 2 Flow orchestration example (Time Selection diagram element)
      Figure 3 Referencing a work calendar template

      For the Robot Reply diagram element, set Reply Variable to FLOW.response to reply to the customer with "The current time is working time. What kind of business do you want?" if the current time is working time.

    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 replies based on whether the current time is working time, the configuration is successful.