- Newest
- Most votes
- Most comments
Based on the information available, there isn't a direct way to configure the aws-samples/bedrock-chat frontend for anonymous "guest" users without Cognito login while maintaining the existing architecture.
For your e-commerce website use case where you need a public chatbot without login requirements, the recommended approach would be:
- Build a custom frontend (your own HTML/React application)
- Create a backend using API Gateway and Lambda that communicates with your specific Bedrock Agent/Knowledge Base using an IAM role
- Configure the backend to handle requests from anonymous users
This approach aligns with security best practices as:
- Embedding Bedrock Chat in an iframe and attempting to auto-login with stored credentials would indeed be insecure
- The Bedrock Chat sample solution appears to be designed for authenticated enterprise users rather than public embedding
There are examples of building web applications that interact with Amazon Bedrock using similar architectures. For instance, you could create a solution where:
- Your frontend makes API calls to your backend service
- Your backend service (Lambda) has the necessary IAM permissions to invoke Bedrock
- The backend handles all authentication and authorization without requiring end users to authenticate
For your specific requirements (an "AI Size Helper" that opens in a popup/iframe and talks to one specific Bedrock Agent/Knowledge Base), this custom approach would give you the control needed while maintaining security.
There's no indication in the available information about an AWS-provided public web-chat UI specifically designed for anonymous end-users, though AWS does provide various samples and frameworks that could be adapted for this purpose.
Sources
Community | Add Generative AI to a JavaScript Web App ingle page app.
Community | Use Amazon Bedrock and LangChain to build an application to chat with web pages
Community | How to build a Go application to chat with any web page
answered a year ago
Relevant content
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 7 months ago

AWS Bedrock Chat isn’t built for anonymous use — it’s an authenticated internal tool. For a public chatbot, AWS’s recommended pattern is: Frontend → API Gateway → Lambda → Bedrock Agent/KB. That gives you a safe, no-login experience without exposing credentials, and lets you embed it anywhere (iframe, popup, etc.). There’s no official AWS ‘public chat UI’ yet, so custom UI or a third-party UI + a secure proxy is the right path today.