Updated on 2023-09-20 GMT+08:00

System Variable (SYS)

Parameter

Description

SYS.systemDate

System date. The value is a character string.

The value format is YYYYMMDD, with four digits for the year, two digits for the month, and two digits for the date. If the number of digits is insufficient, use 0 for padding. For example, April 12, 2019 can be expressed as 20190412.

SYS.systemMonth

System year and month. The value is a character string.

The value format is YYYYMM, with four digits for the year and two digits for the month. If the number of digits is insufficient, use 0 for padding. For example, April 2019 can be expressed as 201904.

SYS.systemTime

Current system time. The value is a character string.

The value format is HHmmss, with two digits for each of the hour (24-hour format), minute, and second. If the number of digits is insufficient, use 0 for padding. For example, 16:00 can be expressed as 160000.

SYS.callingNumber

Customer phone number. When a call is connected to the AICC, this parameter indicates the calling number. When a call is made by the AICC, this parameter indicates the called number. Both the calling number and called number are customer phone numbers. The value is a character string. The number is transferred by an IVR flow.

SYS.calledNumber

Access code. The value is a character string. The access code is transferred by an IVR flow, and can be viewed on the web application server (WAS) console of the computer telephony integration (CTI) platform.

SYS.realCalledNumber

Access code configured in the called route of the flow, that is, the hotline number dialed by the flow.

SYS.callId

Session ID on the ODFS. The value is a character string. The ID is transferred by the IVR flow, that is, IVRREQUEST.call_id.

SYS.cti_callid

CTI call ID transferred by the IVR flow, that is, IVRREQUEST.cti_callid on the IVR side.

SYS.tenantId

Current tenant ID. The value is a character string.

SYS.language

Current customer language. The value is a character string.

To support multiple languages, assign a value to this variable. For example, assign en_US for English.

SYS.timeStamp

Timestamp, which is a character string. Total number of seconds from 1970-01-01 00:00:00 (GMT) (Beijing time 1970-01-01 08:00:00) to the current time.

Expressions that contain parameters comply with JavaScript syntax, and the result is of the boolean type. For example, in the Condition Judgment diagram element, you can determine whether the current time is within or beyond the service time using the following expressions:

  • Service Time: (SYS.systemTime > '110000') && (SYS.systemTime < '220000')
  • Non Service Time: (SYS.systemTime < '110000') || (SYS.systemTime > '220000')