Dialogflow es 为什么Alexa SDK在从Dialogflow迁移时抛出错误

Dialogflow es 为什么Alexa SDK在从Dialogflow迁移时抛出错误,dialogflow-es,alexa,alexa-skills-kit,alexa-skill,Dialogflow Es,Alexa,Alexa Skills Kit,Alexa Skill,我正在尝试迁移我的动作表单Dialogflow,最重要的是意图模式。但是在上传.json文件之后,错误Intent name不能为空。错误代码:将抛出MissingIntentName。下面是Intent schema.json { "intents": [ { "intent": "SelectedSubjectsYes" }, { "intent": "UserIsOk", "slots": [ { "name": "okslot", "type

我正在尝试迁移我的动作表单Dialogflow,最重要的是意图模式。但是在上传.json文件之后,错误
Intent name不能为空。错误代码:将抛出MissingIntentName
。下面是Intent schema.json

 {
"intents": [
{
  "intent": "SelectedSubjectsYes"
},
{
  "intent": "UserIsOk",
  "slots": [
    {
      "name": "okslot",
      "type": "OK"
    }
  ]
},
{
  "intent": "SelectedSubjectsNo"
},
{
  "intent": "UserIsNotOk",
  "slots": [
    {
      "name": "not_okslot",
      "type": "NOT_OK"
    }
  ]
},
{
  "intent": "DefaultWelcomeIntent"
},
{
  "intent": "HowAreYou?"
},
{
  "intent": "SelectedSubjects",
  "slots": [
    {
      "name": "subjectslot",
      "type": "SUBJECT"
    }
  ]
}
]
}

我根本没有编辑过,为什么会出错?提前感谢。

交互模型的JSON结构明显不同。现在应该是这样

{
    "interactionModel": {
        "languageModel": {
            "invocationName": "Your invocation name",
            "intents": [
                {
                    "name": "SelectedSubjectsYes",
                    "slots": [],
                    "samples": [
                        "provide sample for SelectedSubjectsYes intent",
                        "sample for SelectedSubjectsYes intent"
                    ]
                },
                {
                    "name": "UserIsOk",
                    "slots": [
                        {
                            "name": "okslot",
                            "type": "OK"
                        }
                    ],
                    "samples": [
                        "provide other samples for UserIsOk",
                        "I'm {okslot}",
                        "{okslot}"
                    ]
                },
                {
                    "name": "SelectedSubjectsNo",
                    "slots": [],
                    "samples": [
                        "provide sample for SelectedSubjectsNo intent",
                        "sample for SelectedSubjectsNo intent"
                    ]
                },
                {
                    "name": "UserIsNotOk",
                    "slots": [
                        {
                            "name": "not_okslot",
                            "type": "NOT_OK"
                        }
                    ],
                    "samples": [
                        "provide other samples for UserIsNotOk",
                        "i'm {not_okslot}",
                        "{not_okslot}"
                    ]
                },
                {
                    "name": "HowAreYou?",
                    "slots": [],
                    "samples": [
                        "provide sample for HowAreYou intent",
                        "sample for HowAreYou intent"
                    ]
                },
                {
                    "name": "SelectedSubjects",
                    "slots": [
                        {
                            "name": "subjectslot",
                            "type": "SUBJECT"
                        }
                    ],
                    "samples": [
                        "provide other samples for SelectedSubjects",
                        "i choose {subjectslot}"
                    ]
                }
            ],
            "types": [
                {
                    "name": "OK",
                    "values": [
                        {
                            "name": {
                                "value": "ok"
                            }
                        },
                        {
                            "name": {
                                "value": "yes"
                            }
                        }
                    ]
                },
                {
                    "name": "NOT_OK",
                    "values": [
                        {
                            "name": {
                                "value": "not ok"
                            }
                        },
                        {
                            "name": {
                                "value": "nope"
                            }
                        }
                    ]
                },
                {
                    "name": "SUBJECT",
                    "values": [
                        {
                            "name": {
                                "value": "Physics"
                            }
                        },
                        {
                            "name": {
                                "value": "Biology"
                            }
                        }
                    ]
                }
            ]
        }
    }
}
在Alexa skill builder中设计一个对话框非常容易,而不是从对话框流转换。此外,建议使用预定义的
AMAZON.yesint
AMAZON.nocontent
来表示“是”或“否”话语