logo

Call Record Callback

Callback Body Parameters

ParameterTypeNullableDescription
callIdStringfalseCall identifier
workflowintfalseCall type (1-Incoming, 2-Outbound Direct, 3-Two-way Callback, 4-Auto Outbound)
fromNumberStringfalseCaller number
toNumberStringfalseCallee number
relayNumberStringfalseRelay number
callStartTimedatefalseCall start time (e.g., yyyy-MM-dd HH:mm:ss)
callEndTimedatefalseCall end time (e.g., yyyy-MM-dd HH:mm:ss)
callDurationintfalseTotal call duration (seconds)
callRecordUrlStringtrueCall recording URL
customerProvinceStringtrueCustomer - Province
customerCityStringtrueCustomer - City
routerIdinttrueRouter ID
routerNameStringtrueRouter name
transferAgentFlaginttrueTransfer to agent flag (0-No, 1-Yes)
agentIdStringtrueAgent ID
agentNameStringtrueAgent name
queueIdStringtrueQueue ID
queueNameStringtrueQueue name
robotNamesArraytrueRobot name array (["Dialogue 1", "Dialogue 2"])
labelInfosArraytrueGeneral label array (["Fruit", "Heavy"])
instancesArraytrueDialogue records
instances[].callIdStringtrueCall identifier
instances[].instanceIdinttrueDialogue case identifier
instances[].robotIdinttrueRobot identifier
instances[].robotDefIdinttrueRobot definition identifier
instances[].robotNameStringtrueDialogue name
instances[].dialogueStartTimedatetrueDialogue start time
instances[].dialogueEndTimedatetrueDialogue end time
instances[].dialogueDurationinttrueTotal dialogue duration (seconds)
instances[].dialogueRecordUrlStringtrueDialogue recording URL
instances[].dialogueRoundinttrueDialogue round
instances[].intentionLabelKeyStringtrueIntention label identifier
instances[].intentionLabelNameStringtrueIntention label name
instances[].labelInfoListArraytrueLabel information
instances[].labelInfoList[].nameStringtrueLabel name
instances[].dialogueContentListArraytrueDialogue content
instances[].dialogueContentList[].callIdStringtrueCall identifier
instances[].dialogueContentList[].instanceIdinttrueSession identifier
instances[].dialogueContentList[].robotIdinttrueRobot ID
instances[].dialogueContentList[].robotDefIdinttrueRobot definition ID
instances[].dialogueContentList[].dialogueRoleinttrueDialogue role (1-Robot, 2-User, 9-System)
instances[].dialogueContentList[].dialogueStartTimedatetrueDialogue end time
instances[].dialogueContentList[].dialogueContentStringtrueDialogue content
instances[].dialogueContentList[].dialogueRecordUrlStringtrueDialogue recording URL
instances[].dialogueContentList[].matchTypeinttrueMatched type (1-Question Hit, 2-Answer Branch Hit, 3-Node Repeat, 4-Global Config Hit, 10-No Hit)
instances[].dialogueContentList[].matchResultStringtrueMatch result
instances[].dialogueContentList[].matchNameStringtrueMatch name
variablesArraytrueVariables
variables[].variableNameStringtrueVariable name
variables[].variableValueStringtrueVariable value
intentionLabelKeyStringtrueIntention label identifier
intentionLabelNameStringtrueIntention label name
allRecordUrlArraytrueAll call recordings
allRecordUrl[].recordUrlStringtrueCall recording URL
allRecordUrl[].recordTypeStringtrueCall recording type
adTaskIdinttrueOutbound task ID
adTaskNameStringtrueOutbound task name
contactDetailRelObjecttrueContact information
contactDetailRel.nameStringtrueName
contactDetailRel.mobileStringtrueNumber
contactDetailRel.companyNameStringtrueCompany
contactDetailRel.remarkStringtrueRemark
contactDetailRel.variatesObjecttrueContact variable information
contactDetailRel.variates.keyStringtrueContact variable key
contactDetailRel.variates.typeStringtrueContact variable type
contactDetailRel.variates.valueStringtrueContact variable value
callResultinttrueRing result
calledResultinttrueOutbound result 1-Not connected 2-Connected
agentCallDurationinttrueAgent call duration
hangupCauseStringtrueOutbound failure reason
hangupByinttrueCall hang-up party 1: Customer 2: Agent 3: System 4: IVR 5: External line
customerNumberStringtrueCustomer number
remarkStringtrueRemark
taskContactBatchNameStringtrueContact name
userAnsweredFlaginttrueValid call (0-No, 1-Yes)
userAnsweredCountinttrueUser interaction count
userAnsweredEffectiveCountinttrueUser effective interaction count
isFinalCallinttrueLast call flag 1-Last outbound 0-No

