ask-alexa-pykit icon indicating copy to clipboard operation
ask-alexa-pykit copied to clipboard

Support dialog 'context'

Open ysak-y opened this issue 8 years ago • 3 comments
trafficstars

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?

ysak-y avatar May 11 '17 08:05 ysak-y

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)

anjishnu avatar May 13 '17 23:05 anjishnu

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?

ysak-y avatar May 16 '17 09:05 ysak-y

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

mickster04 avatar Jun 19 '17 03:06 mickster04