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.
- Sign in to the AICC and choose .
- Configure an intelligent IVR flow.
- Choose Figure 1 Flow orchestration example
, 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.
- Save and publish the flow.
- Choose and bind the flow to a robot.
- Choose
- Configure a common IVR flow.
- Choose Figure 2 Flow orchestration example
, add a common IVR flow, and orchestrate the flow, as shown in the following figure.
- Save and publish the flow.
- Choose
- Choose 3. and add a called route. Set the IVR to the common IVR added in
- Log in to the OpenEye and dial the access code added on the Called Party page.
- Choose
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.
- Sign in to the AICC and choose .
- Configure an intelligent robot.
- Choose Figure 4 Flow orchestration example
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.
- Save and publish the flow.
- Choose
- Configure an intelligent outbound call task in the CC-iSales.
- Choose Figure 5 Create Attribute page
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.
- Choose Robot Outbound. , click Create, and choose
- 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
- 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
- Choose
- 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.
- Choose
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
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot