Skip to content
Advertisement

save/remember an Alexa user’s intent confirmation response?

I have a confirmation prompt for one of my Alexa skill’s intents, and now I need it to “remember” the user’s answer and not ask the user again. Essencially, we want the user to be prompted only on the very first time they use the skill, and then never again. Is that possible?

I’m hoping I don’t have to do a total code re-write, and can just update my existing code. Here is my intent’s javascript code (simplified) for the lambda function for the skill:

JavaScript

Thanks for any help!

Update: I have successfully implement this new feature using the accepted answer’s help. However I had to totally re-write everything to fit the new version of the Alexa sdk.

Advertisement

Answer

You can persist/save/remember alexa user’s data using persistent attributes.

I recommend you to follow alexa skill sample tutorial zero to hero it summarise everything you need to know about developing a skill on Alexa with examples & videos.

And what you need from this tutorial is the Part 4 – Persistence

And then, it will be as easy as:

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement