腾讯智能对话平台TBP 返回的数据结构
首先在这个链接里的示例输出似乎并不对,
{ "Response": { "DialogStatus": "START", "BotName": "botname", "IntentName": "intentName", "SlotInfoList": null, "InputText": "hi", "ResponseMessage": { "GroupList": [ { "ContentType": "text/plain", "Url": "www.baidu.com", "Content": "hello" }, { "ContentType": "audio/wav", "Url": "www.baidu.com", "Content": "xccv" } ] }, "ResultType": "1", "SessionAttributes": "xxx" } }
因为我收到的TBP的API返回的数据形式是:
{'DialogStatus': '', 'BotName': '',
'IntentName': '',
'SlotInfoList': [],
'InputText': '额和',
'ResponseMessage':
{'GroupList': [{'ContentType': 'text/plain',
'Url': '',
'Content': '我不明白你要说什么。'}]},
'SessionAttributes': '',
'ResultType': '3',
'RequestId':
'xxxxxxxxxx'}
不知道为什么,似乎是腾讯忘了更新文档??
另外在这个链接可以找到 Group ResponseMessage SlotInfo 的数据结构文档:

浙公网安备 33010602011771号