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 NameData TypeDescription
callIdStringThe Call ID or Flow ID (if the interaction is a Flow CallType).
sessionIdStringThe session ID from the originating audio ingestion system; can be used to cross-reference this call with other systems using this ID.
callUriStringThe URI to the interaction. Accepts a “transcript” query string with a time value in milliseconds.
For example: https://{your-domain}/calls/bbqfdedfow?transcript=15610
utcStartDateTimeThe start time of the interaction in UTC time.
utcEndDateTimeThe end time of the interaction in UTC time.
durationDuration
(ISO 8601)
The duration of the call.
audioDurationDuration
(ISO 8601)
The duration of the mixed audio file for this call.
callDisplayNameStringThe display name for the call based on its call groups. Comma separated.
callGroupsJSON arrayDetails about the call groups assigned to this call.
callMetadataJSON blobContains all metadata sent along with the interaction from the originating audio ingestion system. Not included when sending to analytical systems (such as Power BI).
classificationsJSON arrayAny classification associated to a call, not specific to any participant.
textHitsJSON arrayAny custom text field category hits associated to the interaction.
participantsJSON arrayThe participants that took part in the interaction; typically, these are an agent and a customer (but can also include chat bots).
directionStringThe 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).
masterCallIdStringA call ID that may be shared between one or more calls, that stitched together represent one call (composite call).
languageStringThe three-letter language code (ISO 639-3 Alpha-3 Code) the interaction is most likely to contain.
countryStringThe three-letter country code (ISO 3166 Alpha-3 Code) of the dialect most likely spoken on the interaction.
hadDiarizationBooleanThe call had diarization run on the audio (i.e., the call was mono and was split into multiple audio streams, one for each participant).
callTypeStringThe call type, which will be Flow if it is a composite call or case.
flowsJSON arrayContains a list of all segments of a split interaction, i.e. all composite parts.
customTextsTextCustom fields with data type as text.
customStringsStringCustom fields with data type as string.
customLongsLongCustom fields with data type as long integer.
customDoublesDoubleCustom fields with data type as double floating integer.
customDateTimesDateTimeCustom fields with data type as DateTime.
evaluatedCustomFieldsJSON arrayIDs of evaluated custom fields.
matchedCustomFieldsJSON arrayIDs of matched custom fields, i.e. those that have content.
lastUpdatedUtcDateTimeTime last updated.
internalTalkTimeDuration
(ISO 8601)
Duration of internal speaker.
externalTalkTimeDuration
(ISO 8601)
Duration of external speaker.
silenceTimeDuration
(ISO 8601)
Total silence time during the interaction.
startSilenceTimeDuration
(ISO 8601)
Silence duration at start of interaction.
endSilenceTimeDuration
(ISO 8601)
Silence duration at end of interaction.
silencePercentDoubleTotal silence percent during the interaction.
internalTalkPercentDoubleTotal percent of internal speaker.
externalTalkPercentDoubleTotal percent of external speaker.
transcriptConfidenceIntTotal confidence of transcription accuracy (score out of 100, 100 being most confident).
genAiSummaryTextSummary of the interaction, generated by AI.
genAiSectionsJSON arraySections of the interaction generated by AI.
genAiQuestionsJSON arrayAI responses to custom questions.

callGroups

Key NameData TypeDescription
idStringCall group ID.
displayNameStringCall group display name.
typeStringCall group type (e.g., Division, Location, Team, Skill, Campaign).

customTexts

Key NameData TypeDescription
valueTextCustom field text.
idStringCustom field ID.
displayNameStringCustom field text display name.

customStrings

Key NameData TypeDescription
valueStringCustom field string.
idStringCustom field ID.
displayNameStringCustom field string display name.

customLongs

Key NameData TypeDescription
valueLongCustom field long integer.
idStringCustom field ID.
displayNameStringCustom field long integer display name.

customDoubles

Key NameData TypeDescription
valueDoubleCustom field double floating integer.
idStringCustom field ID.
displayNameStringCustom field double floating integer display name.

customDateTimes

Key NameData TypeDescription
valueDateTimeCustom field DateTime.
idStringCustom field ID.
displayNameStringCustom field DateTime display name.

flows

Key NameData TypeDescription
flowIdStringFlow ID.
flowTypeIdStringFlow type ID.

classifications

Key NameData TypeDescription
idStringID for each classification.
categoryTypeStringRepresents the subsystem in CI that assigns the call classification.
categoryIdStringCategory ID from the given subsystem (categoryType) in CI that assigned the classification. Unique per categoryType.
displayNameStringUser-friendly display name of the classification.
valueDoubleNumerical value of the classification based on the categoryType.
isOverriddenBooleanIndicates if the classification value has been overridden.
missedBooleanIndicates if the classification was required but not hit.
contentStringAppropriate content of the classification.
fromFlowBooleanIndicating if the classification came from a flow.

Example Categories

JSON ContentDescription
{
    "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 NameData TypeDescription
idStringID for each custom text hit.
categoryTypeStringRepresents the subsystem in CI that assigns the call custom text hit.
categoryIdStringCategory ID from the given subsystem (categoryType) in CI that assigned the custom text hit. Unique per categoryType.
customFieldIdStringID of the custom field that was hit.
startIdxIntThe start character of the custom text field value that was hit.
endIdxIntThe end character of the custom text field value that was hit.
valueDoubleNumerical value of the custom text hit based on the categoryType.
displayNameStringUser-friendly display name of the custom text hit.
contentStringAppropriate content of the custom text hit.

participants

Key NameData TypeDescription
participantIdIntID for the participant in CI.
refTypeStringThe type for the external reference ID stored in RefId for this participant, e.g. Agent or Customer.
refIdStringThe external reference ID corresponding to the system specified in the RefType field.
contactIdStringThe unique ID given to this participant from the originating audio ingestion system.
phoneNumberStringThe phone number from the Caller ID for each participant.
firstNameStringThe first name of the participant (if available).
lastNameStringThe last name of the participant (if available).
displayNameStringUser-friendly display name of the participant (generated from other fields).
isInternalBooleanIndicating 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).
segmentsJSON arrayThe different elements CI detected on an interaction for each participant; like classifications.
utterancesJSON arrayThe utterances and the words from this participant if provided.

segments

Key NameData TypeDescription
idStringID for each segment.
categoryTypeStringRepresents the subsystem in CI that assigns the call segment.
categoryIdStringCategory ID from the given subsystem (categoryType) in CI that assigned the segment. Unique per categoryType.
displayNameStringUser-friendly segment name.
startMsLongSegment start time in milliseconds.
endMsLongSegment end time in milliseconds.
utcStartDateTimeThe start time of the segment in UTC time.
utcEndDateTimeThe end time of the segment in UTC time.
valueDoubleNumerical value of the segment based on the categoryType.
contentTextWhere appropriate, the part of the transcript that triggered the segments.
fromFlowBooleanIndicating if the segment came from a flow.

Example Categories

JSON ContentDescription
{
"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 NameData TypeDescription
startMsLongUtterance start time in milliseconds.
endMsLongUtterance end time in milliseconds.
startUtcDateTimeThe start time of the utterance in UTC time.
endUtcDateTimeThe end time of the utterance in UTC time.
wordsJSON arrayUtterance words spoken.
textTextUtterance raw text.

words*

Key NameData TypeDescription
startMsLongWord start time in milliseconds.
endMsLongWord end time in milliseconds.
contentStringIndividual word spoken.
confidenceDoubleTotal confidence of transcription accuracy (score out of 100, 100 being most confident).

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
    }
  ]
}

Was this article helpful?