Back to Top

Guide for Magento 2 AI Product Recommendation

Updated 10 October 2024

Magento 2 Product Recommendation extension is an additional feature for the Magento 2 e-commerce platform. 

It allows the store admins to enable AI-based product recommendations on their Magento 2 store.

Magento 2 AI product recommendation utilizes artificial intelligence to suggest products to the customers in the Adobe Commerce store.

The AI algorithm analyzes the products viewed by the customer and provides product suggestions using the embedding technique.

It matches the products’ names, SKUs, super attributes, searchable attributes, and filterable attributes to suggest similar products in the Magento store.

Start your headless eCommerce
now.
Find out More

You can also check our Magento 2 AI Image Search Extension where a customer can search for products based on images using AI technology.

For added functionality, consider exploring the Magento 2 Image Background Removal extension to remove image backgrounds.

Also, you can check the Adobe Commerce AI reporting dashboard that give you an upper hand on enhanced data analysis within the Magento 2 store.

Features

  • The admin can set the number of suggested products to display, ranging from 1 to 10.
  • Admin can set the distance value for defining the accuracy of the suggestions, with 1 as the most accurate and 10 as the least.
  • Automatically generates product recommendations for customers.
  • Matches products based on names, SKUs, super attributes, searchable attributes and filterable attributes.
  • Uses embedding Technique to identify and recommend products through AI.
  • Fully integrates with Adobe Commerce for seamless operation.

Minimum System Requirement (API Setup)

The following minimum system requirements are needed for this extension,

  • RAM (4 GB)
  • Space (4 GB)
  • Server key and cert files (for Flask API)
  • Docker
  • Two ports (5000 and 8000)
  • API Key (Gemini,OpenAI)

Installation

The installation is quite simple just like the standard Magento 2 extensions.

#Download Module

Firstly, you need to log in to the Webkul Store, go to My Account>My Purchased Products section, verify, and then download and extract the contents of this zip folder on the system.

#Upload Folder

Once the module zip extracts, follow path src>app and then copy the app folder into the Magento 2 root directory on the server as shown below:

magento2 installation

# Run Commands

You need to run the following commands:

php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
php bin/magento indexer:reindex
php bin/magento cache:flush

# Additional Commands

You need to run the following commands to create the embeddings:

Create/update existing product image embeddings via terminal.

php bin/magento generate:image:embeddings

Create/update selected product image embeddings via the terminal.

php bin/magento generate:image:embeddings -p 1,2,3

Language Translation

For translating the module language, navigate through the app/code/Webkul/AIProductRecommendation/i18n and edit the en_US.csv file.

Thereafter, rename the CSV as “en_SA.csv” and translate all right side content after the comma in the Arabic language. After editing the CSV, save it.

installation folder

Now, upload it to the path app/code/Webkul/AIProductRecommendation/i18n where the installation of Magento 2 is on the server.

The Magento 2 (Adobe Commerce) AI Product Recommendation will be translated into the Arabic Language. It supports both RTL and LTR languages.

The user can edit the CSV like the image below.

image code

Initial Configuration Settings

After the successful installation of the module, the admin will navigate to Stores > Configuration > AI General Configuration.

basic configuration

You can also access the initial configuration by navigating the AI Configuration > General Configuration.

basic config-2

General Settings:

1. ChromaDB Endpoint: Enter your ChromaDB Endpoint.

Note: Here, ChromaDB is used as a vector database.

2. LLM Server Endpoint: Enter your LLM Server Endpoint.

3. API Key: Admin needs to fill in the API Key.

Adobe Commerce: AI Product Recommendation Settings

1. Enabled: The admin can enable or disable the extension functionality in their Magento 2 store by choosing Yes or No.

2. Distance: This setting lets the admin set the distance value.

Note: The value must be greater than 0 and less than or equal to 10 (Represents suggestion accuracy where 1 is highly accurate and 10 is the least).

Now, click on the save Config to save the configuration.

3. Show Products: This setting lets the admin set the number of products(suggestions) to be displayed on the front end after matching the product information.

Below Image Shows How to Train Data/Generate Embeddings

embedding commands

Storefront – Workflow AI Product Recommendation

After the successful configuration of the module, on the product page, it will generate the AI Recommended section for products suggested by AI.

ai recommended

Adjusting the distance value to 1 and the show products value to 5 in the backend will more accurately display five products recommended by AI.

recommended section

let us take another product’s example: changing the distance value to 4 and the show products value to 7 in the backend.

backpack

Similarly, the admin can choose the number of products to be recommended by the AI and the accuracy of the suggestion as per his choice.

Support

That’s all for AI-Powered Product Recommendation for Magento 2 extension.

If you still have any issues feel free to add a ticket and let us know your views to make the module better at  webkul.uvdesk.com.

Current Product Version - 4.0.0

Supported Framework Version - Magento 2.0.x, 2.1.x, 2.2.x,2.3.x, 2.4.x

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

Back to Top

Message Sent!

If you have more details or questions, you can reply to the received confirmation email.

Back to Home