I am new to the Alexa Developing, i used ApiToBot third party application to create and build the intents and responses, I used HTTPS method to contact the server. Then i successfully deployed the project into the alexa developer account. while i'm testing the application i stuck into the error.
Right now i have to Intent and their responses are from HTTPS server. After opened the skill i received a welcome response, after that i called one intent i received response.
but i call second intent it is not showing the response and vise-versa.
Only one intent is working.
I hope this is your request and this was your response.
If that the case, your response has shouldEndSession
parameter is set to true
. What that means is that, once your response is read, Alexa will end the session and closes the skill. You are no longer inside the skill. Whenever you want Alexa to wait for user response, keep the session alive by setting shouldEndSession
parameter set to false
.
Ex: you response should be
{
"body": {
"version": "1.0",
"response": {
"outputSpeech": {
"type": "SSML",
"ssml": "<speak><p>Followers of user id 641 is [Martijn Verbove Anton Cooee Found Ryze Rebekah Radice Jonah Lupton Mila Chervenkova💪 David Morrison Tiep Vu Nicholas Tenhue Deepak Laxmi Narasimha Feda Jaan Lolly Daskal Hämorrhoiden selbst behandeln SF Ali Nicole Hardin Pradeep Chopra WhatUsersDo Alice Jones Arpit Maheshwari Мартин Стојчевски Pete Roome Dean Pikock.com Chad Scira Phil Hendrix] </p></speak>"
},
"shouldEndSession": false
}
}
}
Read this answer to know more about keeping the session alive using ask-nodejs-sdk
More info about Response Object here.