Skip to content
A sample skill which demonstrates the use of the consumable type of in-skill purchasing (ISP) within an Alexa skill. Search for samples with other types of in-skill purchases.
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.


Type Name Latest commit message Commit time
Failed to load latest commit information.

Name The Show

A sample skill which demonstrates the use of consumables within an Alexa skill.

The skill will present the user with the name of an actor or actress, and the user is asked to guess which television show the skill is thinking of. If the user can't figure it out, they can buy and use hints, which will give them the name of a second or third actor from the same show.

To use this sample:

  1. Ensure you have/complete the necessary prerequisites:
    • Alexa Developer Account
    • AWS Account
    • Intial and initizalize the ASK CLI
    • Install git (optional)
  2. Clone the repo: git clone name-the-show. If you don't have git installed, down the repo here
  3. Enter the cloned repo's directory: cd name-the-show.
  4. Deploy the skill: ask deploy
  5. Since the skill uses persistent attributes, be sure to add these permissions to the Lambda function's execution role.
    1. If everything was left as the default, this link will take you right to that role.
    2. On the right side of the Permissions tab, click + Add inline policy.
    3. Click the JSON tab.
    4. Select the existing JSON and replace it with the following policy document. This policy grants access to the role to (1) create the needed table and (2) read/write items to the table. It is restricted to this for just a table named 'NameTheShow'.
          "Version": "2012-10-17",
          "Statement": [
                  "Sid": "NameTheShowDynamoDBAccess",
                  "Effect": "Allow",
                  "Action": [
                  "Resource": "arn:aws:dynamodb:*:*:table/NameTheShow"
    5. Click Review Policy.
    6. Enter NameTheShowDynamoDBAccess as the Name.
    7. Click Create Policy.
  6. That's it! The skill should be enabled on your developer account. Launch the skill by saying, "Alexa, open name the show".

    Note: the first time you launch it, the DyanmoDB table will be created. It is normal for an error to be returned while it is being created. Check back after a few minutes and the skill will work as expected.


This library is licensed under the Amazon Software License.

You can’t perform that action at this time.