简体   繁体   English

我在更新技能后第一次加载Alexa技能用户时,可以向他们发送一次性通知吗?

[英]Can I send my Alexa skill users a one-time notification when they load the skill for the first time after I've updated it?

I have a pretty dumb skill in the Alexa Skills store that I plan on releasing an update for. 我打算在Alexa Skills商店中发布一项更新的愚蠢技能。 I couldn't find anything in the documentation about one-time update notifications, is there an OOTB way to let customers know (once) that the skill has been updated, without creating a persistence layer to track each individual user and if they've launched the skill or not? 我在文档中找不到有关一次性更新通知的任何信息,是否有一种OOTB方法可以让客户(一次)知道技能已更新,而无需创建持久层来跟踪每个用户以及他们是否是否启动了技能?

If you plan to send a message to every user that uses your skill after the update, it's possible somehow. 如果您打算在更新后向使用您的技能的每个用户发送消息,则可能会发生某种情况。

In every Alexa request you get the userId and deviceId , you could store these in a DynamoDB table or any other storage system, associating to every user a simple flag that gets checked at the first request after the update. 在每个Alexa请求中,您都获得userIddeviceId ,您可以将它们存储在DynamoDB表或任何其他存储系统中,从而将与每个用户相关联的简单标志关联到更新后的第一个请求处。 The simplest way to do this would probably be a .csv file stored locally, however this depends on how your code is run and where it's stored. 最简单的方法可能是在本地存储一个.csv文件,但这取决于代码的运行方式和存储位置。

After you stored this information, in your code just read the user data and respond appropriately if the flag is checked or not. 在存储了此信息之后,只需在代码中读取用户数据并适当地响应该标志(是否已选中)即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 当用户提出某些请求时,我如何获得我的 Alexa 技能来发送 Gmail? - How Can I Get My Alexa Skill To Send Gmails When The User Makes Certain Requests? 我如何在Alexa Skill中重新启动对话框 - How can i restart a dialog in Alexa Skill 如何将代码实现到 Alexa Skill 中? - How can I implement code into an Alexa Skill? Alexa Skill-如果他不说停止,我该如何向用户提示他必须再次使用它? - Alexa Skill - How can I reprompt to my user that he has to use it again, if he is not saying stop? 我如何使用alexa-sdk在我的alexa技能中使用http? - How would I go about using http in my alexa skill using alexa-sdk? 使用一个Alexa技能进行不同的调用 - Different Invocations with one Alexa Skill 我的Alexa技能给了我一个困难的错误,我不知道该错误的出处 - My Alexa Skill is giving me a difficult error, which I do not know the source of 我正在尝试执行 Alexa 技能,但她说请求的技能响应有问题 - I'm trying to do a Alexa Skill, but she says There was a problem with the requested Skill's response Alexa Skill FeedHelper.js-如何获取附件URL? - Alexa Skill FeedHelper.js - how can i get the enclosure URL? Alexa Skill:适用于第一个问题,但不适用于第二个问题 - Alexa Skill: Works for the first question but not the second question
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM