【问题标题】:Attempted to download intents from Dialogflow then import it to Amazon Lex尝试从 Dialogflow 下载意图,然后将其导入 Amazon Lex
【发布时间】: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": []
}

【问题讨论】:

    标签: dialogflow-es amazon-lex


    【解决方案1】:

    DialogFlow 可以export into Alexa JSON format,出乎意料地和 Lex 不一样,但是很接近,所以我就从这个开始。

    然后我会使用 Lex JSON Format for Importing doc 作为参考,将 Alexa 格式更改为 Lex 格式。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多