@Override public SpeechletResponse onLaunch( final LaunchRequest request, final Session session) throws SpeechletException { log.info("onLaunch requestId={}, sessionId={}", request.getRequestId(), session.getSessionId()); return Response.welcome(session); }
@Override public SpeechletResponse onLaunch(SpeechletRequestEnvelope<LaunchRequest> requestEnvelope) { log.info("onLaunch requestId={}, sessionId={}", requestEnvelope.getRequest().getRequestId(), requestEnvelope.getSession().getSessionId()); return getWelcomeResponse(); }
@Override public SpeechletResponse onLaunch(SpeechletRequestEnvelope<LaunchRequest> requestEnvelope) { log.info("onLaunch requestId={}, sessionId={}", requestEnvelope.getRequest().getRequestId(), requestEnvelope.getSession().getSessionId()); return getWelcomeResponse(); }
@Override public SpeechletResponse onLaunch(SpeechletRequestEnvelope<LaunchRequest> requestEnvelope) { log.info("onLaunch requestId={}, sessionId={}", requestEnvelope.getRequest().getRequestId(), requestEnvelope.getSession().getSessionId()); return getWelcomeResponse(); }
@Override public SpeechletResponse onLaunch(SpeechletRequestEnvelope<LaunchRequest> requestEnvelope) { log.info("onLaunch requestId={}, sessionId={}", requestEnvelope.getRequest().getRequestId(), requestEnvelope.getSession().getSessionId()); return getWelcomeResponse(); }
@Override public SpeechletResponse onLaunch(SpeechletRequestEnvelope<LaunchRequest> requestEnvelope) { Session session = requestEnvelope.getSession(); log.info("onLaunch requestId={}, sessionId={}", requestEnvelope.getRequest().getRequestId(), session.getSessionId()); return handleTellMeAJokeIntent(session); }
@Override public SpeechletResponse onLaunch(SpeechletRequestEnvelope<LaunchRequest> requestEnvelope) { log.info("onLaunch requestId={}, sessionId={}", requestEnvelope.getRequest().getRequestId(), requestEnvelope.getSession().getSessionId()); return getWelcomeResponse(); }
@Override public SpeechletResponse onLaunch(SpeechletRequestEnvelope<LaunchRequest> requestEnvelope) { log.info("onLaunch requestId={}, sessionId={}", requestEnvelope.getRequest().getRequestId(), requestEnvelope.getSession().getSessionId()); return getWelcomeResponse(); }
@Override public SpeechletResponse onLaunch(SpeechletRequestEnvelope<LaunchRequest> requestEnvelope) { Session session = requestEnvelope.getSession(); log.info("onLaunch requestId={}, sessionId={}", requestEnvelope.getRequest().getRequestId(), session.getSessionId()); return handleTellMeAJokeIntent(session); }
@Override public SpeechletResponse onLaunch(SpeechletRequestEnvelope<LaunchRequest> requestEnvelope) { log.info("onLaunch requestId={}, sessionId={}", requestEnvelope.getRequest().getRequestId(), requestEnvelope.getSession().getSessionId()); return getNewFactResponse(); }
@Override public SpeechletResponse onLaunch(SpeechletRequestEnvelope<LaunchRequest> requestEnvelope) { log.info("onLaunch requestId={}, sessionId={}", requestEnvelope.getRequest().getRequestId(), requestEnvelope.getSession().getSessionId()); return getNewFactResponse(); }
@Override public SpeechletResponse onLaunch(SpeechletRequestEnvelope<LaunchRequest> requestEnvelope) { LaunchRequest request = requestEnvelope.getRequest(); Session session = requestEnvelope.getSession(); log.info("onLaunch requestId={}, sessionId={}", request.getRequestId(), session.getSessionId()); return getWelcomeResponse(); }
@Override public SpeechletResponse onLaunch(SpeechletRequestEnvelope<LaunchRequest> requestEnvelope) { log.info("onLaunch requestId={}, sessionId={}", requestEnvelope.getRequest().getRequestId(), requestEnvelope.getSession().getSessionId()); String speechOutput = "Welcome to the Minecraft Helper. You can ask a question like, " + "what's the recipe for a chest? ... Now, what can I help you with?"; // If the user either does not reply to the welcome message or says // something that is not understood, they will be prompted again with this text. String repromptText = "For instructions on what you can say, please say help me."; // Here we are prompting the user for input return newAskResponse(speechOutput, repromptText); }
@Override public SpeechletResponse onLaunch(SpeechletRequestEnvelope<LaunchRequest> requestEnvelope) { log.info("onLaunch requestId={}, sessionId={}", requestEnvelope.getRequest().getRequestId(), requestEnvelope.getSession().getSessionId()); String speechOutput = "Welcome to the Minecraft Helper. You can ask a question like, " + "what's the recipe for a chest? ... Now, what can I help you with?"; // If the user either does not reply to the welcome message or says // something that is not understood, they will be prompted again with this text. String repromptText = "For instructions on what you can say, please say help me."; // Here we are prompting the user for input return newAskResponse(speechOutput, repromptText); }
/** * When our skill session is started, a launch event will be triggered. In the case of this * sample skill, we will return a welcome message, however the sky is the limit. * @param speechletRequestEnvelope container for the speechlet request. * @return SpeechletResponse our welcome message */ @Override public SpeechletResponse onLaunch(SpeechletRequestEnvelope<LaunchRequest> speechletRequestEnvelope) { LaunchRequest launchRequest = speechletRequestEnvelope.getRequest(); Session session = speechletRequestEnvelope.getSession(); log.info("onLaunch requestId={}, sessionId={}", launchRequest.getRequestId(), session.getSessionId()); return getAskResponse(ADDRESS_CARD_TITLE, WELCOME_TEXT); }
@Override public SpeechletResponse onLaunch(SpeechletRequestEnvelope<LaunchRequest> requestEnvelope) { log.info("onLaunch requestId={}, sessionId={}", requestEnvelope.getRequest().getRequestId(), requestEnvelope.getSession().getSessionId()); String speechOutput = "Welcome to the Savvy Consumer. For which category do you want to " + "hear the best sellers?"; String repromptText = "Please choose a category by saying, " + "books <break time=\"0.2s\" /> " + "fashion <break time=\"0.2s\" /> " + "movie <break time=\"0.2s\" /> " + "kitchen"; // Here we are prompting the user for input return newAskResponse(speechOutput, false, "<speak>" + repromptText + "</speak>", true); }
@Override public SpeechletResponse onLaunch(SpeechletRequestEnvelope<LaunchRequest> requestEnvelope) { log.info("onLaunch requestId={}, sessionId={}", requestEnvelope.getRequest().getRequestId(), requestEnvelope.getSession().getSessionId()); skillContext.setNeedsMoreHelp(true); return scoreKeeperManager.getLaunchResponse(requestEnvelope.getRequest(), requestEnvelope.getSession()); }
@Override public SpeechletResponse onLaunch(SpeechletRequestEnvelope<LaunchRequest> requestEnvelope) { log.info("onLaunch requestId={}, sessionId={}", requestEnvelope.getRequest().getRequestId(), requestEnvelope.getSession().getSessionId()); skillContext.setNeedsMoreHelp(true); return scoreKeeperManager.getLaunchResponse(requestEnvelope.getRequest(), requestEnvelope.getSession()); }
/** * Creates the SpeechletResponse for the Welcome Screen, and is triggered when handling a speech initiated request * to start the skill without providing an Intent. This method is only invoked when Session.isNew() is true. * * @param envelope SpeechletRequestEnvelope containing the Context, Session, Version, and LaunchRequest * @return SpeechletResponse containing information, spoken and visual, for the Welcome Screen */ @Override public SpeechletResponse onLaunch(final SpeechletRequestEnvelope<LaunchRequest> envelope) { LOG.info("onLaunch requestId={}, sessionId={}", envelope.getRequest().getRequestId(), envelope.getSession().getSessionId()); RequestDispatcher dispatcher = new RequestDispatcher(new LaunchRequestParser()); return dispatcher.dispatchRequest(envelope); }
/** * Creates the SpeechletResponse for the Welcome Screen, and is triggered when handling a speech initiated request * to start the skill without providing an Intent. This method is only invoked when Session.isNew() is true. * * @param envelope SpeechletRequestEnvelope containing the Context, Session, Version, and LaunchRequest * @return SpeechletResponse containing information, spoken and visual, for the Welcome Screen */ @Override public SpeechletResponse onLaunch(final SpeechletRequestEnvelope<LaunchRequest> envelope) { LOG.info("onLaunch requestId={}, sessionId={}", envelope.getRequest().getRequestId(), envelope.getSession().getSessionId()); RequestDispatcher dispatcher = new RequestDispatcher(new LaunchRequestParser()); return dispatcher.dispatchRequest(envelope); }