Init Router with object containing all your request handlers.
Before:
const router = new Router(
// list your request handlers here like you did it in skillBuilder.addRequestHandlers()
SessionEndedRequestHandler,
CancelIntentHandler,
HelpIntentHandler,
FallbackHandler,
);
After:
const router = new Router({
// list your request handlers here like you did it in skillBuilder.addRequestHandlers()
SessionEndedRequestHandler,
CancelIntentHandler,
HelpIntentHandler,
FallbackHandler,
});
After that update you can use jumpTo()
. This code will jump to HelpIntentHandler.
return await router.jumpTo(handlerInput, 'HelpIntentHandler');