anjishnu / ask-alexa-pykit

A minimalist SDK for developing skills for the Amazon Echo's ASK - Alexa Skills Kit using Amazon Web Services's Python Lambda Functions. Currently supported profiles are for Linux servers and AWS Lambda. Check the appropriate release branch. The cherrypy release branches have added components for request validation.
MIT License
275 stars 58 forks source link

Support dialog 'context' #34

Open ysak-y opened 7 years ago

ysak-y commented 7 years ago

Overview

For example, we want to implement another function when YesIntent is passed. Because Yes is used some situation like Do you want to call to this hotel? or Do you want to book this hotel?. What can we recognize it?

To use context attribute, we can recognize what means 'Yes'.

So I want to add context option like alexa.create_response(text).with_context(context). and something logic for routing intent properly.

What do you think?

anjishnu commented 7 years ago

Do we need to add this to the library given that Amazon has started supporting this functionality via their skill builder tool? (currently in beta)

ysak-y commented 7 years ago

Really? I use beta skill builder tools, but can't find it.

I mean context is like below.

https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs#making-skill-state-management-simpler

You mean same?

mickster04 commented 7 years ago

From what I can see, our lambda should be able to see if the slot has been confirmed etc. I am having a problem whereby alexa is not prompting for the slot I have listed as required. according to the following I should see some kind of DialogState in the inbound object, but I can't see it in the object passed through to my lambda, is there something being modified somewhere before it gets to my main handler method?

https://forums.developer.amazon.com/questions/68664/alexa-fails-to-reprompt-for-slots-flagged-as-requi.html