Giter Site home page Giter Site logo

echokit-example's Introduction

echokit-example

A sample Alexa skill using echokit (https://github.com/arcward/echokit)

Setting up

Lambda

Set up your Lambda function as described in the official docs, with the following exceptions:

  • At the Select blueprint screen, choose Python 3.6 as the runtime, then choose Blank Function
  • In the Configure function section, set:
    • Runtime: Python 3.6
    • Handler: order_skill.handler

Alexa

See the official docs for a more comprehensive guide.

After setting your skill name/invocation name, copy the application ID. Then, open echokit-example/order_skill/order_skill.py and set echokit.application_id as your own app ID.

Interaction model

See echokit-example/interaction_model/

Intent schema:

{
  "intents": [
    {
      "intent": "OrderIntent",
      "slots": [
        {
          "name": "menu_item",
          "type": "MENU_ITEM"
        }
      ]
    },
    {
      "intent": "HoursIntent"
    },
    {
      "intent": "CancelIntent"
    }
  ]
}

Utterances:

HoursIntent what are your hours
OrderIntent I'll have {menu_item}
CancelIntent cancel my order
Custom slot types

Add a custom slot type MENU_ITEM, with whatever values you'd like.

Creating the Lambda deployment ZIP

After installing echokit, in the command line, from the echokit-example/ directory, run echodist order_skill. For example, if you cloned this repo in your home directory:

~/echokit-example $ echodist order_skill/

You can then upload the resulting order_skill.zip file via the Lambda console and test your skill from there or the Alexa dev portal!

echokit-example's People

Contributors

arcward avatar

Watchers

 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.