Loading... # 齐悟 NLU 接口返回值说明(v0.20) 接入方-齐悟接口对接文档规范说明 updated @ 2020.08.03 [TOC] ## 一、齐悟引擎返回 NLU 语义提取结果的结构 | 功能描述 | 齐悟引擎返回 NLU 语义提取结果的协议 | | -------- | ------------------------------------------------------------ | | Body类型 | application/json | | 字段 | data | ### 1. NLU 语义请求参数 | Key | Type | Value | | ----------- | --------------- | ------------------------------------------------------------ | | search_result_type | Integer | 80201,即NLU返回结果 | | userId | String | 调用对话接口(见下文)时传入的用户 ID | | input | String | 用户输入的话术 | | messageId | String | 用于标识单句话的消息 ID,为对话接口(下文接口)中传递的verify | | serviceId | String (Enum) | 业务代码 | | extraData | JSON | 前端传递给后端的附加数据(无数据时为空 {}) | | slots | Array (NluSlot) | 语义提取内容 | | slots.name | String | nlu 变量名 | | slots.value | String | nlu 变量值 | #### 部分业务代码值 以齐悟产品最新发的表为准 | Enum | 说明 | | ------ | -------- | | NOTICE | 社区公告 | <div style="page-break-after: always;"></div> ### 2. NLU 语义请求示例 ```json { "search_result_type": "80201", "userId":"hak1yc7GK0xtkUrEfNcA", "input":"找个有空位的停车场", "messageId":"xxxxxx", "serviceId":"NLU_CAR_PARK", "extraData": { "nickname": "", "geo[lng]": "123.456", "geo[lat]": "78.910", "extra_order_info": null }, "slots":[ { "name":"search_by_available", "value":"true" }, { "name":"query_text", "value":"找个有空位的停车场" }, { "name":"search_purpose", "value":"true" } ] } ``` Last modification:August 7th, 2020 at 02:21 pm © 禁止转载