alexa-app icon indicating copy to clipboard operation
alexa-app copied to clipboard

Setting context

Open alekslyse opened this issue 7 years ago • 2 comments

Is it possible to set a context state or trigger a dialogue if none is set in the pre function?

Example if I want to just get data from one category I would like Alexa to ask what category do you want once, remember it unless the user say change category.

Something like the pre function if all underlying intents require category set.

alekslyse avatar May 08 '18 21:05 alekslyse

You can use session attributes for this. Each intent could call a common function to check to see if category is set in session, and if not, prompt the user for it. Or you could also do it in pre().

matt-kruse avatar May 09 '18 03:05 matt-kruse

So is it possible to start an alexa conversation with a custom function?

call function by code -> alexa starts conversation dialouge -> go on with code

If so, is it described in the doc?

alekslyse avatar May 09 '18 09:05 alekslyse