云客服-对话交互后接口(inaction=9):请求消息样例

时间:2024-09-24 14:46:24

请求消息样例

{
    "userid": "1528780879-9581",
    "inaction": 9,
    "inparams": {
        "call_id": "1528780879-9581",
        "call_dst_id": "10086", 
        "flow_result_type":"1",
        "input":"帮我查一下我的话费",
        "inter_idx": "1",
        "begin_play": "2018090407:16:24",
        "end_play": "2018090407:16:30",
        "result_time":"2018090407:16:3",
        "inter_no":"0"
    },
   "extparams": {
        "transin_data":"95,22714,0,,1,1,,test_gdj_01005",
        "queueIndex":"2",
        "agentCount":"5"
    }
}

ODFS判断如果 flow_result_type = 1 且 input = (识别结果id值) 时会调用Redis获取转写文本(key=识别结果id值中redis值编号key),获取到的识别文本格式为字符串(非JSON格式)。

Lua脚本获取Redis结果示例代码如下,示例中代码key值为“msg”字符串。

support.huaweicloud.com/api-ccfs-cec/cec_07_2010.html