当前位置:   article > 正文

ai电销机器人系统搭建开发-通话模块_ai外呼机器人系统搭建

ai外呼机器人系统搭建

通话相关
某任务的通话记录列表
接口:POST v1/task/query_done_task_phones
data
参数 类型 示例 解释 required
task_id string 1bcecc13-e873-4910-913c-d9246a891280 外呼任务的id yes
page int 1 页码 yes
id string b1e91cb9-597cc-a5d25c339a99 通话记录的id no
levels array [[0, 100], [100, 500]] 评分等级对应的评分区间 no
keyword string 18651683344 被叫号码 no
bills array [0, 200] 通话时间(秒) no
rounds array [0, 5] 交互次数 no
tags array [1bcecc13-e873-499c-913c-d9246a898180] 标签的id no
start_at string 2019-05-23 23:59:59 开始时间 no
end_at string 2019-05-23 23:59:59 结束时间 no
返回

  1. {
  2. "data": [{ // 通话记录列表
  3. "tags": [ // 本次通话被打上的子标签列表
  4. {
  5. "id": "ee109a20-6b98-4463-94fe-ea730e2188c7", // 子标签id
  6. "name": "脏话", // 子标签名称
  7. "description": "脏话",
  8. "color": "#2d8cf0", // 子标签颜色
  9. "user_id": "4d99d91c-f5d9-49da-88da-758977cc58a9",
  10. "status": true, // 子标签状态
  11. "created_at": "2020-03-06 21:55:56",
  12. "updated_at": "2020-03-06 21:55:56",
  13. "pivot": { // 子标签 - 母标签 的关联关系记录
  14. "taggable_id": "80599bfe-7027-412f-adec-1f24075219ca",
  15. "tag_id": "ee109a20-6b98-4463-94fe-ea730e2188c7",
  16. "created_at": "2020-03-06 22:32:37",
  17. "updated_at": "2020-03-06 22:32:37"
  18. },
  19. "tag_groups": [ // 此标签属于的母标签
  20. {
  21. "id": "fbe408c5-f77f-49cd-9bd1-85ca0b434bcc",
  22. "user_id": "4d99d91c-f5d9-49da-88da-758977cc58a9",
  23. "name": "无意向",
  24. "created_at": "2020-03-06 21:54:58",
  25. "updated_at": "2020-03-06 21:54:58",
  26. "tag_scene_id": "a13ad9cb-d9be-4498-bfe3-cd32c677f0dd" // 母标签属于的业务场景
  27. }
  28. ]
  29. }
  30. ],
  31. "tag_groups": [ // 命中的母标签列表
  32. {
  33. "id": "f7eba8dd-3721-4e15-b197-6b0c16639eec",
  34. "user_id": "4d99d91c-f5d9-49da-88da-758977cc58a9",
  35. "name": "有意向",
  36. "created_at": "2020-03-06 21:54:51",
  37. "updated_at": "2020-03-06 21:54:51",
  38. "tag_scene_id": "a13ad9cb-d9be-4498-bfe3-cd32c677f0dd"
  39. },
  40. {
  41. "id": "f7eba8dd-3721-4e15-b197-6b0c16639eec",
  42. "user_id": "4d99d91c-f5d9-49da-88da-758977cc58a9",
  43. "name": "有意向",
  44. "created_at": "2020-03-06 21:54:51",
  45. "updated_at": "2020-03-06 21:54:51",
  46. "tag_scene_id": "a13ad9cb-d9be-4498-bfe3-cd32c677f0dd",
  47. },
  48. {
  49. "id": "fbe408c5-f77f-49cd-9bd1-85ca0b434bcc",
  50. "user_id": "4d99d91c-f5d9-49da-88da-758977cc58a9",
  51. "name": "无意向",
  52. "created_at": "2020-03-06 21:54:58",
  53. "updated_at": "2020-03-06 21:54:58",
  54. "tag_scene_id": "a13ad9cb-d9be-4498-bfe3-cd32c677f0dd"
  55. },
  56. ],
  57. "operator_name": "联通", // 运营商
  58. "id": "6d44d2f4-90f9-4621-8c77-e5e70c810623", // 本次通话记录的id
  59. "task_id": "234cdcac-501c-47b5-9c06-47a658f363b8",// 任务id
  60. "group_id": 299, // 话术组id
  61. "callid": "d6a577d4-7180-11e9-80bd-7fed30fcff3f",
  62. "score": 0, // 通话得分
  63. "callee": "18810495721", // 被叫号码
  64. "caller_number": "300708", // 主叫号码
  65. "duration": 60080,
  66. "error_code": 0,
  67. "gender": 1, // 性别
  68. "level_id": "e605e0b0-96b2-4af0-9b78-7cdd5fc6b783",
  69. "calldate": "2019-05-08 19:02:58",
  70. "bill": 31319, // 通话时间ms
  71. "hangupcause": "NORMAL_CLEARING",
  72. "hangupdate": "2019-05-08 19:03:58",
  73. "answerdate": "2019-05-08 19:03:26",
  74. "recordfile": "/mnt/smartivr/recordings/2019-05-08/18810495721.299.19-03-27.d6a577d4-7180-11e9-80bd-7fed30fcff3f.wav", // 全程通话录音在硬盘里的位置
  75. "bridge_callid": null,
  76. "bridge_number": null,
  77. "bridge_calldate": null,
  78. "bridge_answerdate": null,
  79. "hangup_disposition": 1, // 挂断方
  80. "created_at": "2019-05-08 19:03:27",
  81. "updated_at": "2019-05-08 19:03:59",
  82. "rounds": 0, // 通话轮数
  83. "level_name": "D级(无意向)",
  84. "bredge_number": null,
  85. "read_at": "2020-03-06 23:06:46", // 查看时间
  86. "province_id": 3, // 省id
  87. "city_id": 12, // 市id
  88. "operator": 2, // 运营商
  89. "level": { // score对应评分等级
  90. "id": "e605e0b0-96b2-4af0-9b78-7cdd5fc6b783",
  91. "name": "D级",
  92. "alias": "无意向",
  93. "color": "#000"
  94. },
  95. "gender_str": "未知", // 性别
  96. "hangup_disposition_str": "AI", // 挂断方
  97. "city": { // 被叫号码的归属地
  98. id: 12
  99. pid: 3
  100. city: "南京"
  101. area_code: "025"
  102. post_code: "210000"
  103. created_at: "2019-05-09 09:08:45"
  104. updated_at: "2019-05-09 09:08:45"
  105. },
  106. "province": {// 被叫号码的归属地
  107. "id": 3,
  108. "pid": null,
  109. "city": "江苏",
  110. "area_code": "0519",
  111. "post_code": "213000",
  112. "created_at": "2019-05-09 09:08:45",
  113. "updated_at": "2019-05-09 09:08:45"
  114. },
  115. }],
  116. "total": 1, // 总计多少条数据
  117. "last_page": 1 // 总计多少页(每页15条)
  118. }

