I have worked through a few examples of maintaining a session state, most notably the madlibbuilder from big nerd ranch https://github.com/bignerdranch/developing-alexa-skills-solutions/tree/master/3_sessionsAndVUI/solution/madlibbuilder
This seems to have predominantly a single intent that is put in the relevant slot of the text based on a session int that is maintained in the session state.
What I want to do is manage multiple intents in the same session state though and I don't know the best way to do this. As an example, base on the user speech intent, Alexa might respond with a question that might have a yes/no answer. I can add the yes and no intents but what is the best way to manage correlating this with the current session state?
Ideally I would like to build a workflow that handles responses (including yes/no intents) which determines the response from Alexa and the subsequent path through the workflow.
U: Alexa, start myApp
A: Hello, Shall we play a game?
U: Yes, let's play thermonuclear war
A: Wouldn't you prefer a good game of chess?
U: No, let's play thermonuclear way
Basically i want to know what the best way is to manage a session with varying paths through a workflow.
Currently I am exploring just passing off whatever the speech intent is with the session id to a third party api that will manage the response - such as what this appears to be: https://freebusy.io/blog/building-conversational-alexa-apps-for-amazon-echo