Alexa 找不到我的技能 [英] Alexa not finding my Skill

查看:37
本文介绍了Alexa 找不到我的技能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我根据 Alexa Skills Kit 中提供的示例之一创建了我的 Alexa Skill 作为 AWS Lambda Node.js 应用程序.我遵循了所有说明:

I created my Alexa Skill as an AWS Lambda Node.js app based on one of the provided examples in the Alexa Skills Kit. I followed all the instructions:

  1. 我的 Echo 使用与我在 AWS 上的开发者帐户相同的帐户注册
  2. 我在亚马逊开发者控制台上配置了我的技能
  3. 我将控制台中的应用程序 ID 放入应用程序代码中
  4. 我将代码上传到 AWS Lambda 服务(按照指示设置为弗吉尼亚北部)
  5. 我测试了我的服务,它返回了预期的 JSON
  6. 我在开发者控制台中将我的 ARN 作为端点输入
  7. 在控制台的下一步中,它告诉我通过说Alexa,询问 HelloWorld"来测试 Echo 的技能.

当我执行此操作时,她回复与请求的应用程序通信时出现问题."在 Echo 应用中,它说:

When I do this, she replies "There was a problem communicating with the requested application." In the Echo app it says:

意外通信问题 HelloWorld 请求标识符:amzn1.echo-api.request.e2d17280-592a-474f-a6b1-d1a9d8ff816d 有与请求的应用程序通信时出现问题

Unexpected Communication Issue HelloWorld Request Identifier: amzn1.echo-api.request.e2d17280-592a-474f-a6b1-d1a9d8ff816d There was a problem communicating with the requested application

我可以从我的 AWS Lambda 函数列表中看到没有请求到达该服务.我重新启动了 Echo.我给了它一个小时,以防它只需要时间在某处传播,但它仍然给出相同的响应.

I can see from my AWS Lambda functions list that no requests have reached the service. I restarted Echo. I gave it an hour in case it just needed time to propagate somewhere, but it still gives the same response.

所以这是一个非常模棱两可的死胡同.有没有人遇到过这个?有什么想法可以尝试吗?

So this is a pretty ambiguous dead end. Has anyone ran into this? Any ideas what to try?

推荐答案

我注意到你没有提到设置你的事件源.这是文档中的片段 这里.

I noticed you didn't mention setting your Event Source. Here's the snippet from the documentation here.

添加 Alexa Skills Kit 事件源

将 Alexa Skills Kit 事件源添加到您的函数会授予 Alexa 对您的函数的必要调用权限.

Adding the Alexa Skills Kit event source to your function grants Alexa the necessary invocation permissions for your function.

Log in to the AWS Management Console and navigate to AWS Lambda.
Select your function in the list.
Click Actions and then select Add event source.
Select Alexa Skills Kit from the Event source type.
Click Submit.

此外,请随时查看 Alexa Skills Kit 知识库子论坛以获取常见问答列表 此处.

Additionally, feel free to check out the Alexa Skills Kit Knowledge Base sub-forum for a list of common Q&A here.

谢谢!

这篇关于Alexa 找不到我的技能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