A dataset contains information about CoPilot call assessments, deals, calls, and other Bitrix24 items. Each item has several datasets that automatically receive data from system and custom fields. Use datasets to create charts and analyze business metrics.
In this article, you'll learn about datasets for call assessments based on sales scripts, how to merge them, and how to create charts.
Datasets:
Examples:
Choose a dataset
To analyze information in a dashboard, choose a suitable dataset and create a chart.
crm_ai_quality_assessment — call assessment. This dataset contains call assessment results based on sales scripts, including call IDs, quality scores, and employee details. Use it to check how well agents follow sales scripts and track call quality over time.
AI Speech analytics and Sales scripts in CRM
crm_ai_quality_assessment
| Field | Description | Data type |
|---|---|---|
| ID | Quality assessment ID | Number |
| CREATED_AT | Assessment creation date and time | Date and time |
| ACTIVITY_ID | Call activity ID | Number |
| ASSESSMENT_SETTING_ID | ID of the sales script used to assess the conversation | Number |
| ASSESSMENT | Conversation quality score | Number |
| USE_IN_RATING | Shows whether the assessment is included in the overall rating: Y — yes, N — no |
String |
| RATED_USER_ID | ID of the employee whose conversation was assessed | Number |
crm_copilot_call_assessment — sales scripts. This dataset contains information about the sales scripts CoPilot uses to assess calls, including script names, descriptions, text, processing statuses, assessment thresholds, and more. Use it identify active scripts and the criteria AI applies to evaluate customer interactions.
crm_copilot_call_assessment
| Field | Description | Data type |
|---|---|---|
| ID | Sales script ID | Number |
| TITLE | Sales script name | String |
| DESCRIPTION | Sales script description | String |
| PROMPT | Sales script text | String |
| IS_ENABLED | Shows whether the sales script is active: Y — yes, N — no |
String |
| STATUS | Script processing status: PENDING — processing not finished, SUCCESS — script processed successfully, ERROR — an error occurred | String |
| CREATED_AT | Script creation date and time | Date and time |
| UPDATED_AT | Date and time of the last script change | Date and time |
| CREATED_BY_ID | ID of the user who created the script | Number |
| UPDATED_BY_ID | ID of the user who changed the script | Number |
| LOW_BORDER | Score threshold below which the conversation is considered poor quality | Number |
| HIGH_BORDER | Score threshold at or above which the conversation is considered good quality | Number |
Create a chart
Add information from a dataset to charts and analyze the quality of agent calls. Charts help track how well agents follow sales scripts and identify deviations.
- Open BI Builder > Charts.
- Click + Chart in the top-right corner.
- Choose a dataset from the list. If you do not see the dataset you need, click Add a dataset.
Create a dataset - Choose a chart type — the format for viewing the information, such as a card, table, line chart, or another option.
- Click Create new chart.
Merge datasets
Merge deal and call assessment data to see how CoPilot assessed agent calls based on sales scripts.
- Open BI Builder > SQL > SQL Lab.
- Make sure
bitrix24is selected in the Schema field. - Enter the SQL query and click Run.
- Review the query results. To create a chart for a report, save the query as a dataset. The dataset receives data from the fields specified in the SQL query.
Create a chart from a virtual dataset
If this is your first time merging datasets, see the sample query.
Example SQL query
This SQL query extracts data from three datasets: call assessment (crm_ai_quality_assessment), CRM activity links (crm_activity_relation), and deals (crm_deal). You can copy it to see how the query works. The query shows the employee responsible for the deal, the deal name, and the assessment of the call linked to that deal.
SELECT
crm_deal.ASSIGNED_BY_NAME AS "Responsible person",
crm_deal.TITLE AS "Deal name",
crm_ai_quality_assessment.ASSESSMENT AS "Call assessment"
FROM crm_ai_quality_assessment
JOIN crm_activity_relation
ON crm_ai_quality_assessment.ACTIVITY_ID = crm_activity_relation.ACTIVITY_ID
JOIN crm_deal
ON crm_activity_relation.OWNER_ID = crm_deal.ID
WHERE crm_activity_relation.OWNER_TYPE_ID = 2;
SELECT determines which information to extract from the dataset. For example, SELECT crm_deal.ASSIGNED_BY_NAME AS "Responsible person":
- Selects the employee name
ASSIGNED_BY_NAMEfrom thecrm_dealdataset - Names it
Responsible person - Shows the result as a separate column in the table
FROM specifies the main dataset the data comes from. Here it is crm_ai_quality_assessment, the table with call assessment information.
JOIN connects the crm_ai_quality_assessment table with crm_activity_relation. The query links calls to CRM activity data. The second JOIN connects crm_activity_relation with crm_deal, linking calls to deals.
WHERE filters the results and shows only calls linked to deals.
In brief
- A dataset contains information about CoPilot call assessments, deals, calls, and other Bitrix24 items.
- Each item has several datasets that automatically receive data from system and custom fields.
- There are two datasets for call assessments based on sales scripts: call assessment (crm_ai_quality_assessment) and sales scripts (crm_copilot_call_assessment).
- Use datasets to analyze how well agents follow scripts and track call quality over time.
- Merge datasets, for example with deals, to see how call quality affects sales. Write an SQL query, save the result as a dataset, and create a chart.