Callback Example

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 522
{
      "callId":"eff790c4-90a5-4453-990c-ff7d4aa30914",
      "workflow":3,
      "fromNumber":"18920765651",
      "toNumber":"05388593211",
      "relayNumber":"05388593191",
      "callStartTime":"2021-05-29 10:23:43",
      "callEndTime":"2021-05-29 10:23:57",
      "callDuration":14,
      "callRecordUrl":"https://tiao.com/7859ff65-0e6a-44e4-4ec2-1052f43f647a/cc_recordings/202105291ff7d4aa30914_eff790c4-90a5-4453-990c-ff7d4aa30914.mp3",
      "customerProvince":"Tianjin",
      "customerCity":"Tianjin",
      "routerId":185,
      "routerName":"210528bbr",
      "transferAgentFlag":0,
      "agentId":null,
      "agentName":null,
      "queueId":null,
      "queueName":null,
      "robotNames":[
          "F Test_English1"
      ],
      "labelInfos":[
         "Satisfied"
      ],
      "variables":[
            {
                "variableName":"2", 
                "variableValue":"Beijing"
            }
            ]
      "instances":[
             {
                 "callId":"eff790c4-90a5-4453-990c-ff7d4aa30914",
                 "instanceId":1622255025121140,
                 "robotId":25233,
                 "robotDefId":30724,
                 "robotName":"F Test_English1",
                 "dialogueStartTime":"2021-05-29 10:23:43",
                 "dialogueEndTime":"2021-05-29 10:23:57",
                 "dialogueDuration":13,
                 "dialogueRecordUrl":null,
                 "dialogueRound":1,
                 "intentionLabelKey":"C",
                 "intentionLabelName":"C-Level (Explicit Refusal)",
                 "labelInfoList":[
                    {"name":"Fruit"}
                 ],
                 "dialogueContentList":[
                     {
                         "callId":"eff790c4-90a5-4453-990c-ff7d4aa30914",
                         "instanceId":1622255025121140,
                         "robotId":25233,
                         "robotDefId":30724,
                         "dialogueRole":1,
                         "dialogueStartTime":"2021-05-29 10:23:43",
                         "dialogueContent":"Many lessons are boring, and he is very tired after doing gym.",
                         "dialogueRecordUrl":null,
                         "matchType":null,
                         "matchResult":"",
                         "matchName":""
                     },
                     {
                         "callId":"eff790c4-90a5-4453-990c-ff7d4aa30914",
                         "instanceId":1622255025121140,
                         "robotId":25233,
                         "robotDefId":30724,
                         "dialogueRole":2,
                         "dialogueStartTime":"2021-05-29 10:23:49",
                         "dialogueContent":"Hmm.",
                         "dialogueRecordUrl":"https://tiao.com/7859ff65-0e6a-44e4-4ec2-1052f43f647a/cc_recordings/202105291ff7d4aa30914_eff790c4-90a5-4453-990c-ff7d4aa30914.mp3",
                         "matchType":9,
                         "matchResult":"Ignore",
                         "matchName":"Ignore"
                     },
                     {
                         "callId":"eff790c4-90a5-4453-990c-ff7d4aa30914",
                         "instanceId":1622255025121140,
                         "robotId":25233,
                         "robotDefId":30724,
                         "dialogueRole":2,
                         "dialogueStartTime":"2021-05-29 10:23:56",
                         "dialogueContent":"It's English.",
                         "dialogueRecordUrl":"https://tiao.com/7859ff65-0e6a-44e4-4ec2-1052f43f647a/cc_recordings/202105291ff7d4aa30914_eff790c4-90a5-4453-990c-ff7d4aa30914.mp3",
                         "matchType":6,
                         "matchResult":"Matched to answer branch: [Default]",
                         "matchName":"Default"
                     }
                 ]
             }
         ]
      "intentionLabelKey":"C",
      "intentionLabelName":"C-Level (Explicit Refusal)",
      "allRecordUrl": [
          {
            "recordUrl": "https://tiao.com/7859ff65-0e6a-44e4-4ec2-1052f43f647a/cc_recordings/202105291ff7d4aa30914_eff790c4-90a5-4453-990c-ff7d4aa30914.mp3",
            "recordType": "ivr"
          }
      ],
      "adTaskId": 1762,
      "adTaskName": "Test Outbound Task",
      "contactDetailRel": {
         "name": "zmh",
         "mobile": "18770915633",
         "companyName": "Wo Feng Technology",
         "remark": "Beautiful in heart and kind",
         "variates": [
            {
               "key": "name",
               "type": "text",
               "value": "zmh"
            },
            {
               "key": "age",
               "type": "number",
               "value": "18"
            }
        ]
      },
     "callResult": 1,
     "calledResult": 1,
     "agentCallDuration": 23,
     "hangupCause": "Customer is busy",
     "hangupBy": 1,
     "customerNumber": 18770915633,
     "remark": "",
     "taskContactBatchName": "Test Contact",
     "userAnsweredFlag":1,
     "userAnsweredCount":2,
     "userAnsweredEffectiveCount":0,
     "isFinalCall" : 1
    }