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

JSON Data Invoking

Appearance

Parameter Description

  • Node Name: name of a node.
  • Description: details of a node.
  • Cache Variable and Response Attribute: flow variables and their values. The output parameter returned by the interface is valid only on the current node. If you want to use the value in subsequent flow nodes, define a cache variable here and assign the value of the output parameter to the cache variable.
    • When the call-associated data that the common IVR returns to the intelligent IVR is in the {"data":{"xx": "aaa", "yy":"bbb"}, "ivrType": "0"} format, to obtain aaa, set Response Attribute of the JSON Data Invoking diagram element in the intelligent IVR to IVRREQUEST.transin_data.data.xx.
    • When a CC-iSales outbound call is transferred to the intelligent IVR, the CC-iSales converts the call-associated data (for example, "callData":"{\\\"xxx\\\":\\\"123456\\\",\\\"yyy\\\":\\\"123\\\"}") carried by the API for adding an outbound call number to the format of {"iSales":{"UniqueID":"***","ServiceID":"***","xxx":"123456","yyy":"123"}. To obtain 123456, set Response Attribute of the JSON Data Invoking diagram element in the intelligent IVR to IVRREQUEST.transin_data.iSales.xxx.

Using the Diagram Element

When the call-associated data is in JSON format, this diagram element can be used to obtain the parameters of a specified node and assign values to the parameters.

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

Typical Application Scenario

Scenario 1: Transfer a call from a common IVR flow to an intelligent IVR flow when call-associated data in JSON format is carried.

  1. Sign in to the AICC and choose Configuration Center > Flow Configuration > Intelligent IVR.
  2. Configure an intelligent IVR flow.

    1. Choose Flow Management > Flow Orchestration, add an intelligent IVR flow, and set the parameters as shown in the following figure. The value of Response Attribute must be the same as the parameter name transferred by the common IVR.
      Figure 1 Flow orchestration example
    2. Save and release the flow.
    3. Choose Chatbot Management and bind the flow to a chatbot.

  3. Configure a common IVR flow.

    1. Choose Configuration Center > Flow Configuration > Flow Management, add a common IVR flow, and set the parameters as shown in the following figure.
      Figure 2 Flow orchestration example
    2. Save and release the flow.

  4. Choose Configuration Center > Access Configuration > Called Route and add a called route. Set the IVR to the common IVR added in 3.
  5. Log in to the OpenEye and dial the access code added on the Called Route page.
  6. Choose Flow Management > Flow Tracking and query the flow check result of the test number. If the result is the same as that shown in the following figure, the intelligent IVR node successfully obtains the value of the call-associated data parameter (service_id) passed by the common IVR.

    Figure 3 Flow track log page

Scenario 2: Transfer a CC-iSales outbound call to an intelligent IVR flow when call-associated data in JSON format is carried.

  1. Sign in to the AICC and choose Configuration Center > Flow Configuration > Intelligent IVR.
  2. Configure an intelligent IVR flow.

    1. Choose Flow Management > Flow Orchestration and add an intelligent IVR flow whose Scenario Type is Main flow. Configure the JSON Data Invoking diagram element, as shown in the following figure. For the Response diagram element, set Response Source to Response Variable and Response Variable to FLOW.response.
      Figure 4 Flow orchestration example
    2. Save and release the flow.

  3. Configure an intelligent outbound call task in the CC-iSales.

    1. Choose Configuration Center > Outbound Call Task > Call Data Attribute and create attributes, as shown in the following figure. That is, create call-associated data fields used during outbound call creation. You can click Outbound Call Data corresponding to an outbound call task to bind the call-associated data fields added here. Release the attribute.
      Figure 5 Create Attribute page
    2. Choose Outbound Call Task > Outbound Task Management and click Create Auto Outbound Call.
    3. Configure an intelligent outbound call task. Set Task Type to Intelligent Outbound Call and IVR Flow to the intelligent IVR flow added in 2, and save the configuration.
      Figure 6 Page for configuring an intelligent outbound call task
    4. Click Outbound Call Data in the Operation column corresponding to the new intelligent outbound call task, click New, and add CC-iSales outbound numbers (for example, 88882020) one by one and configure the call-associated data to be passed.

      To import outbound call data in batches, see Configuring Outbound Call Data.

      Figure 7 Configuring outbound call data
      Figure 8 Configuring the call-associated data to be passed

  4. Log in to the OpenEye using a configured outbound number, and start the intelligent outbound call task. After answering the call, you can hear the call-associated data (ServiceID) passed by the CC-iSales outbound call.
  5. Choose Flow Management > Flow Tracking and query the flow check result of the test number. If the result is the same as that shown in the following figure, the intelligent IVR node successfully obtains the value of the call-associated data parameter (ServiceID) passed by the CC-iSales outbound call.

    Figure 9 Flow track log page