文档中心 > API类目 > CRM猎户座前台

alibaba.crm.call.adaevent.callback (ada外呼回执回调接口)

ada外呼回执回调接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
call_info_map Json 必须 { "acid": "a738361f01d54b4889d5bcb8d877aa87", "answerTimeEnd": 1614564129000, "answerTimeStart": 1614564101000, "bizCode": "AFTER_SALES_SERVICE", "bizTagList": "[{\"bizTag\":\"是否续费\",\"nodeId\":\"gD0qYves\"},{\"bizTag\":\"续费\",\"nodeId\":\"zL7DZ2hn\"}]", "callRequestId": "4005c45117ce42d7a5d", "callResultCode": "106", "callSuccess": true, "dialogue": "[{\"role\":\"system\",\"text\":\"您好, 这里是阿里云售后。。我这边看到您8,6,9开头的阿里云账号下,有1台ECS服务器即将到期。请问,您还需要继续使用吗 ?\",\"timestamp\":1614564101149,\"type\":\"VOICE_INTERACTION\"},{\"role\":\"user\",\"text\":\"需要。\",\"timestamp\":1614564115031,\"type\":\"VOICE_INPUT\"},{\"role\":\"system\",\"text\":\"好的,我看了下是2021年3月14日到期,为了避免因实例到期影响到您的正常使用,请您记得及时续费,好吗?\",\"timestamp\":1614564115279,\"type\":\"VOICE_INTERACTION\"},{\"role\":\"user\",\"text\":\"好的。\",\"timestamp\":1614564126306,\"type\":\"VOICE_INPUT\"},{\"role\":\"system\",\"text\":\"好的,那就先不打扰您了。祝您生活愉快。。。再见\",\"timestamp\":1614564126520,\"type\":\"HANG_UP\"}]", "messageType": "HANG_UP", "modelResult": "[{\"input\":\"需要。\",\"modelId\":95000089,\"nodeDesc\":\"开场\",\"nodeId\":\"gD0qYves\",\"tag\":\"需要\"},{\"input\":\"好的。\",\"modelId\":95000092,\"nodeDesc\":\"需要继续使用\",\"nodeId\":\"zL7DZ2hn\",\"tag\":\"肯定答复\"}]", "numberSetCode": "DEFAULT", "outcallNumber": "057100001356", "phone": "150****7701", "taskCode": "WHRW-20200914001", "tntInstId": "ALIYUN_SERVICE_MVP2"} 外呼参数

响应参数

名称 类型 示例值 描述
res_total Number 0 不需要关注
res_success Boolean true 接口是否调用成功,系统层面
res_values Boolean true 业务逻辑是否正常调用,业务层面
res_error_code String 3001 错误code
res_error_msg String 系统错误 错误描述

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaCrmCallAdaeventCallbackRequest req = new AlibabaCrmCallAdaeventCallbackRequest();
req.setCallInfoMapString("{     \"acid\": \"a738361f01d54b4889d5bcb8d877aa87\",     \"answerTimeEnd\": 1614564129000,     \"answerTimeStart\": 1614564101000,     \"bizCode\": \"AFTER_SALES_SERVICE\",     \"bizTagList\": \"[{\\"bizTag\\":\\"是否续费\\",\\"nodeId\\":\\"gD0qYves\\"},{\\"bizTag\\":\\"续费\\",\\"nodeId\\":\\"zL7DZ2hn\\"}]\",     \"callRequestId\": \"4005c45117ce42d7a5d\",     \"callResultCode\": \"106\",     \"callSuccess\": true,     \"dialogue\": \"[{\\"role\\":\\"system\\",\\"text\\":\\"您好, 这里是阿里云售后。。我这边看到您8,6,9开头的阿里云账号下,有1台ECS服务器即将到期。请问,您还需要继续使用吗 ?\\",\\"timestamp\\":1614564101149,\\"type\\":\\"VOICE_INTERACTION\\"},{\\"role\\":\\"user\\",\\"text\\":\\"需要。\\",\\"timestamp\\":1614564115031,\\"type\\":\\"VOICE_INPUT\\"},{\\"role\\":\\"system\\",\\"text\\":\\"好的,我看了下是2021年3月14日到期,为了避免因实例到期影响到您的正常使用,请您记得及时续费,好吗?\\",\\"timestamp\\":1614564115279,\\"type\\":\\"VOICE_INTERACTION\\"},{\\"role\\":\\"user\\",\\"text\\":\\"好的。\\",\\"timestamp\\":1614564126306,\\"type\\":\\"VOICE_INPUT\\"},{\\"role\\":\\"system\\",\\"text\\":\\"好的,那就先不打扰您了。祝您生活愉快。。。再见\\",\\"timestamp\\":1614564126520,\\"type\\":\\"HANG_UP\\"}]\",     \"messageType\": \"HANG_UP\",     \"modelResult\": \"[{\\"input\\":\\"需要。\\",\\"modelId\\":95000089,\\"nodeDesc\\":\\"开场\\",\\"nodeId\\":\\"gD0qYves\\",\\"tag\\":\\"需要\\"},{\\"input\\":\\"好的。\\",\\"modelId\\":95000092,\\"nodeDesc\\":\\"需要继续使用\\",\\"nodeId\\":\\"zL7DZ2hn\\",\\"tag\\":\\"肯定答复\\"}]\",     \"numberSetCode\": \"DEFAULT\",     \"outcallNumber\": \"057100001356\",     \"phone\": \"150****7701\",     \"taskCode\": \"WHRW-20200914001\",     \"tntInstId\": \"ALIYUN_SERVICE_MVP2\"}");
AlibabaCrmCallAdaeventCallbackResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_crm_call_adaevent_callback_response>
    <res_total>0</res_total>
    <res_success>true</res_success>
    <res_values>true</res_values>
    <res_error_code>3001</res_error_code>
    <res_error_msg>系统错误</res_error_msg>
</alibaba_crm_call_adaevent_callback_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部