使用模板的请求技能的响应存在问题,使用模板指令的Alexa技能存在问题

时间:2018-12-20 18:53:11

标签: node.js alexa alexa-skills-kit

我的节点alexa技能有问题。

我正在通过HTTS.response

连接数据库

一切正常,直到我想在模板中显示结果为止。

这是它的回应。

{
"outputSpeech": {
    "type": "PlainText",
    "text": "That's sound good. Your search is Property Type: residential -  City:Petersburg - Zip Code:33715 - Bedrooms:2 - Price: $100000"
},
"directives": [
    {
        "type": "Display.RenderTemplate",
        "template": {
            "type": "ListTemplate2",
            "token": "ShowHomeView",
            "backButton": "hidden",
            "backgroundImage": {
                "contentDescription": "",
                "sources": [
                    {
                        "url": "https://s3.amazonaws_com/ask-samples-resources/berryImages/main_blur2.png"
                    }
                ]
            },
            "title": "Search Results",
            "listItems": [
                {
                    "token": 1,
                    "image": "https://mydomain/images/fine_arts-1550.jpg",
                    "textContent": "This is my list item 1"
                },
                {
                    "token": 2,
                    "image": "https://mydomain/images/fine_arts-1550.jpg",
                    "textContent": "This is my list item 2"
                },
                {
                    "token": 3,
                    "image": "https://mydomain/images/fine_arts-1550.jpg",
                    "textContent": "This is my list item 3"
                }
            ]
        }
    },
    {
        "type": "Hint",
        "hint": {
            "type": "PlainText",
            "text": " select number two. "
        }
    }
],
"shouldEndSession": false

}

在alexa控制台中说:

  

所请求的技能响应出现问题

,然后在设备日志中说。

“ descriptiveText”:[             “请求标识符:amzn1.echo-api.request.f6d03bab-05b2-449f-877b-b58f8e28274b”,             “”,             “该技能返回了无效响应”         ]

什么可能导致此错误?

提前thinks

0 个答案:

没有答案