I was inspired to make this because I enjoy programming and I wanted to educate more people on how the technology around us started off as. This is an Alexa Skill powered by AWS Lambda which provides random facts about computers and programming.
Making the Lambda FunctionGo to this link, create a new account or log in to the console. From there, all you need to do is create a Lambda function, select Alexa Fact Skill as the template, edit code inline, and paste the provided code which has everything set up.
Copy the ARN which is displayed in the top right corner of the page.
Go to the Alexa Developer Console, create a new skill and fill in the skill name, language (English UK), and invocation name for your skill. Then, proceed to fill in the Intent Schema and utterances provided below.
Intent Schema
{
"intents": [
{
"intent": "GetNewFactIntent"
},
{
"intent": "AMAZON.HelpIntent"
},
{
"intent": "AMAZON.StopIntent"
},
{
"intent": "AMAZON.CancelIntent"
}
]
}
Utterances
GetNewFactIntent a fact
GetNewFactIntent a programming fact
GetNewFactIntent tell me a fact
GetNewFactIntent tell me a programming fact
GetNewFactIntent give me a fact
GetNewFactIntent give me a programming fact
GetNewFactIntent tell me trivia
GetNewFactIntent tell me a programming trivia
GetNewFactIntent give me trivia
GetNewFactIntent give me a programming trivia
GetNewFactIntent give me some information
GetNewFactIntent give me some programming information
GetNewFactIntent tell me something
GetNewFactIntent give me something
Next, select ARN in the configuration tab, select the closest geographical region, and paste the ARN you copied in the Service Endpoint Type.
Finally, test your app, fill in the publishing/privacy information and you're all set!
Here is the link to the published skill:
https://www.amazon.co.uk/dp/B071GQVXFL/ref=sr_1_1?ie=UTF8&qid=1497467967&sr=8-1
Comments