[英]Alexa Skill - Update Intent programmatically
I'm trying to create an Alexa skill which has a fairly wide-open possible number of phrases it could use. 我正在尝试创建一个Alexa技能,它可以使用相当广泛的短语。 Too many to write by hand. 手写太多太多了。
I can probably generate the list programmatically, but it changes frequently, so I'd want it updated frequently. 我可以以编程方式生成列表,但它经常更改,所以我希望它经常更新。
Is there an Amazon API I can call to update the possible values for a custom slot type, without having to manually log in and copy and paste it all the time? 是否有我可以调用的Amazon API来更新自定义插槽类型的可能值,而无需手动登录并一直复制和粘贴它?
YES! 是! See Update Interaction Model section at their docs. 请参阅其文档中的“ 更新交互模型”部分。
https://developer.amazon.com/docs/smapi/interaction-model-operations.html#update-interaction-model https://developer.amazon.com/docs/smapi/interaction-model-operations.html#update-interaction-model
No - Amazon does not provide an API for updating your skill. 否 - 亚马逊不提供用于更新您的技能的API。 I believe that API.AI provides this and they have an integration with Alexa ASK but I've heard that it's not very good and I don't really expect it to get better now that Google has bought them. 我相信API.AI提供了这个,他们与Alexa ASK集成,但我听说它不是很好,我真的不希望它现在谷歌已经买了它们会变得更好。
In your first paragraph it sounds like you are talking about supporting a lot of different utterances (ways of saying the same thing), but after that it sounds like you are talking about a large number of 'slot values': the relevant user input extracted from the utterances. 在你的第一段中,听起来你正在谈论支持很多不同的话语(说同样的话),但之后听起来好像你在谈论大量的'槽值':提取的相关用户输入从话语。 Either way, the answer is still no - no API. 无论哪种方式,答案仍然是没有 - 没有API。
I believe there are popular features requests for both a general API for updating the skills, and support for dynamic slot lists, here . 我认为有两个用于更新技能一般的API,并支持动态时隙列表,流行的功能要求在这里 。
And here's Amazon's defence of the custom slot and how it can replace the (deprecated) literal slot. 这是亚马逊对自定义插槽的辩护,以及它如何取代(已弃用的)文字插槽。
No, but there is now a beta editor which lets you drag a single JSON file containing all utterances, intents and slots. 不,但现在有一个beta编辑器,可以让你拖动一个包含所有话语,意图和插槽的JSON文件。 Log into the developer portal and click "Interaction Model Builder Beta". 登录开发人员门户并单击“Interaction Model Builder Beta”。
如果你像我一样迟到了派对,请访问https://developer.amazon.com/docs/smapi/ask-cli-intro.html查看完整的CLI / API,它允许通过JSON进行全面的模型编辑。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.