Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save muttoni/cf99b035b3b3387882beabc2308ad5f6 to your computer and use it in GitHub Desktop.

Select an option

Save muttoni/cf99b035b3b3387882beabc2308ad5f6 to your computer and use it in GitHub Desktop.
dialogue
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