【问题标题】:How to remove Alexa skill error for Sorry, I don't know that one如何删除 Alexa 技能错误抱歉,我不知道那个
【发布时间】:2019-12-06 09:39:47
【问题描述】:

为什么? Amazon Alexa 显示错误“抱歉,我不知道那个。

是节点js代码 在哪里,alexa 不工作.... 不知道为什么会报错

const spiderman_Handler =  {
    canHandle(handlerInput) {
        const request = handlerInput.requestEnvelope.request;
        return request.type === 'IntentRequest' && request.intent.name === 'spiderman' ;
    },
    handle(handlerInput) {
        const request = handlerInput.requestEnvelope.request;
        const responseBuilder = handlerInput.responseBuilder;
        let sessionAttributes = handlerInput.attributesManager.getSessionAttributes();

        let say = 'spiderman bio';


        return responseBuilder
            .speak(say)
            .reprompt('Hey! Want to know about other avengers, It will be fun...' + say)
            .getResponse();
    },
};

查看此代码

启动编辑器:

const LaunchRequest_Handler =  {
        canHandle(handlerInput) {
            const request = handlerInput.requestEnvelope.request;
            return request.type === 'LaunchRequest';
        },
        handle(handlerInput) {
            const responseBuilder = handlerInput.responseBuilder;

            let say = 'hello!!! You are here for information about your favorite avenger, Nice to see you here. Which Avenger is your favorite?';
            let skillTitle = capitalize(invocationName);
            return responseBuilder
                .speak(say)
                .reprompt('try again, ' + say)
                .withStandardCard('Welcome!', 
                  'Hello!\nThis is a card for your skill, ' + skillTitle,
                   welcomeCardImg.smallImageUrl, welcomeCardImg.largeImageUrl)
                .getResponse();
        },
    };

【问题讨论】:

  • 您能解释一下您的问题吗?像这样的问题没有人可以帮助你! -- 添加一些代码等和visit how to ask
  • 亚马逊技能和调用必须同名吗?技能名称;我最喜欢的复仇者召唤名称:最喜欢的复仇者
  • 启动处理程序:

标签: amazon-web-services alexa-skills-kit alexa-skill


【解决方案1】:

答案就在您的问题中。亚历克萨说

“对不起,我不知道那个。”

当 Alexa 技能无法理解您的问题时。

Alexa 技能理解不同问题的能力取决于您在技能中配置的意图。如果您向您的 Alexa 技能询问一个配置为与意图匹配的问题,那么它不应该给您“抱歉”消息。如果它无法将用户输入与配置的任何意图匹配,那么您将收到“抱歉”消息,该消息通常在 Default Fallback Intent 下配置。

【讨论】:

  • 但它在开始时没有回答任何问题,只是在启动 alexa 技能时抛出错误当用户说“Alexa,打开我的第一个复仇者”时
  • 您的 lambda/webservice 很可能没有对 LaunchRequest 提供有效响应。你检查过alexa模拟器中的请求/响应吗?
  • 但是我如何检查它是否没有启动
【解决方案2】:

问题在于您的调用名称本身。 如果您的技能正在开发中,但尚未出现在任何技能商店中,您可以执行以下操作:

  1. 确保您使用的调用名称相同 您为技能定义的调用名称。

  2. 确保您用于在开发者控制台上创建技能的帐户与用于设备的帐户相同。如果没有,您将需要在设备上添加该帐户作为您所构建技能的 beta 测试人员。请参阅https://developer.amazon.com/docs/custom-skills/skills-beta-testing-for-alexa-skills.html

  3. 如果设备和开发者控制台上的帐户相同, 请重新检查设备的区域设置是否与 您已经建立技能的语言环境。

  4. 如果没有帮助,请进行测试 您在开发者控制台中的技能选项卡。尝试禁用和 启用技能测试。大多数情况下,如果您 最近更改了技能的调用名称。

【讨论】:

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