【发布时间】:2019-03-07 21:23:07
【问题描述】:
我尝试从 dialogflow 下载所有意图,然后将其导入 Amazon Lex,但它一直给我错误:请求中的 JSON 结构无效。检查 JSON 结构并重试您的请求。
我只是想知道是否可以直接导入它。或者我应该遵循什么结构才能使 Amazon Lex 接受所有意图。谢谢你。
显示意图示例:
{
"id": "****",
"name": "Default Fallback Intent",
"auto": true,
"contexts": [],
"responses": [
{
"resetContexts": false,
"action": "input.unknown",
"affectedContexts": [],
"parameters": [],
"messages": [
{
"type": 0,
"speech": [
"Sorry"
]
}
],
"defaultResponsePlatforms": {},
"speech": []
}
],
"priority": 500000,
"webhookUsed": false,
"webhookForSlotFilling": false,
"lastUpdate": 1549670889,
"fallbackIntent": true,
"events": [],
"userSays": [],
"followUpIntents": [],
"liveAgentHandoff": false,
"endInteraction": false,
"templates": []
}
【问题讨论】: