
jChatbot UI Integration:
- Amazon Lex V2: Proper chatbot interface with BedrockAgentIntent for
seamless Bedrock integration
• Web Chat UI: React/Vue frontend for web users
• Mobile App: Native mobile application support
• Chat Orchestrator Lambda: Routes conversations between Lex and Bedrock
services
VPC & Networking (us-east-1):
- VPC: Proper 10.0.0.0/16 CIDR with public/private subnets
• Internet Gateway: For public internet access
• Application Load Balancer: Distributes traffic in public subnet
• NAT Gateway: Enables outbound internet access from private subnet
• VPC Endpoints: Private connections to Bedrock services via AWS PrivateLink
• bedrock endpoint for control plane APIs
• bedrock-runtime endpoint for model invocations
Enhanced Architecture Flow:
- User Interaction: Users interact via web UI or mobile app
- Lex Integration: Amazon Lex V2 processes natural language and routes to
Bedrock using BedrockAgentIntent
- Private Connectivity: All Bedrock calls go through VPC endpoints (no internet
required)
- Agent Processing: Bedrock Agent generates SQL and invokes Lambda functions
- Data Operations: Lambda functions interact with RDS (appointments) and
OpenSearch (RAG)
Security Enhancements:
- Private Subnets: All compute resources in private subnets
• VPC Endpoints: Secure, private communication with Bedrock
• IAM Roles: Least-privilege access for all services
• Encryption: KMS keys for data at rest and in transit
Key Benefits:
- No Internet Dependency: Bedrock access via VPC endpoints
• Scalable UI: Multiple frontend options (web, mobile)
• Secure: All traffic stays within AWS network
• Cost Optimized: VPC endpoints reduce data transfer costs
• Monitored: Comprehensive logging and tracing
Architecture Components:
Core Bedrock Services:
- Bedrock Agent: Handles appointment scheduling with SQL generation
capabilities
• Bedrock Knowledge Base: Manages RAG-based Q&A functionality
• Foundation Model: Claude/Titan for natural language processing
Agent Action Groups:
- Appointment Scheduler Function: Lambda function that generates and
executes SQL statements (INSERT, UPDATE, DELETE, availability checks)
• RAG Query Function: Lambda function for document retrieval and answer
generation