About dialog states
During the conversation, you need to understand the previous context in order to fulfill a new request from the user. For example, when the user says alexa ask henry's kitchen get more recipes
, you realize that the user is asking for more recipes based on previously provided Foods
and DietTypes
slots. In order to fulfill this context-based request, you need to store the data from previous conversations. To achieve this, you will be using the Redis key value pair in memory caching database. Redis is easy to use and very popular in the open source community for storing simple data, and Redis will be perfect for storing and retrieving the application dialog states.
Here is the conversational flow while managing states on a Redis server:
GetCookingIntent
completes first time.- Store the
DietTypes
andFoods
slots, and offset the value to Redis usinguserId
. The offset starts at0
and time to expire is set to 2 minutes. TheuserId
is passed on every request as part of the session...