@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); }
private LaunchRequest givenLaunchRequest() { return LaunchRequest.builder() .withRequestId(requestId) .withTimestamp(new Date()) .withLocale(Locale.forLanguageTag(locale)) .build(); }
@Override public SpeechletResponse onLaunch(SpeechletRequestEnvelope<LaunchRequest> requestEnvelope) { log.info("onLaunch requestId={}, sessionId={}", requestEnvelope.getRequest().getRequestId(), requestEnvelope.getSession().getSessionId()); return getWelcomeResponse(); }
@Override public SpeechletRequest getSpeechletRequest() { return LaunchRequest.builder() .withLocale(session.getClient().getLocale()) .withRequestId(generateRequestId()) .withTimestamp(session.getClient().getCurrentTimestamp()) .build(); } }
@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) { 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) { 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) { 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()); 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()); }