如何修改实时 Alexa 技能? [英] How do I revise a live Alexa skill?

查看:42
本文介绍了如何修改实时 Alexa 技能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要修改我发布的 Alexa 技能.我熟悉亚马逊在发布技能后自动创建的开发中"技能版本.我不明白的是我如何迭代我的技能,尤其是当我需要同时更改交互模型和链接的 Lambda 函数时?

I need to revise my published Alexa skill. I'm familiar with the "In Development" skill version which Amazon automatically creates after publishing a skill. What I don't understand is how do I iterate on my skill, particularly when I need to change the interaction model and the linked Lambda function at the same time?

例如,我可以创建一个单独的开发中"Lambda 函数,并将其设为我的开发中"Alexa 技能的默认端点.但是当我提交我的开发中"Alexa 技能以供发布时,该开发中"Lambda 端点将成为我发布的技能的新端点.我想这可行,我认为这就是亚马逊的意图,但我不想回收我的 Lambda 函数、重新配置 X 射线跟踪等.我使用无服务器框架来部署链接到我的 Alexa 的 Lambda 函数技能,它为我更新了我的 Lambda.

For example, I could create a separate "In Development" Lambda function and make it my default endpoint for my "In Development" Alexa skill. But then when I submit my "In Development" Alexa skill for publication, that "In Development" Lambda endpoint would become the new endpoint for my published skill. I suppose that could work, and I think that's what Amazon intends, but I don't want to have to recycle my Lambda functions, reconfigure x-ray tracing, etc. I use the Serverless Framework to deploy the Lambda functions linked to my Alexa skills, and it versions my Lambdas for me.

推荐的工作流程是什么?我觉得我在这里缺少一些基本的东西.

What's the recommended workflow? I feel like I'm missing something basic here.

除了编辑开发版,这显然是不够的.该页面有一个链接,指向修改并更新您的发布后的技能",但点击它会将我带到一个关于技能分配的页面.

I couldn't find any Amazon documentation for this beyond "edit the development version," which is obviously inadequate. That page has a link to "Revise and Update Your Skill after Publication" but clicking it sends me to a page about skill distribution.

推荐答案

Alexa Skill

正如您所说,当您的技能发布时,您将拥有实时版本和开发版本.您的技能的实时版本和开发版本都显示在开发人员控制台上.

Alexa Skill

As you said when your skill is published you will have a live version and development version. Both the live version and the development version of your skill are shown on the developer console.

您现在可以对技能的开发版本进行更改,例如:交互模型更改、端点更改等.开发人员门户中的任何更改都需要您的技能通过认证过程.

You can now make changes to the development version of the skill like: change in interaction model, endpoint change etc. Any change in the developer portal requires your skill to go through certification process.

当您提交新版本进行认证时,两个版本都会保留在您的列表中,直到新版本获得认证.一旦新版本通过认证,它就会上线并取代之前的上线版本.所有现有用户都将拥有您的技能的实时/最新版本.然后会创建一个新的开发版本,以便您可以继续进行更新.

When you submit your new version for certification, both versions remain in your list until the new version is certified. Once the new version is certified, it becomes live and replaces the previous live version. All the existing users will have the live/latest version of your skill. A new development version is then created so that you can continue making updates.

首次创建 Lambda 函数时,默认版本为 Latest.Latest 是您的开发版本,您可以对此进行更改.在开发过程中,您将在 Alexa 门户中使用 Lambda 函数的 Latest 版本(开发版本)的 arn.一旦您完成了 Lambda 函数的更改和更新,并且您觉得必须发布它,您就可以对其进行版本控制.当您发布 Lambda 函数的版本(您可以提供版本名称)时,您将拥有两个版本 Latestreleased-version.您将无法再更改 Lambda 的 released-version.您可以继续更新 Latest 版本并根据需要发布它.

When you create a Lambda function for the first time, the default version is Latest. The Latest is your development version, and you can make changes to this. During development you will use the arn of the Latest version (development version) of Lambda function in Alexa portal. Once you are done with the changes and updates of your Lambda function and you feel that this has to be released, you version it. When you publish a version (you can provide the version name) of the Lambda function, you will have two versions Latest and released-version. You will no longer be able to make changes to released-version of your Lambda. And you can continue making updates to the Latest version and release it as you wish.

在提交技能以进行认证之前,发布一个版本的 Lambda 并在 Alexa 开发人员门户中使用它始终是一个好习惯.

It's always a good practice to publish a version of Lambda and use it in Alexa developer portal before you submit the skill for certification.

通过这种方式,您可以将版本化的不可编辑 Lambda 链接到您的实时技能.而对于该技能的开发版本,您可以使用相同 Lambda 函数的 Latest 版本继续进行更新.

This way you can link the versioned uneditable Lambda to your live skill. And for the development version of the skill, you can use the Latest version of the same Lambda function to continue making updates.

有关版本控制 Lambda 函数的更多信息此处.

More on versioning Lambda functions here.

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

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