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
- Host: GitHub
- URL: https://github.com/arcward/echokit-example
- Owner: arcward
- License: mit
- Created: 2017-04-22T18:00:40.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-01T17:58:06.000Z (almost 9 years ago)
- Last Synced: 2025-11-20T14:33:27.378Z (7 months ago)
- Language: Python
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
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#/