Get a new fact every day with amazon echo.
Full source code attached as zip file.Let’s Get Started
First download code from schematic below and then follow the instructions.
Step #1 – Create an AWS Account
- Open aws.amazon.com and then choose ‘Create a Free Account’
- Follow the online instructions.
- You will need a Valid Credit Card to set up your account I(you can use free tier)
- Sign in to your Console
Step #2 – Create a Lambda Function
- IMPORTANT: Select US East (N. Virginia) region (upper right). This is the only region that currently supports Alexa Skill development.
2. Select Lambda from Compute services (upper left)
3. Select “Create a Lambda Function” to begin the process of defining your Lambda function.
4. At the bottom of the ‘Select Blueprint’ page, select “Skip.”
5. You should be in ‘Configure Triggers. Add Alexa skill kit.
6. Add name to the function and description upload zip file provided.
7. Choose lambda basic execution and click next.
8. review the skill and click create function
9. Copy the arn as you will need it in the next steps.
Set-up Your Alexa Skill in the Developer Portal
1. Open developer console
2. Once you’ve signed in, navigate to Apps & Services
3. Then select Alexa.
4. Choose Alexa Skills Kit:
5. Here is where you will define and manage your skill.
Select “Add New Skill”:
6. Make sure the radio button for the custom interaction model is selected for “Skill Type”.
7. Add the name of the skill. . Add the invocation name.
8. Select "Next".
9. Now, notice you're on the interaction model.
10. Next, we need to define our skill’s interaction model. Let’s begin with the intent schema. Copy this from the intent schema Below.
11. The next step is to build the utterance list.
Providing these different phrases in your sample utterances will help improve voice recognition for the abilities you add to Alexa.
- Now its time to add the Utterances. Copy/paste the sample utterances from below. Once they are copied, the screen should look similar to the following image:
12. Select Save. You should see the interaction model being built (this make a take a minute or 2). If you select next, your changes will be saved and you will go directly to the test screen. After selecting Save, it should now look like this:
13. Select Next, and you will be taken to the Configuration screen. Add the ARN from the Lambda function you created in the AWS Console earlier. Select the Lambda ARN (Amazon Resource Name) radio button. To get the ARN, see steps a and b. Then, select “No” for account linking since we will not be connecting to an external account for this tutorial.
- Paste the ARN into the Endpoint field.
Then select "Next".We are now Ready to Test.
In the Test area, we are going to enter a sample utterance in the service simulator section and see how Alexa will respond.
Step #5 – Publish Your Skills
Select the Description area of your skill next:
- Spend some time coming up with an enticing, succinct description. This is the only place you have to attract new users.
4. Once you have uploaded your icons, you should see a success message at the bottom of the screen.
5. IMPORTANT: Add the text “based on spacegeek” to the Testing Instructions section. This alerts the Certification team of your submission using this standardized template, smoothing the road to a faster publish. Finally, select Next.
6. Privacy and Compliance.
- On the Privacy and Compliance section, select ‘No’ for spending real money and collecting personal information. Privacy and Terms URL’s are optional. Choose to certify that your skill can be imported to and exported from the US.
- Select “Save”.
- Select “Submit for Certification”
- Finally, confirm your submission. Select “Yes” to submit your skill.
Skill now Published