GithubHelp home page GithubHelp logo

mr-rigden / alexa_template Goto Github PK

View Code? Open in Web Editor NEW
44.0 6.0 15.0 37 KB

A template and tutorial for building an Alexa Skill written in Python focused on readability.

License: MIT License

Python 100.00%
python alexa alexa-skill echo tutorial template alexa-template

alexa_template's Introduction

  • ๐Ÿ‘‹ Hi, Iโ€™m @mr-rigden
  • ๐Ÿ‘€ Iโ€™m interested in ...
  • ๐ŸŒฑ Iโ€™m currently learning ...
  • ๐Ÿ’ž๏ธ Iโ€™m looking to collaborate on ...
  • ๐Ÿ“ซ How to reach me ...

alexa_template's People

Contributors

hansman avatar mr-rigden avatar paralax avatar shivam2146 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

alexa_template's Issues

issue with non-existing session attributes

Following the tutorial on YouTube and using the template code here will fail in Sessions, because event['session]['attributes'] doesn't exist at time of calling the intent handler. In addition, the on_launch() returns a statement() with 'shouldEndSession' set to True.

One solution is:

  • Return conversation() in on_launch() with a {} passed as third parameter
  • Add a simple check for the 'attributes' dictionary to exist in the intent_router() and create it if it doesn't yet.

There was a problem with the requested skill's response

Hey,
Very nice tutorial, I followed the steps and understood a bit more about the alexa workflow.

But after setting up my lambda function and my alexa skill with your templates and configuring the endpoints, when testing I get the error :

"There was a problem with the requested skill's response"
and the JSON output is NULL.

I might have done something wrong somewhere, but it would be awesome to have a mini-tutorial on
how to test this sample function;

like utterances and sample responses, or expected outputs for LaunchRequest and so it goes.

Best, Tiago

KeyError

Hello!
I'm having trouble trying the codes from your tutorial, I keep getting KeyErrors.
def lambda_handler(event, context): if event['request']['type'] == "LaunchRequest": return on_launch(event, context)
I get KeyErrors from the 'request' and 'type'
here are the error messages
{ "errorMessage": "'request'", "errorType": "KeyError", "stackTrace": [ [ "/var/task/lambda_function.py", 4, "lambda_handler", "if event['request']['type'] == \"LaunchRequest\":" ] ] }
Here is the error log:
START RequestId: 70dd82f9-6bc3-11e8-b25c-c14a803a833c Version: $LATEST 'request': KeyError Traceback (most recent call last): File "/var/task/lambda_function.py", line 4, in lambda_handler if event['request']['type'] == "LaunchRequest": KeyError: 'request'
Can someone explain to me what is causing the KeyError? How do I fix this?
Thank You!

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.