-
Go to the Alexa Developer Console. Enter your account credentials and click the Sign In button. (If you don't already have an account, you will be able to create a new one for free.)
-
Once you have signed in, select the Create Skill button near the top-right of the list of your Alexa Skills.
-
Give your new skill a Name, for example, 'Premium Facts Sample'.
-
Select the Default Language. This tutorial will presume you have selected 'English (US)'. Click the Next button at the top right.
-
Select Other under the 'Choose a type of experience' section.
-
Select the Custom model under the 'Choose a model' section.
-
Select Alexa-hosted (Python) under the 'Hosting services' section. Click the Next button at the top right.
-
Choose Start from scratch from the Templates section and click the Import skill button at the top right.
-
Paste the following link in the dialog box and click Import.
https://github.com/alexa-samples/skill-sample-python-fact-in-skill-purchases
Once the skill is created, you will have an Alexa-hosted skill with the interaction model based on the content provided in this JSON file, and the code as per this lambda function.
-
To create an In-Skill product, on the Build page, under Skill builder checklist, click Monetize Your Skill. Or, in the left pane, click TOOLS, and then select Monetize Your Skill.
-
Follow all the steps in the documentation for Add a product and link it with the skill
-
To test, login to Alexa Developer Console, click on the Premium Facts Sample entry in your skill list, and click on the "Test" tab. The "Test" switch on your skill should have been automatically enabled. If it was not, enable it now.
-
Your skill can now be tested on devices associated with your developer account, as well as the Test tab in the Developer Portal. To start using your skill, just type or say:
Alexa, open premium facts sample
Note: The developer account associated with the skill is never charged for in-skill products. For more details about testing skills with in-skill products, please refer to the In-Skill Purchase Testing Guide
- Amazon Developer Forums : Join the conversation!
- Hackster.io - See what others are building with Alexa.