This Alexa Doc shows that the sessionAttributes is one of the response parameters and not within the response
object.
I'm using the Alexa SDK and all of the emit
response builders only use the response
object's parameters. For example:
this.emit(':elicitSlot', slotToElicit, speechOutput, repromptSpeech, updatedIntent)
So how can I use emit()
from the Alexa SDK and also pass an updated sessionAttributes in the response?