Build a Skill for Amazon Alexa and get free swags from Amazon

Amazon skill is one of the most popular Voice Assistant available. Many developers are contributing to Alexa platform. What developers build are called “Alexa Skills”. Skills extend the features of the Alexa.

In return, Amazon is offering some perks to the developers to encourage them to build skills. https://developer.amazon.com/alexa-skills-kit/alexa-developer-skill-promotion-india

You can get an “Alexa T-shirt” and $100 free “AWS credit” every month for 12 months. 😍

So let’s get started and try to build our own fact skill for Alexa. We will be calling it “NASA facts”. 😊

Create a fact skill first

Visit this link https://developer.amazon.com/alexa/console/ask/ . You will see an “Alexa Developer Console” dashboard.

Click on the “Create Skill” button.

Alexa Developer Console

Enter the Skill name and language. Select the “Custom” model to add to your skill.

Select the “Alexa Hosted (Node.js)”.
 
Choose “Fact Skill” from template options.
 

Now you will see a dashboard where we are going to build, test and deploy our Alexa skill.
 

 

We have to do some modifications for our NASA facts.

Change the facts data

Got to the “Code” tab and open the “languageStrings.js“.  


Change the FACTS list elements.  


The facts are available from line no. 21 to 25. Remove these facts and add your own facts. Use Google to find out the facts. These are the facts I have added. Just copy and paste the below facts if you are trying the same tutorial.

“NASA, or the National Aeronautics and Space Administration, was created by President Dwight Eisenhower in 1958 in response to the Soviet Union’s launch of the first artificial satellite the previous year.”,

“President John F. Kennedy gave NASA the goal of sending a man to the moon by the end of the 1960s. On July 20, 1969, the first men walked on the moon as part of the Apollo 11 mission.”,

“Twelve men have walked on the moon, all during the Apollo missions.”,

“In 1970, the Apollo 13 lunar landing was aborted after an oxygen tank exploded.”,

“The space shuttle Enterprise was the first shuttle built for the reusable spacecraft fleet, though it was created for testing and never flew in space.”,

“Enterprise was initially to be named Constitution, but fans of the TV show Star Trek ran a successful write-in campaign to change the name.”,

“The space shuttle program has had more than 120 successful flights but also two disasters in which the shuttles and crews were lost (Challenger in 1986 and Columbia in 2003).”,

“Within the next year and a half, the 51-year-old agency is slated to finish construction of the international space station and retire the three remaining shuttles — Atlantis, Discovery, and Endeavour.”,

“Space shuttle Endeavour was built using spare parts from Discovery and Atlantis.”,

“The next generation of spacecraft won’t be ready until 2015, so U.S. astronauts will travel with the Russians aboard their Soyuz spacecraft to visit the space station.”

Source: https://www.usnews.com/news/national/articles/2009/06/01/10-things-you-didnt-know-about-nasa