Hi,
I am requesting for code sample otherwise guidance for the following approach I am taking:
async WelcomeIntent() {
this.ask('Say contact detail to know about your contact');
},
async UserChoiceIntent() {
const menu_option = this.$inputs.userchoice.value;
switch(menu_option){
case "contact detail":
return this.toIntent("ContactDetailIntent");
}
},
async ContactDetailIntent() {
const emailid = $this.inputs.emailid.value;
result = async function_name(emailid) {
....
}
}
The objective is to take user’s input and based on that to navigate to another intent with a response about what to do next and alexa would ask for the input inside the navigated intent.
In the above example, what I am trying to accomplish is when user says contact detail
it will automatically navigate to ContactDetailIntent
and asks user for the input to be used in this intent. But I cannot use response
from one intent and navigation
to another immediately after this from the same intent. Is this right?
Please help me to know the best way to accomplish this.