hi
in states bellow
I can’t access to TotoIntent() when I’m in OrderState.
How to trigger TotoIntent() if this outside current state ?
app.setHandler({
LAUNCH() {
// Ask for a yes-no-question and route to order state
this.$speech.addText('Do you want to order something?');
this.$reprompt.addText('Please answer with yes or no.');
this.followUpState('OrderState')
.ask(this.$speech, this.$reprompt);
},
OrderState: {
YesIntent() {
// Do something
},
NoIntent() {
// Do something
},
},
// Default intents without states below
Unhandled() {
// Do something
},
TotoIntent() {
// Do something
},
END() {
// do something
}
});