As per documentation in
null, or don't define it at all. This keeps the session open without opening the microphone.
undefined – In this case, the session's behavior depends on the type of Echo device that the user is interacting with and whether there is an active Input Handler. If the device has a screen, the session stays open for up to 30 more seconds, without opening the microphone to prompt the user for input. If the user speaks and precedes their request with "Alexa", the request is sent to the skill. Otherwise, Alexa ignores the user's speech. If an Input Handler is active, the session continues to stay open until the skill calls StopInputHandler or the Input Handler times out.
I tried every possible way to set shouldEndSession and finally decided to handle response by myself so i´m pretty sure i´m sending the proper values, nevertheless it doesn´t work as expected on an echo dot. It works properly in an Echo Spot.
response=responseBuilder.getResponse(); //response.shouldEndSession=null; delete response.shouldEndSession; return response;
Sure there must be anyone who had the same experience.