Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting context #345

Open
alekslyse opened this issue May 8, 2018 · 2 comments
Open

Setting context #345

alekslyse opened this issue May 8, 2018 · 2 comments

Comments

@alekslyse
Copy link

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.

@matt-kruse
Copy link
Collaborator

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().

@alekslyse
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants