GithubHelp home page GithubHelp logo

garystafford / alexa-skill-azure-facts Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 3.0 920 KB

Alexa Custom Skill, using the latest Alexa Skills Kit, AWS Serverless Platform, and Node.js

License: MIT License

JavaScript 86.94% Shell 13.06%
alexa skill custom serverless lambda dynamodb aws

alexa-skill-azure-facts's Introduction

'Azure Tech Facts' Alexa Custom Skill

Demonstration skill for post, Building Asynchronous, Serverless Alexa Skills with AWS Lambda, DynamoDB, S3, and Node.js. Explores the creation of an Alexa Custom Skill, using the latest Alexa Skills Kit, the AWS Serverless Platform, and Node.js.

Alexa Custom Skill Architecture

About the Skill

Ask Alexa technical facts about Microsoft Azure, the cloud computing service created by Microsoft for building, testing, deploying, and managing applications and services through a global network of Microsoft-managed data centers. Current facts include Certifications, Cognitive Services, Competition, Compliance, Description, First Product, Geographies, Global Presence, Platforms, Product Categories, Products, Regions, Release Date.

Deployment and Testing

export AWS_ACCESS_KEY_ID=<YOUR_AWS_ACCESS_KEY_ID>
export AWS_SECRET_ACCESS_KEY=<YOUR_AWS_SECRET_ACCESS_KEY>
ask init # create default profile
ask deploy --profile default

Create DynamoDB Table

aws dynamodb create-table \
  --table-name AzureFacts \
  --attribute-definitions \
    AttributeName=Fact,AttributeType=S \
  --key-schema AttributeName=Fact,KeyType=HASH \
  --provisioned-throughput ReadCapacityUnits=3,WriteCapacityUnits=3

Import data into DynamoDB

aws dynamodb batch-write-item \
  --request-items file://data/AzureFacts.json

Create S3 Bucket

aws s3api create-bucket \
  --bucket <your_bucket_name> \
  --region us-east-1

Simulate Skill

ask simulate \
  --text "Load Azure Tech Facts" \
  --locale "en-US" \
  --skill-id "<your_skill_id>" \
  --profile "default"

# run multiple tests
sh ./tests/tests.sh

Sample Invocations

One-Shot Invocation

  • "Alexa, ask Azure Tech Facts for a random fact for Gary"
  • "Alexa, ask Azure Tech Facts to tell Michele about global infrastructure"
  • "Alexa, ask Azure Tech Facts about certifications for Shawn"

4-part Invocation

  • "Alexa, load Azure Tech Facts"
  • "Ask a question"
  • "My name is Alice"
  • "Tell me about certifications"

3-part Invocation

  • "Alexa, ask Azure Tech Facts for a fact"
  • "My name is Matt"
  • "When was Azure released"

2-part Invocation

  • "Alexa, ask Azure Tech Facts about Azure's Cognitive Services"
  • "My name is Frank"

References

alexa-skill-azure-facts's People

Contributors

garystafford avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.