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 and Foods slots, and offset the value to Redis using userId...