字段说明 1.评分等级需要自己请求,接口在其他中; 2.标签需要自己请求,接口在其他中;

某任务的电话号码
接口:GET v1/task/number
params
参数 类型 示例 解释 required
task_id string 1bcecc13-e873-4910-913c-d9246a891280 外呼任务的id yes
page int 1 页码 yes
status array [0 ,1] 号码的状态 no
keyword string 18651683344 被叫号码 no
type array [‘lt’, ‘dx’, ‘yd’] 运营商 no
call_history int 1 是否要呼叫记录[不传或者传0为不要] No
status:

0等待呼叫、1呼叫成功、2线路故障、3拒接、4无应答/无人接听、5空号、6关机、7停机、8占线/用户正忙、9呼入限制、10欠费、11黑名单、12呼损

返回
 

  1. {
  2. "code": 200,
  3. "status": "ok",
  4. "message": "获取号码列表成功",
  5. "data": {
  6. "data": [
  7. {
  8. "number": "18651683344", // 被叫号码
  9. "city": "南京", // 号码地区
  10. "pro": "江苏", // 号码地区
  11. "mobile_type": "联通", // 号码运营商
  12. "area_code": "025",
  13. "post_code": "210000",
  14. "id": 1691,
  15. "status_str": "呼叫成功", // 被叫号码状态
  16. "callid": "90a48ed3-a5f6-4904-b1f3-a9ec883b069f",
  17. "calldate": "2020-03-06 23:04:37",
  18. "bill": 26638,
  19. "duration": 35639,
  20. "hangupcause": "NORMAL_CLEARING",
  21. "hangupdate": "2020-03-06 23:05:12",
  22. "answerdate": "2020-03-06 23:04:46",
  23. "is_blacklist": false, // 是否在黑名单中
  24. "status": 1, // 被叫号码状态
  25. "call_history": [ // 呼叫记录,call_history不传或者为0没有这个字段
  26. {
  27. "id": 356036, // auto_call_histories表里对应的id
  28. "user_id": "4d99d91c-f5d9-49da-88da-758977cc58a9",
  29. "task_id": "772dd881-dcf7-42ee-a32b-b40a0ee5afb7", // 任务id
  30. "call_id": "90a48ed3-a5f6-4904-b1f3-a9ec883b069f",
  31. "number_id": 1691,
  32. "number": "18651683344",
  33. "call_time": "2020-03-06 23:04:37", // 呼叫时间
  34. "duration": 35639,
  35. "hangup_cause": "NORMAL_CLEARING",
  36. "hangup_code": "200",
  37. "bill": 26638,
  38. "call_status": "answer",
  39. "status": 1, // 呼叫状态
  40. "record_file": "/mnt/smartivr/recordings/2020-03-06/18651683344.90a48ed3-a5f6-4904-b1f3-a9ec883b069f.wav", // 全程录音地址,没接通为null
  41. "calling_number": "17361984317",
  42. "province_id": 3,
  43. "city_id": 12,
  44. "operator": 2,
  45. "created_at": "2020-03-06 23:05:14",
  46. "updated_at": "2020-03-06 23:05:14",
  47. "status_str": "呼叫成功",
  48. },
  49. {
  50. "id": 354060,
  51. "user_id": "4d99d91c-f5d9-49da-88da-758977cc58a9",
  52. "task_id": "772dd881-dcf7-42ee-a32b-b40a0ee5afb7",
  53. "call_id": "1569523c-d3d3-48fd-97a0-ad88d6606a19",
  54. "number_id": 1691,
  55. "number": "18651683344",
  56. "call_time": "2020-03-04 20:50:36",
  57. "duration": 13339,
  58. "hangup_cause": "NORMAL_CLEARING",
  59. "hangup_code": null,
  60. "bill": 0,
  61. "call_status": "busy now",
  62. "status": 8,
  63. "record_file": null,
  64. "calling_number": "17361984317",
  65. "province_id": 3,
  66. "city_id": 12,
  67. "operator": 2,
  68. "created_at": "2020-03-04 20:50:50",
  69. "updated_at": "2020-03-04 20:50:50",
  70. "status_str": "占线、用户正忙",
  71. }
  72. ]
  73. }
  74. ],
  75. "total": 1, // 总计多少条数据
  76. "last_page": 1 // 总计多少页(每页15条)
  77. }
  78. }

