A sample Alexa skill using echokit (https://github.com/arcward/echokit)
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
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.
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
Add a custom slot type MENU_ITEM
, with whatever values you'd like.
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!