Skip to main content

Guidance for Generative AI Shopping Assistants Using Amazon Bedrock Agents

Overview

This Guidance demonstrates how to create a compelling, AI-driven shopping experience using Amazon Bedrock Agents. It shows how to securely integrate your existing systems and data, minimizing the time and complexity required to build sophisticated generative AI assistants. By following this Guidance, you can enhance your customers’ online shopping experience, providing personalized recommendations, intelligent search capabilities, and engaging conversational interactions.

How it works

These technical details feature an architecture diagram to illustrate how to effectively use this solution. The architecture diagram shows the key components and their interactions, providing an overview of the architecture's structure and functionality step-by-step.

Deploy with confidence

Ready to deploy? Review the sample code on GitHub for detailed deployment instructions to deploy as-is or customize to fit your needs.

Go to sample code

Well-Architected Pillars

The architecture diagram above is an example of a Solution created with Well-Architected best practices in mind. To be fully Well-Architected, you should follow as many Well-Architected best practices as possible.

AWS Cloud Development Kit (AWS CDK) automates and streamlines your entire deployment process for consistent and repeatable rollouts across environments. Gain visibility into user and service actions with AWS CloudTrail, and Amazon Bedrock invocation logging collects comprehensive request, response, and metadata details for insightful troubleshooting and improvement opportunities. These capabilities empower you to reduce deployment time and runtime issues while maintaining consistent environments.

Read the Operational Excellence whitepaper 

Amazon Cognito handles user authentication and authorization for the web app. CloudFront delivers static assets securely with low latency, traffic encryption, and access controls. AWS Identity and Access Management (IAM) policies are scoped down to minimize permissions. The virtual private cloud (VPC) isolates resources in a secure network environment. Amazon Virtual Private Cloud (Amazon VPC) endpoints enable direct, private connections between the VPC and AWS services without internet access, enhancing security. Anonymous user interactions are prohibited, and AWS Shield Standard defends against distributed denial of service (DDoS) attacks.

Read the Security whitepaper 

Amazon Bedrock and Lambda are deployed across multiple Availability Zones (AZs) by default, providing redundancy and high availability. Amazon S3 provides durable storage, and Lambda handles the scaling of your compute resources seamlessly. Route 53 will route your end users to healthy application endpoints through automatic failover, latency-based routing, and health checks, for reliable service delivery.

Read the Reliability whitepaper 

Fargate automatically handles scaling and infrastructure management, helping you maximize resource utilization. The Vector Engine for Amazon OpenSearch Serverless provides high-performing vector storage and search capabilities to build generative AI applications. Additionally, CloudFront, a global content delivery network that caches content closer to your users, provides low latency and high transfer speeds.

Read the Performance Efficiency whitepaper 

Optimize your costs with Fargate, which charges only for the virtual CPU and memory resources consumed by your containers, eliminating the need to provision and manage infrastructure. Amazon Bedrock provides comprehensive, flexible pricing options to meet your specific requirements. Serve your static content directly from Amazon S3, and use CloudFront to cache and compress content, minimizing data transfer costs and automatically scaling to handle traffic spikes.

Read the Cost Optimization whitepaper 

Reduce your environmental impact by using serverless services like Fargate, Lambda, Amazon S3, and Amazon Bedrock, which eliminate the need for server management and maximize resource utilization. These services are built on the energy-efficient infrastructure of AWS, which runs on renewable energy.

Read the Sustainability whitepaper 

Disclaimer

The sample code; software libraries; command line tools; proofs of concept; templates; or other related technology (including any of the foregoing that are provided by our personnel) is provided to you as AWS Content under the AWS Customer Agreement, or the relevant written agreement between you and AWS (whichever applies). You should not use this AWS Content in your production accounts, or on production or other critical data. You are responsible for testing, securing, and optimizing the AWS Content, such as sample code, as appropriate for production grade use based on your specific quality control practices and standards. Deploying AWS Content may incur AWS charges for creating or using AWS chargeable resources, such as running Amazon EC2 instances or using Amazon S3 storage.