查询某通通话简要信息【可用来查询任务ID】
接口:GET v1/record/{record_id}
返回

  1. {
  2. "records": [{ // 主要通话内容
  3. "id": "1c1ba3e3-83a4-4b7d-91b3-006abd3ff7bd",
  4. "record_id": "9c736f53-0c1b-4047-b30a-dd87d2968541",
  5. "task_id": "840a4346-d0ac-4800-9c73-3d06275a9158",
  6. "notify": "enter", // 需要过滤掉'notify''asrprogress_notify'
  7. "callid": "281db55e-64e8-11e9-9bb2-3564eb72c846",
  8. "error_code": 0,
  9. "asrtype": null,
  10. "callee": "18651683344",
  11. "gender": null, // 性别
  12. "asr_elapse": null,
  13. "record_ms": null,
  14. "volume_gain": null,
  15. "question": "", // 用户说的话
  16. "question_index": 0,
  17. "speak_ms": 0,
  18. "play_ms": 0,
  19. "keyword": "",
  20. "answer_id": "e0b4bfc6-e87d-4e1f-af24-d44c10a5bd0a",
  21. "answer_text": "流程1",
  22. "word_class": "16",
  23. "score": 0, // 此次通话的得分
  24. "sequence": 1,
  25. "created_at": "2019-04-22 18:19:55",
  26. "updated_at": "2019-04-22 18:19:55",
  27. "bridge_status": null,
  28. "answer_content": "同学,您好,我是沪江网校的工作人员,来电是因为了解到您之前关注过英文学习方面,想借用您几分钟时间做个简单的小回访,希望在英文学习上给您带来帮助\n普通文本,没有变量\n罗文龙先生", // 话术包含的内容(会转化姓名等变量),机器人说的话(一般显示这个就可以了)
  29. "contents": [{ // 设计话术的原始数组
  30. "id": "d2b32d5d-4b05-4b51-91ae-40da779123ab",
  31. "file_id": "bf4d6a59-1a37-4ad8-a616-edcc5a9fd813", // 上传录音的ID
  32. "sort": 0, // 在当前话术里的排序
  33. "status": true, // 是否启用
  34. "translate_text": "同学,您好,我是沪江网校的工作人员,来电是因为了解到您之前关注过英文学习方面,想借用您几分钟时间做个简单的小回访,希望在英文学习上给您带来帮助",
  35. "wav_second": 15 // 录音长度(秒)
  36. }],
  37. "tags": [ // 此轮对话被贴上的标签
  38. {
  39. "id": "4c318fbd-834f-4b41-bfbe-a631e5422812", // 标签id
  40. "name": "承认发布", // 标签名称
  41. "description": "承认发布", // 标签描述
  42. "color": "#2DF0D0", // 标签颜色
  43. "user_id": "6cd3c09b-926d-4282-9470-946cd336e44a",
  44. "status": true,
  45. "created_at": "2020-01-16 11:07:13",
  46. "updated_at": "2020-01-17 11:13:46",
  47. "pivot": {
  48. "taggable_id": "1336fc81-9f19-4d64-890f-9aaa5f70b52e",
  49. "tag_id": "4c318fbd-834f-4b41-bfbe-a631e5422812",
  50. "created_at": "2020-02-16 12:21:17",
  51. "updated_at": "2020-02-16 12:21:17"
  52. },
  53. "tag_group": [ // 所属母标签列表
  54. {
  55. "id": 1, // 母标签id
  56. "user_id": "6cd3c09b-926d-4282-9470-946cd336e44a",
  57. "name": "弱意向", // 母标签名
  58. "created_at": "2019-12-17 21:14:57",
  59. "updated_at": "2019-12-17 21:14:57",
  60. "tag_scene_id": "ad2c92fe-f993-47d6-9e86-f73a5511dcae" // 业务场景id
  61. },
  62. ]
  63. }
  64. ] // 触发的标签
  65. }, {
  66. "id": "e68f7a65-f98e-4c12-ab1c-a8bc2071b02f", // 通话记录详情的ID,一个通话记录包含多个通话详情
  67. "record_id": "9c736f53-0c1b-4047-b30a-dd87d2968541", // 通话记录的ID
  68. "task_id": "840a4346-d0ac-4800-9c73-3d06275a9158",
  69. "notify": "asrprogress_notify", // 此类型为过程性录音,不需要展示
  70. "callid": "281db55e-64e8-11e9-9bb2-3564eb72c846",
  71. "error_code": 0,
  72. "asrtype": "aliyun", // 使用的asr引擎
  73. "callee": "18651683344", // 被叫号码
  74. "gender": 2,
  75. "asr_elapse": 841,
  76. "record_ms": 1690,
  77. "volume_gain": 8.040982,
  78. "question": "啊", // 接听人说的话
  79. "question_index": 1,
  80. "speak_ms": 0,
  81. "play_ms": 740,
  82. "keyword": null, // 接听人触发的关键词
  83. "answer_id": null,
  84. "answer_text": null,
  85. "word_class": null,
  86. "score": 0, // 这轮通话的得分
  87. "sequence": 2,
  88. "created_at": "2019-04-22 18:19:58",
  89. "updated_at": "2019-04-22 18:19:58",
  90. "bridge_status": null, // 是否是转接后,1是转接后,null为不是
  91. "answer_content": null,
  92. "contents": [],
  93. "tags": []
  94. }, {
  95. "id": "8a6436b0-5b41-4dc8-bb4d-7e5451ecf5eb",
  96. "record_id": "9c736f53-0c1b-4047-b30a-dd87d2968541",
  97. "task_id": "840a4346-d0ac-4800-9c73-3d06275a9158",
  98. "notify": "asrmessage_notify",
  99. "callid": "281db55e-64e8-11e9-9bb2-3564eb72c846",
  100. "error_code": 0,
  101. "asrtype": null,
  102. "callee": "18651683344",
  103. "gender": null,
  104. "asr_elapse": null,
  105. "record_ms": null,
  106. "volume_gain": null,
  107. "question": "啊",
  108. "question_index": 1,
  109. "speak_ms": 875,
  110. "play_ms": 740,
  111. "keyword": null,
  112. "answer_id": null,
  113. "answer_text": null,
  114. "word_class": null,
  115. "score": 0,
  116. "sequence": 3,
  117. "created_at": "2019-04-22 18:19:58",
  118. "updated_at": "2019-04-22 18:19:58",
  119. "bridge_status": null,
  120. "answer_content": null,
  121. "contents": [],
  122. "tags": []
  123. }, {
  124. "id": "8a0b22f8-a5d2-4fbf-9297-5c79da0dd82d",
  125. "record_id": "9c736f53-0c1b-4047-b30a-dd87d2968541",
  126. "task_id": "840a4346-d0ac-4800-9c73-3d06275a9158",
  127. "notify": "asrprogress_notify",
  128. "callid": "281db55e-64e8-11e9-9bb2-3564eb72c846",
  129. "error_code": 0,
  130. "asrtype": "aliyun",
  131. "callee": "13530525008",
  132. "gender": 2,
  133. "asr_elapse": 909,
  134. "record_ms": 2210,
  135. "volume_gain": 6.721436,
  136. "question": "不再见,再见。",
  137. "question_index": 2,
  138. "speak_ms": 0,
  139. "play_ms": 3280,
  140. "keyword": null,
  141. "answer_id": null,
  142. "answer_text": null,
  143. "word_class": null,
  144. "score": 0,
  145. "sequence": 4,
  146. "created_at": "2019-04-22 18:20:01",
  147. "updated_at": "2019-04-22 18:20:01",
  148. "bridge_status": null,
  149. "answer_content": null,
  150. "contents": [],
  151. "tags": []
  152. }, {
  153. "id": "118d691e-5a80-42f2-8ad8-40e34bc9b321",
  154. "record_id": "9c736f53-0c1b-4047-b30a-dd87d2968541",
  155. "task_id": "840a4346-d0ac-4800-9c73-3d06275a9158",
  156. "notify": "asrmessage_notify",
  157. "callid": "281db55e-64e8-11e9-9bb2-3564eb72c846",
  158. "error_code": 0,
  159. "asrtype": null,
  160. "callee": "18651683344",
  161. "gender": null,
  162. "asr_elapse": null,
  163. "record_ms": null,
  164. "volume_gain": null,
  165. "question": "不再见,再见。",
  166. "question_index": 2,
  167. "speak_ms": 1395,
  168. "play_ms": 3280,
  169. "keyword": "再见",
  170. "answer_id": "15d1230b-9820-4662-9aa2-e2003176efb0",
  171. "answer_text": "普适结束语",
  172. "word_class": "1",
  173. "score": 0,
  174. "sequence": 5,
  175. "created_at": "2019-04-22 18:20:02",
  176. "updated_at": "2019-04-22 18:20:02",
  177. "bridge_status": null,
  178. "answer_content": "感谢您的接听,我就打扰您了,祝您生活愉快,再见",
  179. "contents": [{
  180. "id": "591c75c5-bba3-428a-940a-1828d68695bd",
  181. "file_id": "6e1c0b72-407e-499f-9474-88aaa32f45ac",
  182. "sort": 0,
  183. "status": true,
  184. "translate_text": "感谢您的接听,我就打扰您了,祝您生活愉快,再见",
  185. "wav_second": 3.577875
  186. }],
  187. "tags": []
  188. }],
  189. "is_intervene_bridge": false, // 是否被转接
  190. "is_intervene_hangup": false, // 是否被强制挂断
  191. "intervene_number": [{ // 可转接号码
  192. "id": 2,
  193. "name": "罗文龙",
  194. "number": "18651683***"
  195. }, {
  196. "id": 5,
  197. "name": "wjx",
  198. "number": "18262625***"
  199. }, {
  200. "id": 6,
  201. "name": "test",
  202. "number": "18751553***"
  203. }],
  204. "is_crm_exists": true, // 是否在CRM中存在此号码的数据
  205. "info": {
  206. "record": { // 整通通话详情
  207. "id": "9c736f53-0c1b-4047-b30a-dd87d2968541",
  208. "task_id": "840a4346-d0ac-4800-9c73-3d06275a9158", // 所在任务
  209. "group_id": 297, // 使用话术分组
  210. "callid": "281db55e-64e8-11e9-9bb2-3564eb72c846",
  211. "score": 0, // 总体得分
  212. "callee": "18651683344", // 被叫号码
  213. "caller_number": "17361984317",
  214. "duration": 17600,
  215. "error_code": 0,
  216. "gender": 2, // 性别0未知、1女、2男、3疑似女、4疑似男
  217. "level_id": "e605e0b0-96b2-4af0-9b78-7cdd5fc6b783",
  218. "calldate": "2019-04-22 18:19:47",
  219. "bill": 10120, // 通话时长ms
  220. "hangupcause": "NORMAL_CLEARING",
  221. "hangupdate": "2019-04-22 18:20:05",
  222. "answerdate": "2019-04-22 18:19:55",
  223. "recordfile": "/mnt/smartivr/recordings/2019-04-22/18651683344.297.18-19-55.281db55e-64e8-11e9-9bb2-3564eb72c846.wav",
  224. "bridge_callid": null,
  225. "bridge_number": null,
  226. "bridge_calldate": null,
  227. "bridge_answerdate": null,
  228. "hangup_disposition": 1, //谁先挂断电话,机器人1,客户2
  229. "created_at": "2019-04-22 18:19:55",
  230. "updated_at": "2019-04-22 18:20:07",
  231. "rounds": 2, // 进行了几轮对话
  232. "level_name": "D级(无意向)", // 等级名称
  233. "bredge_number": null,
  234. "gender_str": "男", // 性别
  235. "hangup_disposition_str": "AI", //谁先挂断电话
  236. "level": { // 对应等级
  237. "id": "e605e0b0-96b2-4af0-9b78-7cdd5fc6b783",
  238. "name": "D级",
  239. "alias": "无意向",
  240. "color": "#000"
  241. },
  242. "crm_number": {
  243. "id": "61d03681-04a2-4a81-97e9-f37825dfbfe9",
  244. "user_id": "4d99d91c-f5d9-49da-88da-758977cc58a9",
  245. "number": "18651683344",
  246. "deleted_at": null,
  247. "created_at": "2019-04-10 19:24:05",
  248. "updated_at": "2019-04-10 19:24:05"
  249. }
  250. },
  251. "task": { // 所在任务详情
  252. "uuid": "840a4346-d0ac-4800-9c73-3d06275a9158",
  253. "name": "教育测试2",
  254. "create_datetime": "2018-12-20 16:43:21",
  255. "alter_datetime": "2019-05-15 19:25:06",
  256. "start": 0,
  257. "maximumcall": 1,
  258. "call_per_second": 10,
  259. "recycle_limit": 1,
  260. "random_assignment_number": 0,
  261. "disable_dial_timegroup": null,
  262. "destination_extension": 297,
  263. "destination_dialplan": "XML",
  264. "destination_context": "default",
  265. "scheduling_policy_ratio": null,
  266. "scheduling_queue": null,
  267. "dial_format": "",
  268. "domain": null,
  269. "remark": null,
  270. "sort": 2,
  271. "originate_variables": "{execute_on_media=start_da2}",
  272. "_originate_timeout": 60,
  273. "_origination_caller_id_number": "300708",
  274. "user_id": "4d99d91c-f5d9-49da-88da-758977cc58a9",
  275. "caller_line_id": null,
  276. "customer_service_id": null,
  277. "call_notify_url": "http://127.0.0.1:81/api/hangup_notify",
  278. "call_notify_type": 2,
  279. "start_str": "暂停",
  280. "group_str": "电销系统测试",
  281. "progress_bar": { // 任务进度 [弃用]
  282. "total": 3,
  283. "progress": 3,
  284. "percent": 100
  285. },
  286. "group": {
  287. "id": 297,
  288. "name": "电销系统测试",
  289. "user_id": "4d99d91c-f5d9-49da-88da-758977cc58a9",
  290. "debug": false,
  291. "deleted_at": null,
  292. "created_at": "2018-12-15 18:46:41",
  293. "updated_at": "2019-04-08 17:09:43",
  294. "link_word_group_id": "1",
  295. "tag_scene_id": "a13ad9cb-d9be-4498-bfe3-cd32c677f0dd",
  296. "default": false
  297. }
  298. }
  299. },
  300. "mobile_info": { // 电话归属地等信息
  301. "mobile_type": "联通",
  302. "province": "江苏",
  303. "city": "南京"
  304. },
  305. "utterances": [{ // 使用话术组所有主流程
  306. "id": "01f0a962-bee2-4456-a0f0-93725642f746",
  307. "name": "流程2",
  308. "description": "客户身份确认",
  309. "group_id": 297,
  310. "user_id": "4d99d91c-f5d9-49da-88da-758977cc58a9",
  311. "context_id": null,
  312. "priority": 2,
  313. "action": null,
  314. "word_class": 16,
  315. "wait": 4000,
  316. "retry": 0,
  317. "max_retry": 0,
  318. "score": 0,
  319. "play_ms": 3000,
  320. "enquire": true,
  321. "customer_service_id": null,
  322. "identify_type": 4,
  323. "deleted_at": null,
  324. "created_at": "2018-12-15 18:50:04",
  325. "updated_at": "2018-12-15 18:50:04",
  326. "background_file_id": null,
  327. "block_asr": 0,
  328. "word_class_str": "主流程",
  329. "action_str": ""
  330. }, {
  331. "id": "146e883b-24b0-4125-bb8c-99d0413f612b",
  332. "name": "流程5",
  333. "description": "上课准备",
  334. "group_id": 297,
  335. "user_id": "4d99d91c-f5d9-49da-88da-758977cc58a9",
  336. "context_id": null,
  337. "priority": 10,
  338. "action": null,
  339. "word_class": 16,
  340. "wait": 4000,
  341. "retry": 0,
  342. "max_retry": 0,
  343. "score": 50,
  344. "play_ms": 3000,
  345. "enquire": true,
  346. "customer_service_id": null,
  347. "identify_type": 4,
  348. "deleted_at": null,
  349. "created_at": "2018-12-15 18:52:11",
  350. "updated_at": "2018-12-15 18:52:11",
  351. "background_file_id": null,
  352. "block_asr": 0,
  353. "word_class_str": "主流程",
  354. "action_str": ""
  355. }, {
  356. "id": "4f9455ec-3e8b-40e2-a6bc-2fb01d2e2e74",
  357. "name": "流程4",
  358. "description": "活动邀约",
  359. "group_id": 297,
  360. "user_id": "4d99d91c-f5d9-49da-88da-758977cc58a9",
  361. "context_id": null,
  362. "priority": 4,
  363. "action": null,
  364. "word_class": 16,
  365. "wait": 4000,
  366. "retry": 0,
  367. "max_retry": 0,
  368. "score": 50,
  369. "play_ms": 3000,
  370. "enquire": true,
  371. "customer_service_id": null,
  372. "identify_type": 4,
  373. "deleted_at": null,
  374. "created_at": "2018-12-15 18:51:37",
  375. "updated_at": "2018-12-15 18:51:37",
  376. "background_file_id": null,
  377. "block_asr": 0,
  378. "word_class_str": "主流程",
  379. "action_str": ""
  380. }, {
  381. "id": "67f21076-0c67-43d9-b366-e509fd4f076e",
  382. "name": "流程6",
  383. "description": "结束通知",
  384. "group_id": 297,
  385. "user_id": "4d99d91c-f5d9-49da-88da-758977cc58a9",
  386. "context_id": null,
  387. "priority": 10,
  388. "action": null,
  389. "word_class": 16,
  390. "wait": 4000,
  391. "retry": 0,
  392. "max_retry": 0,
  393. "score": 100,
  394. "play_ms": 3000,
  395. "enquire": true,
  396. "customer_service_id": null,
  397. "identify_type": 4,
  398. "deleted_at": null,
  399. "created_at": "2018-12-15 18:52:58",
  400. "updated_at": "2018-12-15 18:52:58",
  401. "background_file_id": null,
  402. "block_asr": 0,
  403. "word_class_str": "主流程",
  404. "action_str": ""
  405. }, {
  406. "id": "a4c1aed5-f28d-4fe8-bdb2-70c29acdac3e",
  407. "name": "流程3",
  408. "description": "客户需求确认",
  409. "group_id": 297,
  410. "user_id": "4d99d91c-f5d9-49da-88da-758977cc58a9",
  411. "context_id": null,
  412. "priority": 3,
  413. "action": null,
  414. "word_class": 16,
  415. "wait": 4000,
  416. "retry": 0,
  417. "max_retry": 0,
  418. "score": 0,
  419. "play_ms": 3000,
  420. "enquire": true,
  421. "customer_service_id": null,
  422. "identify_type": 4,
  423. "deleted_at": null,
  424. "created_at": "2018-12-15 18:50:56",
  425. "updated_at": "2018-12-15 18:50:56",
  426. "background_file_id": null,
  427. "block_asr": 0,
  428. "word_class_str": "主流程",
  429. "action_str": ""
  430. }, {
  431. "id": "e0b4bfc6-e87d-4e1f-af24-d44c10a5bd0a",
  432. "name": "流程1",
  433. "description": "开场白",
  434. "group_id": 297,
  435. "user_id": "4d99d91c-f5d9-49da-88da-758977cc58a9",
  436. "context_id": null,
  437. "priority": 1,
  438. "action": null,
  439. "word_class": 16,
  440. "wait": 4000,
  441. "retry": 0,
  442. "max_retry": 0,
  443. "score": 0,
  444. "play_ms": -1,
  445. "enquire": true,
  446. "customer_service_id": null,
  447. "identify_type": 4,
  448. "deleted_at": null,
  449. "created_at": "2018-12-15 18:49:32",
  450. "updated_at": "2018-12-15 18:49:32",
  451. "background_file_id": null,
  452. "block_asr": 0,
  453. "word_class_str": "主流程",
  454. "action_str": ""
  455. }]
  456. }

 部分字段解释

info.record整端通话的相关数据
info.task通话所在任务的相关数据
intervene_number、is_crm_exists、is_intervene_bridge、is_intervene_hangup用不到
mobile_info手机所在区域、运营商
records每句通话的记录
utterances话术所有主流程
 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/盐析白兔/article/detail/352864
推荐阅读
相关标签
  

闽ICP备14008679号