Conversation Intelligence Data Model
This article describes the Conversation Intelligence (CI) interaction data model: the structure of the data Capacity delivers for each interaction when an outbound integration pushes to your SFTP location or HTTP endpoint. Use it to understand what each field contains and to map the payload into your own systems.
Interaction Data Model Relations
Definitions
callDetails
| Key Name | Data Type | Description |
|---|---|---|
| callId | String | The Call ID or Flow ID (if the interaction is a Flow CallType). |
| sessionId | String | The session ID from the originating audio ingestion system; can be used to cross-reference this call with other systems using this ID. |
| callUri | String | The URI to the interaction. Accepts a “transcript” query string with a time value in milliseconds. For example: https://{your-domain}/calls/bbqfdedfow?transcript=15610 |
| utcStart | DateTime | The start time of the interaction in UTC time. |
| utcEnd | DateTime | The end time of the interaction in UTC time. |
| duration | Duration (ISO 8601) | The duration of the call. |
| audioDuration | Duration (ISO 8601) | The duration of the mixed audio file for this call. |
| callDisplayName | String | The display name for the call based on its call groups. Comma separated. |
| callGroups | JSON array | Details about the call groups assigned to this call. |
| callMetadata | JSON blob | Contains all metadata sent along with the interaction from the originating audio ingestion system. Not included when sending to analytical systems (such as Power BI). |
| classifications | JSON array | Any classification associated to a call, not specific to any participant. |
| textHits | JSON array | Any custom text field category hits associated to the interaction. |
| participants | JSON array | The participants that took part in the interaction; typically, these are an agent and a customer (but can also include chat bots). |
| direction | String | The direction of the interaction; can be inbound (e.g., customer calls the agent), outbound (e.g., agent calls the customer), or internal (e.g., agent speaking with supervisor). |
| masterCallId | String | A call ID that may be shared between one or more calls, that stitched together represent one call (composite call). |
| language | String | The three-letter language code (ISO 639-3 Alpha-3 Code) the interaction is most likely to contain. |
| country | String | The three-letter country code (ISO 3166 Alpha-3 Code) of the dialect most likely spoken on the interaction. |
| hadDiarization | Boolean | The call had diarization run on the audio (i.e., the call was mono and was split into multiple audio streams, one for each participant). |
| callType | String | The call type, which will be Flow if it is a composite call or case. |
| flows | JSON array | Contains a list of all segments of a split interaction, i.e. all composite parts. |
| customTexts | Text | Custom fields with data type as text. |
| customStrings | String | Custom fields with data type as string. |
| customLongs | Long | Custom fields with data type as long integer. |
| customDoubles | Double | Custom fields with data type as double floating integer. |
| customDateTimes | DateTime | Custom fields with data type as DateTime. |
| evaluatedCustomFields | JSON array | IDs of evaluated custom fields. |
| matchedCustomFields | JSON array | IDs of matched custom fields, i.e. those that have content. |
| lastUpdatedUtc | DateTime | Time last updated. |
| internalTalkTime | Duration (ISO 8601) | Duration of internal speaker. |
| externalTalkTime | Duration (ISO 8601) | Duration of external speaker. |
| silenceTime | Duration (ISO 8601) | Total silence time during the interaction. |
| startSilenceTime | Duration (ISO 8601) | Silence duration at start of interaction. |
| endSilenceTime | Duration (ISO 8601) | Silence duration at end of interaction. |
| silencePercent | Double | Total silence percent during the interaction. |
| internalTalkPercent | Double | Total percent of internal speaker. |
| externalTalkPercent | Double | Total percent of external speaker. |
| transcriptConfidence | Int | Total confidence of transcription accuracy (score out of 100, 100 being most confident). |
| genAiSummary | Text | Summary of the interaction, generated by AI. |
| genAiSections | JSON array | Sections of the interaction generated by AI. |
| genAiQuestions | JSON array | AI responses to custom questions. |
callGroups
| Key Name | Data Type | Description |
|---|---|---|
| id | String | Call group ID. |
| displayName | String | Call group display name. |
| type | String | Call group type (e.g., Division, Location, Team, Skill, Campaign). |
customTexts
| Key Name | Data Type | Description |
|---|---|---|
| value | Text | Custom field text. |
| id | String | Custom field ID. |
| displayName | String | Custom field text display name. |
customStrings
| Key Name | Data Type | Description |
|---|---|---|
| value | String | Custom field string. |
| id | String | Custom field ID. |
| displayName | String | Custom field string display name. |
customLongs
| Key Name | Data Type | Description |
|---|---|---|
| value | Long | Custom field long integer. |
| id | String | Custom field ID. |
| displayName | String | Custom field long integer display name. |
customDoubles
| Key Name | Data Type | Description |
|---|---|---|
| value | Double | Custom field double floating integer. |
| id | String | Custom field ID. |
| displayName | String | Custom field double floating integer display name. |
customDateTimes
| Key Name | Data Type | Description |
|---|---|---|
| value | DateTime | Custom field DateTime. |
| id | String | Custom field ID. |
| displayName | String | Custom field DateTime display name. |
flows
| Key Name | Data Type | Description |
|---|---|---|
| flowId | String | Flow ID. |
| flowTypeId | String | Flow type ID. |
classifications
| Key Name | Data Type | Description |
|---|---|---|
| id | String | ID for each classification. |
| categoryType | String | Represents the subsystem in CI that assigns the call classification. |
| categoryId | String | Category ID from the given subsystem (categoryType) in CI that assigned the classification. Unique per categoryType. |
| displayName | String | User-friendly display name of the classification. |
| value | Double | Numerical value of the classification based on the categoryType. |
| isOverridden | Boolean | Indicates if the classification value has been overridden. |
| missed | Boolean | Indicates if the classification was required but not hit. |
| content | String | Appropriate content of the classification. |
| fromFlow | Boolean | Indicating if the classification came from a flow. |
Example Categories
| JSON Content | Description |
|---|---|
{ "categoryType": "DeepPhrase", "categoryId": "1234", "displayName": "CSATai" } | DeepPhrase specifies that a phrase triggered a built-in deepPhrase feature (e.g. CSATai or Overall Agent Sentiment). 1234 indicates the ID of the DeepPhrase that was triggered. CSATai is the user-friendly name of the DeepPhrase that was triggered. |
| { "categoryType": "BasicScore", "categoryId": "1234", "displayName": "Effort Index", "value": "4.4" } | BasicScore specifies that a built-in or custom score was triggered, e.g. Effort Index or Non-Hold Silence. 1234 indicates the ID of the score that was triggered. 4.4 is the score achieved. |
| { "categoryType": "SequenceDetection", "categoryId": "1234", "displayName": "Positive to Frustration" } | SequenceDetection specifies that a sequential category was triggered. 1234 indicates the ID of the DeepPhrase that was triggered. Positive to Frustration is the user-friendly name of the Sequential category that was triggered. |
| { "categoryType": "Dialogue", "categoryId": "Silence" } | Dialogue specifies that something happened within the dialogue, e.g. Overtalk, Silence or Interruption. Silence indicates there was silence in the utterance at the time (startMs) specified. |
textHits
| Key Name | Data Type | Description |
|---|---|---|
| id | String | ID for each custom text hit. |
| categoryType | String | Represents the subsystem in CI that assigns the call custom text hit. |
| categoryId | String | Category ID from the given subsystem (categoryType) in CI that assigned the custom text hit. Unique per categoryType. |
| customFieldId | String | ID of the custom field that was hit. |
| startIdx | Int | The start character of the custom text field value that was hit. |
| endIdx | Int | The end character of the custom text field value that was hit. |
| value | Double | Numerical value of the custom text hit based on the categoryType. |
| displayName | String | User-friendly display name of the custom text hit. |
| content | String | Appropriate content of the custom text hit. |
participants
| Key Name | Data Type | Description |
|---|---|---|
| participantId | Int | ID for the participant in CI. |
| refType | String | The type for the external reference ID stored in RefId for this participant, e.g. Agent or Customer. |
| refId | String | The external reference ID corresponding to the system specified in the RefType field. |
| contactId | String | The unique ID given to this participant from the originating audio ingestion system. |
| phoneNumber | String | The phone number from the Caller ID for each participant. |
| firstName | String | The first name of the participant (if available). |
| lastName | String | The last name of the participant (if available). |
| displayName | String | User-friendly display name of the participant (generated from other fields). |
| isInternal | Boolean | Indicating this participant is inside the call center (e.g., this would be true if it is an employee/agent or false if it is an external customer). |
| segments | JSON array | The different elements CI detected on an interaction for each participant; like classifications. |
| utterances | JSON array | The utterances and the words from this participant if provided. |
segments
| Key Name | Data Type | Description |
|---|---|---|
| id | String | ID for each segment. |
| categoryType | String | Represents the subsystem in CI that assigns the call segment. |
| categoryId | String | Category ID from the given subsystem (categoryType) in CI that assigned the segment. Unique per categoryType. |
| displayName | String | User-friendly segment name. |
| startMs | Long | Segment start time in milliseconds. |
| endMs | Long | Segment end time in milliseconds. |
| utcStart | DateTime | The start time of the segment in UTC time. |
| utcEnd | DateTime | The end time of the segment in UTC time. |
| value | Double | Numerical value of the segment based on the categoryType. |
| content | Text | Where appropriate, the part of the transcript that triggered the segments. |
| fromFlow | Boolean | Indicating if the segment came from a flow. |
Example Categories
| JSON Content | Description |
|---|---|
| { "categoryType": "Sentence", "categoryId": "UtteranceBreak" } | Sentence specifies that this is a spoken sentence. UtteranceBreak indicates there was a break in the utterance at the time (startMs) specified. |
| { "categoryType": "DeepPhrase", "categoryId": "1234", "displayName": "Gratitude (Agent)" } | DeepPhrase specifies that a phrase triggered a built-in deepPhrase emotion (e.g. Gratitude or Approval). 1234 indicates the ID of the DeepPhrase that was triggered. Gratitude (Agent) is the user-friendly name of the DeepPhrase that was triggered. |
| { "categoryType": "PhraseDetection", "categoryId": "1234", "displayName": "Affirmative Response" } | PhraseDetection specifies that a category was triggered. 1234 indicates the ID of the category that was triggered. Affirmative Response is the user-friendly name of the category that was triggered. |
| { "categoryType": "Dialogue", "categoryId": "Overtalk" } | Dialogue specifies that something happened within the dialogue, e.g. Overtalk, Silence or Interruption. Overtalk indicates there was either overtalk or silence or an interruption in the utterance at the time (startMs) specified. |
utterances*
| Key Name | Data Type | Description |
|---|---|---|
| startMs | Long | Utterance start time in milliseconds. |
| endMs | Long | Utterance end time in milliseconds. |
| startUtc | DateTime | The start time of the utterance in UTC time. |
| endUtc | DateTime | The end time of the utterance in UTC time. |
| words | JSON array | Utterance words spoken. |
| text | Text | Utterance raw text. |
words*
| Key Name | Data Type | Description |
|---|---|---|
| startMs | Long | Word start time in milliseconds. |
| endMs | Long | Word end time in milliseconds. |
| content | String | Individual word spoken. |
| confidence | Double | Total confidence of transcription accuracy (score out of 100, 100 being most confident). |
*Participant utterances and words are switched off by default. If you require full transcripts in the JSON export, please raise a support ticket to request this feature: creovai-support@capacity.com
Example JSON Payload
Comments and example uses are displayed in purple.
{
"callId": "call_id",
"sessionId": "session_id",
"callUri": "call_uri", //https://{your-domain}/calls/{callId}
"utcStart": "call_start", //datetime_UTC yyyy-MM-ddThh:mm:ss.SSSZ
"utcEnd": "call_end", //datetime_UTC yyyy-MM-ddThh:mm:ss.SSSZ
"duration": "speaking_duration", //ISO 8601 duration
"audioDuration": "audio_duration", //ISO 8601 duration
"callDisplayName": "call display name",
"callGroups": [
{
"Id": "group_id",
"DisplayName": "group common name",
"Type": "group_type_id"
}
],
"callMetadata": {
"key": "value" //dynamic
},
"classifications": [
{
"id": "event_id",
"categoryType": "PhraseDetection",
"categoryId": "category_id",
"displayName": "category common name",
"value": 0,
"isOverridden": false,
"missed": true,
"Content": null,
"fromFlow": true
},
{
"Id": "event_id",
"CategoryType": "SequenceDetection",
"CategoryId": "sequential_category_id",
"DisplayName": "sequential category common name",
"StartMs": 1234,
"EndMs": 5678,
"utcStart": "2025-04-16T01:29:04.55Z", //datetime_UTC yyyy-MM-ddThh:mm:ss.SSSZ
"utcEnd": "2025-04-16T01:33:27.85Z", //datetime_UTC yyyy-MM-ddThh:mm:ss.SSSZ
"value": 0,
"isOverridden": false,
"missed": true
},
{
"Id": "event_id",
"CategoryType": "BasicScore",
"CategoryId": "basic_score_id",
"DisplayName": "basic score common name",
"Value": 5.6,
"isOverridden": false,
"Missed": false,
"Content": "score_range_label"
},
{
"Id": "event_id",
"CategoryType": "Dialogue",
"CategoryId": "Silence",
"DisplayName": "",
"StartMs": 1234,
"EndMs": 5678,
"utcStart": "2025-04-16T01:29:04.55Z", //datetime_UTC yyyy-MM-ddThh:mm:ss.SSSZ
"utcEnd": "2025-04-16T01:33:27.85Z", //datetime_UTC yyyy-MM-ddThh:mm:ss.SSSZ
"Value": 0.0,
"isOverridden": false,
"Missed": false
}
],
"Participants": [
{
"ParticipantId": 1,
"RefType": "ref_type",
"RefId": "participant_reference_id",
"ContactId": "participant_contact_id",
"PhoneNumber": "participant_phone_number",
"FirstName": "first_name",
"LastName": "last_name",
"DisplayName": "first_name last_name",
"IsInternal": false,
"Segments": [
{
"Id": "event_id",
"CategoryType": "PhraseDetection",
"CategoryId": "category_id",
"DisplayName": "category common name",
"StartMs": 0,
"EndMs": 0,
"Value": 1,
"Missed": false,
"Content": "phrase content"
},
{
"Id": "event_id",
"CategoryType": "Sentence",
"CategoryId": "UtteranceBreak",
"StartMs": 0,
"EndMs": 0,
"Value": 0,
"Missed": null,
"Content": null
},
{
"Id": "event_id",
"CategoryType": "Dialogue",
"CategoryId": "dialogue_type", //Interruption, Overtalk
"StartMs": 0,
"EndMs": 0,
"Value": 0,
"Missed": null,
"Content": null
},
{
"Id": "event_id",
"CategoryType": "Redaction",
"CategoryId": "redaction_type", //SecurityCode, CreditCard
"StartMs": 0,
"EndMs": 0,
"Value": 1,
"Missed": null,
"Content": null
}
],
"utterances": [
{
"startMs": "utterance_start_ms",
"endMs": "utterance_end_ms",
"utcStart": "utterance_start_time", //datetime_UTC yyyy-MM-ddThh:mm:ss.SSSZ
"utcEnd": "utterance_end_time", //datetime_UTC yyyy-MM-ddThh:mm:ss.SSSZ
"words": [
{
"startMs": "word_start_ms",
"endMs": "word_end_ms",
"content": "Hi",
"confidence": "0.98736"
},
{
"startMs": "word_start_ms",
"endMs": "word_end_ms",
"content": "welcome",
"confidence": "0.98736"
}
],
"text": "Hi welcome"
}
]
},
{
"ParticipantId": 2,
"RefType": "ref_type",
"RefId": "participant_reference_id",
"ContactId": "participant_contact_id",
"PhoneNumber": "participant_phone_number",
"FirstName": "first_name",
"LastName": "last_name",
"DisplayName": "first_name last_name",
"IsInternal": true,
"Segments": [
{
"Id": "event_id",
"CategoryType": "PhraseDetection",
"CategoryId": "category_id",
"DisplayName": "category common name",
"StartMs": 0,
"EndMs": 0,
"Value": 1,
"Missed": false,
"Content": "phrase content"
},
{
"Id": "event_id",
"CategoryType": "Sentence",
"CategoryId": "UtteranceBreak",
"StartMs": 0,
"EndMs": 0,
"Value": 0,
"Missed": null,
"Content": null
},
{
"Id": "event_id",
"CategoryType": "Dialogue",
"CategoryId": "dialogue_type", //Interruption, Overtalk
"StartMs": 0,
"EndMs": 0,
"Value": 0,
"Missed": null,
"Content": null
},
{
"Id": "event_id",
"CategoryType": "Redaction",
"CategoryId": "redaction_type", //CreditCard, SocialSecurityNumber, DateOfBirth, HoldMusic
"StartMs": 0,
"EndMs": 0,
"Value": 1,
"Missed": null,
"Content": null
}
],
"utterances": [
{
"startMs": "utterance_start_ms",
"endMs": "utterance_end_ms",
"utcStart": "utterance_start_time", //datetime_UTC yyyy-MM-ddThh:mm:ss.SSSZ
"utcEnd": "utterance_end_time", //datetime_UTC yyyy-MM-ddThh:mm:ss.SSSZ
"words": [
{
"startMs": "word_start_ms",
"endMs": "word_end_ms",
"content": "My",
"confidence": "0.98736"
},
{
"startMs": "word_start_ms",
"endMs": "word_end_ms",
"content": "name",
"confidence": "0.98736"
}
],
"text": "My name"
}
]
}
],
"Direction": "call_direction", //Inbound, Outbound, Unknown, Internal
"MasterCallId": "master_call_id",
"Language": "language_code", //ISO 639-3 Language Code
"Country": "country_code", //ISO 3166 Alpha-3 Country Code
"HadDiarization": false,
"CallType": "call_type", //Call, Chat, Case
"CustomStrings": [
{
"value": "custom_field_value",
"id": "1",
"displayName": "custom_field_name"
}
],
"CustomLongs": [
{
"value": "custom_field_value",
"id": "3",
"displayName": "custom_field_name"
}
],
"CustomDoubles": [
{
"value": "custom_field_value",
"id": "4",
"displayName": "custom_field_name"
}
],
"CustomDateTimes": [
{
"value": "custom_field_value",
"id": "2",
"displayName": "custom_field_name"
}
],
"evaluatedCustomFields": [
"1",
"2",
"3",
"4"
],
"matchedCustomFields": [
"1",
"3"
],
"LastUpdatedUtc": "time_last_updated", //datetime_UTC yyyy-MM-ddThh:mm:ss.SSSZ
"InternalTalkTime": "duration_of_internal_speaker", //ISO 8601 duration
"ExternalTalkTime": "duration_of_external_speaker", //ISO 8601 duration
"SilenceTime": "silence_during_call", //ISO 8601 duration
"StartSilenceTime": "silence_at_start", //ISO 8601 duration
"EndSilenceTime": "silence_at_end", //ISO 8601 duration
"silencePercent": "overall_silence_percent",
"internalTalkPercent": "percent_of_internal_speaker",
"externalTalkPercent": "percent_of_external_speaker",
"genAiSummary": "ai_summary",
"genAiSections": [
{
"summary": "section_summary",
"title": "section_title",
"startMs": 0,
"endMs": 0
}
],
"genAiQuestions": [
{
"displayName": "question_name",
"answer": "question_answer",
"questionId": "genaiq/1",
"fieldType": "Text" //Text/String
}
]
}