You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unlike google action, Alexa skill doesn't have a long running session, which ends with song playback.
But sure, we still need to remember user's dialog context even on song's playback. So we use persistent attributes here.
But we face another problem - we should clear manually psedo-session data.
we does it for request.type == 'LaunchRequest'
but we can't catch complex wake up calls like:
Alexa, ask internet archive to play jazz
because from we receive request similar to which we would get in the middle of discussion:
hyzhak
changed the title
clear alexa session attributes on InOneGoMusicPlayback intent
clear alexa session attributes on InOneGoMusicPlayback intent and new session
May 2, 2018
Unlike google action, Alexa skill doesn't have a long running session, which ends with song playback.
But sure, we still need to remember user's dialog context even on song's playback. So we use persistent attributes here.
But we face another problem - we should clear manually psedo-session data.
request.type == 'LaunchRequest'
because from we receive request similar to which we would get in the middle of discussion:
except flag
session: true
:so maybe we should use this flag and clear context data when think that we faced "new session".
Which actually will be "new" in dialog like:
it is very likely that user means: play jazz of 78s.
but we would get new session and request of play jazz and sure forget about 78s and blues.
Ideas:
attributes['playbackFinished'] = true
in PlaybackFinished intentThe text was updated successfully, but these errors were encountered: