Skip to content

Commit

Permalink
update readme for email simulator & fix UI wrong label
Browse files Browse the repository at this point in the history
  • Loading branch information
Corneliu Croitoru committed Nov 4, 2024
1 parent 4685512 commit 8ff95c2
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 27 deletions.
Binary file modified docs/public/chat_mode.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/public/email_mode.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
64 changes: 40 additions & 24 deletions examples/ecommerce-support-simulator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,39 +45,55 @@ Both interfaces demonstrate:

## 🏗️ System Architecture

### Agent Architecture

![Agents](./img/ai_e-commerce_support_system.png)
![E-commerce Email Simulator System](./img/ai_e-commerce_support_system.jpg)

The system employs multiple specialized AI agents, each designed for specific tasks:

#### 1. Order Management Agent
- **Model**: Anthropic Claude 3 Sonnet
- **Purpose**: Handles all order-related inquiries
- **Custom Tools**:
- `orderlookup`: Retrieves detailed order information
- `shipmenttracker`: Provides real-time shipping status
- `returnprocessor`: Initiates and manages return requests
- **Key Features**:
- Accesses order database
- Tracks shipments in real-time
- Processes return requests
- Handles refund inquiries
- **Implementation**: `BedrockLLMAgent`
- **Model**: Anthropic Claude 3 Sonnet (`anthropic.claude-3-sonnet-20240229-v1:0`)
- **Purpose**: Handles all order-related inquiries and management tasks
- **Tools**:
- `orderlookup`:
- Retrieves order details from database
- Input: `orderId` (string)
- Returns: Complete order information including status, items, and pricing
- `shipmenttracker`:
- Provides real-time shipping status updates
- Input: `orderId` (string)
- Returns: Current shipment status, location, and estimated delivery
- `returnprocessor`:
- Manages return request workflows
- Input: `orderId` (string)
- Returns: Return authorization and instructions


#### 2. Product Information Agent
- **Model**: Anthropic Claude 3 Haiku
- **Purpose**: Provides detailed product information and specifications
- **Implementation**: `BedrockLLMAgent`
- **Model**: Anthropic Claude 3 Haiku (`anthropic.claude-3-haiku-20240307-v1:0`)
- **Purpose**: Provides comprehensive product information and specifications
- **Integration**:
- Connected to `AmazonKnowledgeBasesRetriever` for product data
- Knowledge Base ID configuration required
- **Key Features**:
- Integrates with product knowledge base
- Provides availability information
- Handles specification inquiries
- Real-time product database access
- Specification lookups
- Availability checking
- Compatibility information


#### 3. Human Agent
- **Implementation**: Custom `HumanAgent` class extending base `Agent`
- **Purpose**: Handles complex cases requiring human intervention
- **Integration**:
- AWS SQS integration for message queuing
- Requires queue URL configuration
- **Features**:
- Asynchronous message handling
- Bi-directional communication support
- Customer and support message routing

#### 3. Human Agent (Custom Implementation)
- **Type**: Custom agent implementation
- **Purpose**: Handles complex cases and verifies AI responses
- **Key Features**:
- Handles complex customer complaints
- Provides human oversight for critical decisions

### AWS Infrastructure

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file modified examples/ecommerce-support-simulator/img/chat_mode.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/ecommerce-support-simulator/img/email_mode.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -272,13 +272,13 @@ const SupportSimulator = () => {
<div className="w-full max-w-6xl bg-white rounded-2xl p-8 flex flex-col shadow-lg border border-gray-200">
<div className="text-center mb-6">
<h1 className="text-3xl font-bold text-blue-600 mb-4">
Multi-Agent Orchestrator Demo
AI-Powered E-commerce Support Simulator
</h1>
<p className="text-lg text-gray-700 mb-3">
Experience the power of intelligent routing and context management across multiple AI agents.
Experience the future of customer support with our multi-agent AI system.
</p>
<p className="text-md text-gray-600 italic mb-0">
Type "hello" or "bonjour" to see the available agents, or ask questions like "How do I use agents?"
Try asking "Where is my order?" or "I want to return an item" to see how our AI handles customer support inquiries!
</p>
</div>

Expand Down

0 comments on commit 8ff95c2

Please sign in to comment.