An open API service indexing awesome lists of open source software.

https://github.com/arcward/echokit-example

Example Alexa skill using echopy
https://github.com/arcward/echokit-example

Last synced: about 1 month ago
JSON representation

Example Alexa skill using echopy

Awesome Lists containing this project

README

          

==============
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:

.. code-block:: bash

~/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: https://github.com/arcward/echokit
.. _`official docs`: https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/developing-an-alexa-skill-as-a-lambda-function#creating-a-lambda-function-for-an-alexa-skill

.. _`Alexa dev portal`: https://developer.amazon.com/edw/home.html#/