Create flows to combine call and conversational details for analysis
This document outlines the application of conversational details report and call detail report parameters for customer tracking purposes.
Along with standard fields present in CDR and conversational details report, voice bot developers can define fields based on their business logic requirements.
Examples of insights you can derive from the call and conversational details reports:
- Retrieve average call duration for callers from Gujarat state by combining duration fields from CDR table and state name from conversational details report table.
- Retrieve the success rate for answered calls with Hindi language selection by combining call status field from CDR table and selected language from conversational details report table.
Use-case:
To analyze both call details and conversational details for certain use cases, you can create a flow that integrates data from both sources. By doing so, you can gain insights by analyzing the combined data.
For example, if you are developing a voice bot for medical counseling aimed at different age groups, it may be necessary to track the age of customers, the nature of their queries, and the length of their calls, in accordance with company guidelines. You could record the customer's age and query as custom fields, while the call duration can be automatically tracked by CDR. By combining both sources of data, you could create a dashboard that is tailored to this use case.
To accomplish use cases that involve using both conversational data and CDR data, three steps need to be followed:
- Set up a flow that can collect and store custom details from the conversation.
- Create a callbackStatus event that can retrieve CDR data once the call has ended.
- Merge the CDR data and custom fields into a table for analysis.
Step 1. Call data collection and storage using variables
To store the age and query type along with the rest of the flow, follow these steps:
- Create a flow on Automation using prompts to store conversational data in variables.
- Create a table with required columns to store variable data.
- Use database nodes to send variable data to a table.
Refer this for elaboration on these 3 steps.
Step 2. Create a callbackStatus event
To streamline call management, create a custom event named callbackStatus
. You can follow the steps provided here to create a custom event. Once you've created the event, verify that its status is set to Active.
Functionality of callbackStatus custom event
The callbackStatus
object is a container that holds important CDR data and is dispatched to the platform immediately after a call is disconnected. In addition to this, an event is also dispatched to the platform as soon as the call is disconnected, which can be utilized by bot developers to receive the 'callbackStatus' JSON object.
Step 3. Merge CDR and conversation data post-call disconnection
Create a new flow from scratch by following the steps provided here.
On the start node, add an event trigger by selecting Event as the trigger and
callbackStatus
as the value. This will ensure that the flow executes when the call has ended as per the backend logic.
Create new variables to retrieve CDR-related entries. For example, to retrieve Call duration, create a variable Duration and add value as
{{variables.EVENT_DATA.duration}}
. Click here for detailed explaination.Add a database node to combine CDR and conversational detail fields into one table.
- Add type as Update. Select the same table name.
- Filter for SID.
- Add CDR fields/variables.
Step 4. Download or visualize call details for better insights
You can find all the information related to your use case, including data from both CDR and conversational detail fields, on the table.
- To download this data, navigate to Automation > Database, and click on Table actions. From there, you can easily download the data.
- You can also view this data on Insights > Data explorer, where it can be summarized, visualized, and even added as a custom dashboard for easy access to analytics.
Understand other operations on insights
- Check out the available actions for custom tables by visiting this page.
- To visualize the data collected from calls, follow the steps outlined in this guide.
- Understand other operations on Insights modules.