Когда вы находитесь в сеансе навыков, вам не нужно каждый раз использовать имя вызова навыка.

у задать Алексе разные вопросы, а затем в конце хочу спросить: «Есть ли что-то еще, что вы хотели бы знать?» и когда я говорю «да» (где «да», работает предложение), он должен предлагать меня в соответствии с намерением, в котором я нахожусь. Например, если я нахожусь в

IncityIntent:

    'InCityIntent': function () {
        speechOutput = '';


speechOutput = "The atmosphere in the city is beautiful. Is there anything else you would like to know";
        this.emit(":ask", speechOutput, speechOutput);


'YesIntent': function () {
        speechOutput = '';
/*when the user say yes, he should get this output*/  
            speechOutput = You can learn more about city by trying, alexa what are the best places in the city";
            this.emit(":tell",speechOutput, speechOutput);

FoodIntent:

    'FoodIntent': function () {
        speechOutput = '';


speechOutput = "Food in the city is delicious. Is there anything else you would like to know";
        this.emit(":ask", speechOutput, speechOutput);

'YesIntent': function () {
        speechOutput = '';
/*change in response here*/
            speechOutput = You can learn more about food by trying, alexa what are the best restaurants in the city";
            this.emit(":tell",speechOutput, speechOutput);

Ответы на вопрос(1)

Ваш ответ на вопрос