flowchart TD
A[Customer Request] --> B[Orchestrator Agent]
B --> C{Request Type?}
C -->|Quote| D[Quoting Agent]
C -->|Order| E[Order Fulfillment Agent]
C -->|Inventory| F[Inventory Agent]
C -->|Report| G[Reporting Agent]
D --> H[(Database)]
E --> H
F --> H
G --> H
H --> I[Response]
D --> I
E --> I
F --> I
G --> I
I --> J[Customer]
style A fill:#f9f,stroke:#333,stroke-width:2px
style B fill:#bbf,stroke:#333,stroke-width:2px
style D fill:#9cf,stroke:#333,stroke-width:2px
style E fill:#9cf,stroke:#333,stroke-width:2px
style F fill:#9cf,stroke:#333,stroke-width:2px
style G fill:#9cf,stroke:#333,stroke-width:2px
style H fill:#ff9,stroke:#333,stroke-width:2px
style I fill:#9f9,stroke:#333,stroke-width:2px
style J fill:#f9f,stroke:#333,stroke-width:2px
-
Customer Request: The system receives a request from a customer (quote, order, inventory check, or report).
-
Orchestrator Agent: The orchestrator analyzes the request and routes it to the appropriate agent.
-
Specialized Agents:
- Quoting Agent: Generates price quotes based on historical data and inventory levels.
- Order Fulfillment Agent: Processes orders, updates inventory, and handles transactions.
- Inventory Agent: Manages stock levels and initiates reordering when needed.
- Reporting Agent: Generates financial and inventory reports.
-
Database: All agents interact with a centralized database to read and update information.
-
Response: The system provides a response back to the customer through the orchestrator.
- Routes requests to the appropriate agent
- Coordinates communication between agents
- Returns final responses to the customer
- Generates competitive quotes
- Considers historical pricing and current inventory
- Applies bulk discounts when applicable
- Processes customer orders
- Updates inventory levels
- Handles payment processing
- Manages order status
- Monitors stock levels
- Identifies items needing reorder
- Manages supplier relationships
- Updates inventory records
- Generates financial reports
- Provides inventory status updates
- Tracks sales and revenue
- Identifies trends and insights