Created
May 3, 2018 13:36
-
-
Save muttoni/cf99b035b3b3387882beabc2308ad5f6 to your computer and use it in GitHub Desktop.
dialogue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const request = handlerInput.requestEnvelope.request; | |
| const responseBuilder = handlerInput.responseBuilder; | |
| let sessionAttributes = handlerInput.attributesManager.getSessionAttributes(); | |
| // delegate to Alexa to collect all the required slots | |
| const currentIntent = request.intent; | |
| if (request.dialogState && request.dialogState !== 'COMPLETED') { | |
| return handlerInput.responseBuilder | |
| .addDelegateDirective(currentIntent) | |
| .getResponse(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment