获取指定callId详情

请求地址

请求参数

参数 类型 是否可空 描述
Timestamp Long false 时间戳(例:当前秒数,1533092860)
Token String false 签名:身份认证签名
AppId String false 租户id
callId String false 通话标识

Token签名计算示例

StringBuilder src = new StringBuilder();
src.append(AppId).append(Timestamp);
String appSecret = "eff790c4-90a5-4453-990c-ff7d4aa30914";
HmacUtils hmacUtils = new HmacUtils(HmacAlgorithms.HMAC_SHA_1, appSecret);
String token = hmacUtils.hmacHex(src.toString());

响应参数

参数 类型 是否可空 描述
succeed boolean false 处理标识(暂不使用)
code String false 返回码
message String false 返回消息
visible boolean false 是否可见(暂不使用)
data Object true 结果
data.callId String false 通话标识
data.workflow int false 电话类型(1呼入2外呼直拨3双向回拨4自动外呼)
data.fromNumber String false 主叫号码
data.toNumber String false 被叫号码
data.relayNumber String false 中继号码
data.callStartTime date false 通话开始时间(例yyyy-MM-dd HH:mm:ss)
data.callEndTime date false 通话结束时间(例yyyy-MM-dd HH:mm:ss)
data.callDuration int false 通话总时长(秒)
data.callRecordUrl String true 通话录音地址
data.customerProvince String true 归属地-省
data.customerCity String true 归属地-市
data.routerId int true 路由id
data.routerName String true 路由名称
data.transferAgentFlag int true 是否转人工坐席(0否1是)
data.agentId String true 坐席ID
data.agentName String true 坐席名称
data.queueId String true 队列ID
data.queueName String true 队列名称
data.robotNames Array true 话术名称数组(["话术1","话术2")
data.labelInfos Array true 普通标签数组(["水果","重"])
data.instances Array true 对话记录
data.instances[].callId String true 通话标识
data.instances[].instanceId int true 话术用例标识
data.instances[].robotId int true 机器人标识
data.instances[].robotDefId int true 机器人def标识
data.instances[].robotName String true 话术名称
data.instances[].dialogueStartTime date true 对话开始时间
data.instances[].dialogueEndTime date true 对话结束时间
data.instances[].dialogueDuration int true 对话总时长(秒)
data.instances[].dialogueRecordUrl String true 对话录音地址
data.instances[].dialogueRound int true 对话轮次
data.instances[].intentionLabelKey String true 意向标签标识
data.instances[].intentionLabelName String true 意向标签名称
data.instances[].labelInfoList Array true 标签信息
data.instances[].labelInfoList[].name String true 标签名称
data.instances[].dialogueContentList Array true 对话内容
data.instances[].dialogueContentList[].callId String true 通话标识
data.instances[].dialogueContentList[].instanceId int true 会话标识
data.instances[].dialogueContentList[].robotId int true 机器人ID
data.instances[].dialogueContentList[].robotDefId int true 机器人定义id
data.instances[].dialogueContentList[].dialogueRole int true 对话角色(1机器人2用户9系统)
data.instances[].dialogueContentList[].dialogueStartTime date true 对话结束时间
data.instances[].dialogueContentList[].dialogueContent String true 对话内容
data.instances[].dialogueContentList[].dialogueRecordUrl String true 对话录音地址
data.instances[].dialogueContentList[].matchType int true 匹配到的类型(1命中问题2命中回答分支3命中节点重复4命中全局配置10未命中)
data.instances[].dialogueContentList[].matchResult String true 匹配结果
data.instances[].dialogueContentList[].matchName String true 匹配名称
data.callResult int true 1客户未接2客户接听3客服接听4客服未接5话机占线6话机离线7客服拒接8客户速挂9客户挂机10排队超时11放弃排队12未选择队列13外线接听14外线未接
data.userAnsweredFlag int true 有效通话(0否1是)
data.userAnsweredCount int true 用户交互次数
data.userAnsweredEffectiveCount int true 用户有效交互次数

请求示例

$ curl 'http://localhost:8080/v1/call-calls/simpleDetail?AppId=ef05710f-1144-4e2a-721c-991bf9df440a&Timestamp=1635933928&Token=232c0a7df5a8852a79b0ce5e08308443ada153e8' -i -X POST -H 'Content-Type: application/json' -d '{
    "callId": "eff790c4-90a5-4453-990c-ff7d4aa30914"
   }'

响应示例

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 522

{
  "succeed":true,
  "code":200,
  "bizCode":"000000",
  "message":"OK",
  "visible":false,
  "data": {
      "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":"天津",
      "customerCity":"天津",
      "routerId":185,
      "routerName":"210528bbr",
      "transferAgentFlag":0,
      "agentId":null,
      "agentName":null,
      "queueId":null,
      "queueName":null,
      "userAnsweredFlag":1,
      "userAnsweredCount":2,
      "userAnsweredEffectiveCount":0,
      "robotNames":[
          "F测试_英文1"
      ],
      "labelInfos":[
         "满意"
     ],
     "instances":[
             {
                 "callId":"eff790c4-90a5-4453-990c-ff7d4aa30914",
                 "instanceId":1622255025121140,
                 "robotId":25233,
                 "robotDefId":30724,
                 "robotName":"F测试_英文1",
                 "dialogueStartTime":"2021-05-29 10:23:43",
                 "dialogueEndTime":"2021-05-29 10:23:57",
                 "dialogueDuration":13,
                 "dialogueRecordUrl":null,
                 "dialogueRound":1,
                 "intentionLabelKey":"C",
                 "intentionLabelName":"C级(明确拒绝)",
                 "labelInfoList":[
                    {"name":"水果"}
                 ],
                 "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":"嗯。",
                         "dialogueRecordUrl":"https://tiao.com/7859ff65-0e6a-44e4-4ec2-1052f43f647a/cc_recordings/202105291ff7d4aa30914_eff790c4-90a5-4453-990c-ff7d4aa30914.mp3",
                         "matchType":9,
                         "matchResult":"忽略",
                         "matchName":"忽略"
                     },
                     {
                         "callId":"eff790c4-90a5-4453-990c-ff7d4aa30914",
                         "instanceId":1622255025121140,
                         "robotId":25233,
                         "robotDefId":30724,
                         "dialogueRole":2,
                         "dialogueStartTime":"2021-05-29 10:23:56",
                         "dialogueContent":"是个英语。",
                         "dialogueRecordUrl":"https://tiao.com/7859ff65-0e6a-44e4-4ec2-1052f43f647a/cc_recordings/202105291ff7d4aa30914_eff790c4-90a5-4453-990c-ff7d4aa30914.mp3",
                         "matchType":6,
                         "matchResult":"匹配到回答分支:【默认】",
                         "matchName":"默认"
                     }
                 ]
             }
         ]
    }
}