I have saved a session attribute:
context.setSessionAttribute('RadioName', radioFound);
And I have used it to search for a the variable "result" in another intent this way:
context.alexaSkill().audioPlayer().play(result, 'First song').tell("I will play your radio");
I still need to use the same attribute radioName in another intent. But, since "tell" ends the session. This seems to be impossible.
Using ask instead of tell reasonably doesn't work since the audioplayer won't work.
Is there any way to go around this issue?
Thank you.
Audioplayer responses do not keep the session open, so it is not possible to save data in session attributes.
I recommend to persist data in a database like this:
For this, you need to set up a database. A local file is used by default for local prototyping. For AWS Lambda, we recommend DynamoDB.
Learn more here: