Retail & E-commerce Ontology
Comprehensive domain knowledge for retail stores and online commerce operations.
Overview​
The Retail ontology provides AI agents with deep understanding of:
- Product catalog and inventory management
- Customer service and support
- Order processing and fulfillment
- Returns and refunds
- Loyalty programs and promotions
Key Entities​
| Entity | Description | Attributes |
|---|---|---|
| Product | Merchandise item | SKU, Price, Stock, Category |
| Customer | Shopper | Name, Loyalty Status, History, Preferences |
| Order | Purchase | Items, Total, Status, Payment |
| Return | Merchandise return | Reason, Amount, Status, Restocking |
| Promotion | Discount offer | Type, Value, Conditions, Dates |
Common Workflows​
Order Processing​
graph LR
A[Order Placed] --> B[Payment]
B --> C{Approved?}
C -->|Yes| D[Fulfillment]
C -->|No| E[Decline]
D --> F[Ship]
F --> G[Deliver]
Customer Service​
- Product inquiries and recommendations
- Order status and tracking
- Return and exchange processing
- Complaint resolution
- Loyalty program management
Regulatory Compliance​
| Regulation | Scope | Key Requirements |
|---|---|---|
| PCI-DSS | Payment processing | Secure card data handling |
| Consumer Protection | Sales practices | Fair advertising, warranties |
| ADA | Physical/digital stores | Accessibility compliance |
| State Sales Tax | Revenue | Collection, remittance |
Prompt Templates​
Product Recommendation​
Recommend products for customer:
- Customer: {customer_id}
- Purchase history: {past_purchases}
- Browsing: {viewed_products}
- Budget: {price_range}
Suggest relevant products based on preferences,
trending items, and complementary purchases.
Return Processing​
Process return request:
- Order: {order_number}
- Items: {return_items}
- Reason: {return_reason}
- Date purchased: {purchase_date}
Verify return policy eligibility, calculate refund,
provide return label, and update inventory.
This ontology is continuously updated based on retail trends and e-commerce best practices.