GithubHelp home page GithubHelp logo

rushins / hackathon-training Goto Github PK

View Code? Open in Web Editor NEW

This project forked from codyde/hackathon-training

0.0 2.0 0.0 237 KB

VMworld 2017 Hackathon Training - Getting Started with Amazon Echo and Python

Python 53.19% JavaScript 28.85% HTML 17.85% Shell 0.11%

hackathon-training's Introduction

Welcome to Python and Amazon Echo Training

In this training, we're going to take you through implementing a simple Python web server leveraging Flask. This web server is going to have 2 functions:

  • Handle API calls to our REST endpoints; processing the response into an Alexa readable format
  • Interact with the Amazon Developer Portal/Skills Portal to handle incoming calls from AWS via Intents and Utterances

What are Intents and Utterances

Intents are a lot like functions and live within the Amazon Echo/Alexa platform. Utterances are used to call intents, which on our Python web server will run functions to call API's. Within AWS, an intent is formatted as follows

[ { 'intent':'initialIntent' } ]

In this case; initialIntent is the intent. An utterance is formatted as follows

initialIntent call initial intent

As you can see, this follows the format of "intent phrase to start"

There is also the concept of "slots" which are input fields within a phrase, we will cover these in greater detail much later

Our Path Moving Forward

We will be leveraging a "wrapper" tool to accelerate our learning. Flask-Ask (or Flask Alexa Skills Kit) was implemented by John Wheeler (https://github.com/johnwheeler/flask-ask) and will significant improve the speed of our skill development.

Flask-Ask will allow us to map Flask routes back to functions within Python. These functions could be REST calls, Pyvmomi calls, pyNSXV calls, and even PowerCLI calls with enough "integrating".

In this training, we will go end to end with building a skill that interacts with our API's in a number of different ways. Lets jump in!

PROCEED TO "1 - Getting Started"

hackathon-training's People

Contributors

codyde avatar

Watchers

James Cloos avatar Rushi  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.