Skip to content

mandnyc/Alexa-Hackathon-Quick-Starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alexa-Hackathon-Quick-Starter

This get started handout, walks developers through the architecture, basic terminology and steps required to get started quickly. By the end of the handout, the developer will have a Hello World application running with the knowledge to enhance it.

You can find the pdf copy with step-by-step images here

##Glossary

  • Alexa/ Alexa service: The cloud-based service that Echo uses which is capable of listening and responding to commands. It is being used in different devices. e.g Echo, Tap, smart watches and even car.
  • Echo: A smart home device that is connected to the cloud and uses Alexa.
  • Intent: An action that is invoked when a user utters a command or a statement
  • Slot: A variable that is captured from the utterance and is given to the intent
  • Intent Schema: A JSON file that describes the names and slots of all intents available within a skill.
  • Sample Utterance: Example phrases that help train Alexa to understand how utterances map to an intent. This is not an enumeration/definitive list of phrases that can trigger an intent.
  • Lambda function: A function that is triggered in response to events. This allows you to run code without managing servers.
  • ARN Amazon Resource Name : This name is like a URL which helps the Alexa service to know which resource to call. For instance, a lambda function.
  • Developer Portal Web interface: that allows developers to configure their applications. For instance, the invocation name of the skill, sample utterances, intent schema and the ARN of their lambda functions
  • Session: A place to temporarily save information in between intents.

##Project Setup ####1. Code checkout by using the following command lines. Note that this code is heavily documented for your benefit

####2. Configuration

  • Sign in AWS console

    • Log in to https://console.aws.amazon.com
    • In the top navigation, look for Services, then look for Management Tools under All AWS Services, select CloudFormation
  • In CloudFormation

    • Click the blue button labeled Create Stack
    • Then you will see the screen below calls Select template, choose Specify an Amazon S3 template URL
    • Paste this S3 URL https://s3.amazonaws.com/alexa-skills-kit-samples-cfn/cloudformation.json
    • In the image below, under Parameters, enter in FunctionName and select the template under the SampleSkill dropdown menu
    • Click Next
    • In the next screen you’ll see the below image. check the box "I acknowledge that AWS CloudFormation might create IAM resources“
    • While the CloudFormation task is creating the Lambda Function, Click on the navigation menu item Services again. Locate Compute under All AWS Services, then select Lambda
  • In Lambda

    • On this screen, you’ll see a table which has a column labeled Function Name. Locate the function name you created in the steps above and click on the name.
    • Locate the ARN in the upper right hand corner and save it to a file for later. We will use this in the developer portal at https://developer.amazon.com/ and sign in.
    • In the top navigation of the Developer Portal, locate Alexa and click on it.
  • In Developer Portal

    • Select Alexa Skill Kit, click Get Started
    • Click on the yellow button labeled Add a new skill on the top right corner
    • On the next screen, you’ll see a navigation menu on the left. Locate the menu item Skill information. This is where you decide the name and innovation name of the skill.
    • Under Interaction Model, paste the intent Schema and Sample Utterances from the SpeechAssets folder of our application hackathon-quick-start
    • When you click on the yellow button labeled Next, you’ll notice a little activity indicator in the lower left corner. This means Alexa Service is creating an interaction model for your skill.
    • Under Configuration, retrieve the ARN you saved earlier and paste it into the Endpoint. Make sure you click the radio button labeled Lambda ARN (Amazon Resource Name)

####3. Deploy

####4. Test

  • There are two ways to test your code without using the device
  • In the Developer Portal, once again click on the Alexa menu item at the top.
    • Then click on Get Started under the Alexa Skills Kit to return to the skill we previously configured
    • Click on the name of your skill in the Your Skills table.
    • On the left, click on the Test menu item to bring up the Voice and the Service Simulator as shown below.
    • Enter in your test utterance in the Enter Utterance input field and click next to see the results.
    • A successful test should look like the below image.
  • The second method is using https://echosim.io/ - Alexa in the browser where you can speak to your skill.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors