Log in from a computer to take this course

You'll need to log in from a computer to start Learn to Program Alexa. But you can practice or keep up your coding streak with the Codecademy Go app. Download the app to get started.

apple storegoogle store

Once you have session attributes that persist throughout a session, it’s helpful to save them to a database. The information that is saved within a session can be accessed in subsequent sessions.

Database Use-cases for Alexa

  • Imagine you wanted to greet a user with their name every time they opened your skill. The database can save the name of a user between session, so you don’t have to ask them at the beginning of each session.
  • You can use a database to deliver different responses to first-time users, and custom responses to recurring visitors.

In this lesson, you will learn how to persist progress through a deck of flashcards using an AWS DynamoDB database. This will allow us to add long-term memory to a flashcards skill, so a user can resume from where they left off.

Regardless of your familiarity with databases, Alexa SDK’s built-in integration with DynamoDB makes it possible to keep track of user progress between sessions with a single line of code.


Watch the video on the right. Notice the Alexa device remembers information from a previous session.

Take this course for free

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?