Amazon Bedrock enables developers to integrate powerful Generative AI models without the complexity of model training, infrastructure management, or scaling. With the introduction of Amazon Bedrock AgentCore, developers now have a highly modular framework to orchestrate AI agents, manage secure data gateways, and route queries seamlessly. By leveraging Bedrock and AgentCore together, you can build intelligent, multi-step applications that process and respond to user queries efficiently.
In this Cloud Lab, you’ll build a complete multi-user conversational application using Amazon Bedrock Agents with session memory maintenance. The goal is to demonstrate how Bedrock Agents can recall user goals, assist actions across multiple sessions, and how this integrates into a real-world web application.
You’ll start by creating an Amazon DynamoDB table to manage user accounts, including login credentials and session tracking for each user. This ensures every user who signs in receives a unique session ID that ties directly to their conversation history.
Next, you’ll create a Bedrock AgentCore Harness (Agent) and enable the memory feature with session summarization. This ensures that every user interaction is tied to their session ID, allowing the Agent to recall prior conversations and generate context-aware responses.
Finally, you’ll integrate the agent into a Flask-based web application that allows users to sign up, log in, and log out securely. Once authenticated, users can interact with the Bedrock Agent through a chat interface. Each query is routed with the correct session ID, allowing the agent to retrieve stored summaries and continue the conversation naturally. Users can log out and return later, with conversations picking up where they left off.
By the end of this Cloud Lab, you will have created a fully functional multi-user conversational AI application powered by Amazon Bedrock, DynamoDB, and Flask, that can maintain session memory across conversations.
The following is the high-level architecture diagram of the infrastructure you’ll create in this Cloud Lab: