Skip to main content

Posts

Showing posts with the label state

Bot State with Azure

We can use  Azure Bot Application using FastAPI that integrates with Azure Cache for Redis for session management and uses Azure Cosmos DB for state management. Here are the steps to achieve this: State Management with Azure Cosmos DB : Why do you need state? Maintaining state allows your bot to have more meaningful conversations by remembering certain things about a user or conversation. For example, if you’ve talked to a user previously, you can save previous information about them, so that you don’t have to ask for it again. State also keeps data for longer than the current turn, so your bot retains information over the course of a multi-turn conversation. Storage Layer : The backend storage layer is where the state information is actually stored. You can choose from different storage options: Memory Storage : For local testing only; volatile and temporary. Azure Blob Storage : Connects to an Azure Blob Storage object database. Azure Cosmos DB Partitioned Storage : Connects ...