MTS AI Commerce Assistant
MTS AI Commerce Assistant
Brand: MageTech Solutions
SKU: MTS-COMM-ASSIST
AI Sales & Product Recommendation Engine for Adobe Commerce / Magento 2. Delivers personalized product recommendations using ML, vector embeddings, and behavioral analytics.
AI Sales & Product Recommendation Engine for Adobe Commerce / Magento 2
MTS AI Commerce Assistant is a modular, scalable Magento 2 extension that delivers personalized product recommendations using machine learning, vector embeddings, and behavioral analytics. It supports OpenAI as the primary AI provider with graceful fallback to rule-based algorithms.
Package
magetech/module-ai-recommendation
Requirements
Magento 2.4.7+ · PHP 8.2+ · MySQL 8.0+ · Redis
Scale
169 source files · ~15,000 LOC
Technology Stack
| Layer | Technology | Version | Purpose |
|---|---|---|---|
| Platform | Adobe Commerce / Magento 2 | 2.4.7+ | E-commerce framework |
| Language | PHP | 8.2+ | Server-side logic |
| Database | MySQL | 8.0+ | Persistent storage |
| Cache | Redis | 6.0+ | Recommendation & session cache |
| Queue | AMQP (RabbitMQ) | 3.9+ | Async message processing |
| AI Provider | OpenAI API | v1 | Embeddings & completions |
| Embedding Model | text-embedding-3-small | — | Product vector embeddings |
| Completion Model | gpt-4o | — | Natural language recommendations |
| Frontend | RequireJS + jQuery | — | Luma theme JS modules |
| Hyva | Alpine.js + Tailwind CSS | — | Hyva theme compatibility |
| API | GraphQL + REST | — | Headless commerce support |
| Search | Elasticsearch / OpenSearch | 7.x / 2.x | Catalog search (Magento native) |
7 AI-Powered Recommendation Engines
Similar Products
Vector embedding similarity using OpenAI. Finds products that are semantically related via cosine similarity on 1536-dimensional embeddings.
Frequently Bought Together
Analyzes purchase history to show products commonly bought in combination. Frequency counting on co-occurrence in purchase events.
AI Cross Sell
Intelligent cross-sell based on product relationships and customer behavior. Uses Magento native cross-sell with AI enhancement.
AI Upsell
Suggests premium alternatives and complementary products to increase cart value with price-greater fallback algorithm.
Recently Viewed Prediction
Predicts next products based on browsing history and session patterns using category affinity scoring.
Purchase Prediction
ML-powered prediction that anticipates customer purchase intent with weighted behavioral scoring.
5 Placement Zones
- Homepage — Recommended For You (6 products)
- Category Page — You May Also Like (4 products)
- Product Page — Similar Products + Frequently Bought Together (6 products)
- Cart Page — Frequently Bought Together (4 products)
- Checkout Page — Complete Your Look (3 products)
Database Schema
6 custom tables with foreign key constraints and indexed columns for query performance:
magetech_ai_recommendation— Core recommendation entity with confidence scoresmagetech_ai_vector_embedding— 1536-dimensional product vector embeddingsmagetech_ai_tracking_event— High-volume behavioral tracking eventsmagetech_ai_prompt_template— Configurable AI prompt templates per enginemagetech_ai_recommendation_analytics— Impression, click, purchase analyticsmagetech_ai_customer_preference— Customer behavioral preference profiles
API Support
- GraphQL — 3 queries + 1 mutation for headless commerce
- REST — GET /V1/magetech/recommendations/:placement, POST /V1/magetech/tracking
- AJAX — Frontend tracking and widget endpoints
Design Patterns
- Factory — Maps engine type strings to concrete classes
- Template Method — Abstract engine defines skeleton, subclasses implement algorithm
- Strategy — 7 interchangeable algorithms behind common interface
- Repository — 4 repositories with SearchCriteria/SearchResults
- Observer — 6 observers for behavioral tracking
- Plugin / Interceptor — 4 after-plugins on Magento core classes
- Publisher-Subscriber — 3 message topics via AMQP
Performance
- Redis Caching — Engine + service layer caching, reduces AI API calls by 90%+
- Async Embedding — Message queue for non-blocking product saves
- Batch Cron — 50 products per batch, every 6 hours for embedding generation
- Cache Warming — Pre-fetches all 5 placements every 30 minutes
- Data Cleanup — Removes tracking events >90 days, analytics >180 days
Theme Compatibility
- Luma / Default — PHTML + RequireJS + jQuery (out-of-the-box)
- Hyva — Alpine.js + Tailwind CSS (full compatibility)
- PWA Studio — React + GraphQL (via API)
Admin Panel
- 12 admin controllers with full CRUD
- Analytics dashboard with CTR and conversion reports
- Engine toggle controls (enable/disable each engine)
- Prompt template editor with test functionality
- Cache management with one-click flush
- Full ACL hierarchy with granular permissions
| 0 | Adobe Commerce / Magento 2.4.7+ |
| 1 | 8.2+ |
| 2 | MySQL 8.0+ |
| 3 | Redis 6.0+ |
| 4 | AMQP (RabbitMQ) 3.9+ |
| 5 | OpenAI API v1 |
| 6 | text-embedding-3-small (1536 dimensions) |
| 7 | gpt-4o |
| 8 | Elasticsearch / OpenSearch 7.x / 2.x |
| 9 | Luma, Hyva, PWA Studio |
| 10 | GraphQL + REST + AJAX |
| 11 | 169 files · ~15,000 LOC |
| 12 | 6 custom tables |
| 13 | Factory, Strategy, Template Method, Repository, Observer, Plugin, Publisher-Subscriber |
Related Products
You May Also Like
MTS AI WhatsApp CRM
₹4,999.00 /mo after trial
MTS AI WhatsApp CRM + Billing + Inventory (All-in-One)
₹9,999.00 /mo after trial
MTS Social Media Content Generator
Need Help Choosing?
Our team is ready to help you find the perfect solution for your business.
Get a Free Quote