TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. Ryan694
    3. Posts
    R
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by Ryan694

    • How to end session for custom Alexa skill?

      I am creating a custom skill for Alexa. I want to close the session on AMAZON.StopIntent. How can I achieve this with below code?

      const ExitHandler = {
        canHandle(handlerInput) {
          const request = handlerInput.requestEnvelope.request;
          return request.type === 'IntentRequest'
            && (request.intent.name === 'AMAZON.StopIntent');
        },
        handle(handlerInput) {
          return handlerInput.responseBuilder
            .speak('bye!')
            .reprompt('bye!')
            .getResponse();
        },
      };
      

      mybkexperience

      posted in General Discussion
      R
      Ryan694