Last Updated on September 14, 2021 by Admin
An Alexa Skill Builder is developing a skill containing a multi-turn dialog that can be invoked with or without a specific intent request. On invocation, the skill needs to retrieve persistent attributes that have been saved by a previous invocation, and then copy them into session attributes.
How should the Builder implement this functionality?
- Place logic within the skill’s SessionEndedRequest intent handler to copy the persistent attributes into the session attributes.
- Implement ResponseInterceptor containing logic that takes the current persistent attributes and copies them into session attributes.
- Include logic within the LaunchRequest intent handler to retrieve persistent attributes and copy them into session attributes.
- Implement RequestInterceptor containing logic which for new sessions, retrieves persistent attributes and copies them into session attributes