简要描述:
ansContent格式说明:ansType=1
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
answer | 是 | CommonMsg | 回复内容,这里的消息类型支持:text/richtext/workflow,字段格式详细介绍见通用数据结构说明 |
connectQuestions | 否 | List | 当前回复 关联的问题列表,字段格式详细介绍见通用数据结构SimpleQuestion说明 |
ansContent格式说明:ansType=2
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
recommandGuide | 是 | string | 相似问题引导文案 |
recommandQuestions | 是 | List | 当前推荐的问题列表,字段格式详细介绍见通用数据结构SimpleQuestion说明 |
ansContent格式说明:ansType=4
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
silence | 是 | integer | 未知问题回复/情绪安抚语类型,0-按answer回复,1-静默处理不回复 |
answer | 否 | CommonMsg | 回复内容,这里的消息类型支持:text/richtext,字段格式详细介绍见通用数据结构说明 |
ansContent格式说明:ansType=10
转人工事件,此时 ansContent 即为CommonMsg格式,消息类型为event_trans,字段格式详细介绍见通用数据结构说明;
curl --location --request POST 'http://qiyukf.com/openapi/robot/session/chat?appKey=&time=&checksum=' \
--header 'Content-Type: application/json' \
--data-raw '{
"uid": "string",
"productId": "string",
"fromType": "string",
"robotId": 0,
"msg": "string",
"skipTrans": 0
}'
{
"code": 200,
"message": "哈哈",
"data": {
"sessionId": 62927,
"userId": 43412123,
"robotId": 34351,
"answerList": [
{
"msgId": "21323",
"ansType": 1,
"ansContent": {
"answer": {
"msgType": "richText",
"msgBody": {
"content": "<p>这是一个富文本答案</p>"
}
},
"connectQuestions": [
{
"question": "关联问题1",
"type": 1
}
]
},
"msgEvaluation": {
"evaluation": 0,
"evaluationReason": 0,
"evaluationGuide": "消息评价引导语"
}
}
]
}
}