小记智能体

更新时间:
复制 MD 格式

可以通过轻量消息队列(原MNS)模式订阅离线小记推理结果。

返回参数

名称

类型

描述

call_id

String

呼叫ID

biz_id

String

推理业务ID

out_id

String

扩展字段回传。将调用API时传入的字段返回。

cell_number

String

被叫号码。

success

Boolean

是否推理成功

error_code

String

推理结果:

success: 成功,

NOTE_AGENT_PROCESS_FAIL:推理失败

error_msg

String

推理结果描述

content_length

Integer

推理内容长度

duration

Integer

计费时长,单位:秒。

start_time

String

开始推理时间

report_time

String

推送报告时间

type

String

推理类型:通话质检、通话摘要

result

String

小记推理结果,参考通话质检小记推理结果通话摘要小记推理结果

task_id

String

任务ID:仅通过任务外呼才有。

task_batch_id

String

任务批次ID:仅通过任务外呼才有。

task_detail_id

String

任务明细ID:仅通过任务外呼才有。

通话质检小记推理结果

  • 请求样例:

    [
      {
        "item": "维度1",
        "full_score": 30,
        "score": 27,
        "problem": "具体问题描述",
        "suggestion": "具体改进建议"
      },
      {
        "item": "维度2",
        "full_score": 70,
        "score": 65,
        "problem": "具体问题描述",
        "suggestion": "具体改进建议"
      }
    ]
  • 字段说明:

    名称

    类型

    描述

    item

    String

    质检项目或维度

    full_score

    Integer

    该质检项目的总分

    score

    Integer

    该质检项目的得分

    problem

    String

    问题描述

    suggestion

    String

    改进建议

通话摘要小记推理结果

  • 请求样例:

    {
      "枚举型标签1": ["取值1"],
      "枚举型标签2": ["取值2.1", "取值2.2"],
      "文本型标签1": "内容1",
      "文本型标签2": "内容2"
    }

录音小记回执消息

录音小记处理完成后,系统通过 MNS 推送回执。

说明

受限于阿里云轻量消息队列(原 MNS)消息大小限制,回执消息体内容不得超过 48 KB。

如某条通话的对话记录文本大小超过 45 KB(约 8000 字符,对应时长 30 min 左右的通话音频),仍可收到该条通话的小记回执消息和小记结果,但消息中的对话记录字段将被丢弃。

回执字段

字段名

JSON 类型

说明

call_id

String

录音小记任务唯一标识。

biz_id

String

客户业务标识。提交任务时未传入时,返回值与 call_id 相同。

success

Boolean

小记处理是否成功。

error_code

String

结果码。成功时为 success,失败时为具体错误码。

error_msg

String

结果说明。成功时为 success,失败时为具体错误信息。

content_length

Integer

ASR 转写文本长度,不包含标点和空白字符;小记处理失败时为 0。

duration

Long

录音时长,单位为秒。无法获取时不返回该字段。

start_time

String

任务创建时间,格式为 yyyy-MM-dd HH:mm:ss。

report_time

String

回执生成时间,格式为 yyyy-MM-dd HH:mm:ss。

type

String

小记类型,当前取值为通话摘要或通话质检。

result

String

小记推理结果。小记处理失败时不返回该字段。

transcript_content

Array

ASR 转录的对话记录。ASR 转录未成功、结果为空或内容超过回执长度限制时不返回该字段。

transcript_content 元素字段

字段名

JSON 类型

说明

role

String

对话角色。caller 表示主叫,callee 表示被叫。

content

String

该段对话的转写文本。

interval

Array<Number>

该段对话在录音中的时间区间,格式为 [开始时间, 结束时间],单位为秒。

Mock 回执

{
  "call_id": "196758003815628800_196758003815628801",
  "biz_id": "customer-audio-note-202607270001",
  "success": true,
  "error_code": "success",
  "error_msg": "success",
  "content_length": 30,
  "duration": 18,
  "start_time": "2026-07-27 10:30:00",
  "report_time": "2026-07-27 10:30:26",
  "type": "通话摘要",
  "result": "客户同意继续了解服务内容,沟通正常。",
  "transcript_content": [
    {
      "role": "caller",
      "content": "您好,请问现在方便沟通吗?",
      "interval": [0.35, 3.42]
    },
    {
      "role": "callee",
      "content": "可以,请讲。",
      "interval": [4.08, 5.36]
    },
    {
      "role": "caller",
      "content": "好的,我简单介绍一下本次服务内容。",
      "interval": [5.82, 10.76]
    }
  ]
}

未满足返回条件的可选字段会直接省略,不返回 null 占位。