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

JSON Data Invoking (Expired and Not Recommended)

This diagram element is used to parse and assign values to call-associated data in JSON format.

Diagram Element

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 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 > Chatbot Management > Flow Configuration.
  2. Configure an intelligent IVR flow.

    1. Choose Flow > Orchestration, add an intelligent IVR flow, and set 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 publish the flow.
    3. Choose Intelligent Chatbot and bind the flow to a robot.

  3. Configure a common IVR flow.

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

  4. Choose Configuration Center > Access Configuration > Called Party 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 Party page.
  6. Choose Flow Management > Flow Tracking and query the flow check result of the test number. If the result is the similar to 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 > Chatbot Management > Flow Configuration.
  2. Configure an intelligent robot.

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

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

    1. Choose Configuration Center > Call Config > Data Attr and create attributes, as shown in the following figure. That is, create call-associated data fields used during outbound call creation. You can click Call Data corresponding to an outbound call task to bind the call-associated data fields added here. Publish the attribute.
      Figure 5 Create Attribute page
    2. Choose Outbound Call > Call Mgmt, click Create, and choose Robot Outbound.
    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