AI Chatbot for Magento 2

Smarter Customer Support~Faster Conversions~Zero Complexity

The Hikmadh AI Chatbot is a powerful virtual assistant built specifically for Magento 2 stores. It helps customers find products, track orders, and complete purchases directly within your website. Designed for flexibility, it works smoothly with both simple and configurable products. You can run it independently or enhance it with OpenAI for advanced AI-powered conversations.

✔ Smart Product Search with natural queries
✔ Real-Time Order Tracking for logged-in users
✔ AJAX Add to Cart without page reload
✔ Configurable Product Variant Selection
✔ Works With or Without OpenAI Integration

The Hikmadh AI Chatbot is a flexible, intelligent virtual assistant designed for Magento 2 stores. It provides real-time customer support through product search, order tracking, and optional AI-powered conversations. What makes it unique? The chatbot works with or without AI. You can run it as a standalone product search and order tracking tool, or enhance it with OpenAI integration for natural language understanding and broader query support. Whether you’re a small store looking for basic automation or an enterprise needing advanced AI capabilities, Hikmadh AI Chatbot adapts to your needs.

Key Features

Smart Product Search: Searches products by name with natural language queries. Supports both simple and configurable products.

Configurable Product Support: Displays size, color, and variant options with dynamic price updates and real-time stock availability.

AJAX Add to Cart: Customers can add products directly from chat without page reload. Includes quantity selector and stock validation.

Order Tracking: Logged-in customers can track orders by number or view recent order history instantly.

Dual Mode Operation: Works standalone (no AI costs) or with OpenAI integration for intelligent conversations.

Professional UI: Clean, mobile-responsive chat interface with customizable title, subtitle, and messages.

Installation

System Requirements

Before installing the Hikmadh AI Chatbot, make sure your environment meets the following requirements:

Magento 2.4.x

PHP 7.4 or higher

OpenAI API Key (Optional – required only for AI features)

Upload Extension Files

Extract the extension package and upload it to:

app/code/Hikmadh/Chatbot/

Make sure the folder structure remains intact.

Enable the Module

Run the following Magento CLI commands:

				
					php bin/magento module:enable Hikmadh_Chatbot
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush

				
			

Verify Installation

After running the commands, log in to your Magento Admin panel.

Navigate to:
Stores → Configuration → General → AI Chatbot

Ensure the module appears in the configuration section.

 

Activate Chatbot

Set Enable Chatbot = Yes
Save configuration and clear cache if required.

The chatbot icon will now appear
in the bottom-right corner of your storefront.

⚙️ Configuration

To configure the Hikmadh AI Chatbot, navigate to:

Admin Panel → Stores → Configuration → General → AI Chatbot

🛠 General Settings

Enable Chatbot
Activate or deactivate the chatbot widget on the frontend.

Product Link Strategy
Choose how product links behave when a child product is found.
• Redirect to Parent – Opens the configurable product page.
• Show Child Product – Opens the specific simple product page.

Chatbot Title
Set the main title displayed in the chatbot header.

Chatbot Subtitle
Define the subtitle shown below the chatbot title.

Welcome Message
Customize the initial greeting message shown when the chat opens.

Search Placeholder Text
Set the placeholder text inside the chat input field.

Auto Delete Chat History (Days)
Automatically remove stored chat history after the defined number of days. Set 0 to disable auto deletion.

 

🤖 OpenAI Settings

Enable OpenAI
Turn on AI-powered responses for intelligent conversations.
Disable to use only product search and order tracking features.

OpenAI API Key
Enter your secret API key from platform.openai.com.
Required only if OpenAI integration is enabled.

Features & Usage

Smart Product Search

Hikmadh AI Chatbot intelligently understands what customers are searching for — even when queries are incomplete or casual. Instead of relying on strict keywords, it processes natural product names and delivers accurate, relevant results instantly.

✔ Understands natural queries like “shirt” or “shoes”
✔ Supports both simple and configurable products
✔ Automatically removes unnecessary filler words
✔ Displays up to 10 relevant product results instantly

Configurable Product Support with Dynamic Variants

Hikmadh AI Chatbot fully supports Magento configurable products, allowing customers to select size, color, or other variants directly inside the chat window. Pricing, stock status, and product image update instantly based on the selected option — delivering a seamless shopping experience without redirecting users.

✔ Dropdown selection for Size, Color, and other attributes
✔ Dynamic price updates based on selected variant
✔ Real-time stock availability display
✔ Prevents add-to-cart until all required options are selected
✔ Child product image updates automatically

AJAX Add to Cart

Hikmadh AI Chatbot allows customers to add products directly to their cart without leaving the chat window. The process is smooth, instant, and fully integrated with Magento — creating a frictionless shopping experience that boosts conversions.

✔ Add products directly from the chat interface
✔ No page refresh or redirection required
✔ Quantity selector inside chat
✔ Real-time cart update after adding
✔ Stock validation before checkout

Simple Order Tracking for Customers

Hikmadh AI Chatbot allows customers to track their orders instantly without navigating through multiple pages. Logged-in users can view recent orders automatically, while guests can check status by entering their order number — all directly inside the chat window.

✔ Track orders using order number
✔ View recent orders (logged-in users)
✔ Shows status, total, and date
✔ Secure customer-based access
✔ Reduces support workload

Dual Mode Operation – Full Control, Your Way

Hikmadh AI Chatbot is built with flexibility in mind. You can run it as a powerful standalone Magento assistant for product search and order tracking, or enable OpenAI integration to unlock intelligent, natural-language conversations. This gives you complete control over costs and functionality based on your business needs.

✔ Works without OpenAI (No API costs)
✔ Smart product search & order tracking in standalone mode
✔ Enable OpenAI anytime for AI-powered conversations
✔ Ideal for both small stores and enterprise businesses

Professional & Modern Chat Interface

A beautifully designed chatbot interface that blends seamlessly with your Magento store. Fully responsive and customizable, it ensures a smooth experience across desktop, tablet, and mobile devices.

✔ Clean and modern UI design
✔ Fully mobile-responsive layout
✔ Customizable title and subtitle
✔ Editable welcome message
✔ Smooth chat animations and layout

⚡ Intelligent Automation for Modern Commerce

Built for performance and flexibility, Hikmadh AI Chatbot seamlessly integrates into your Magento store. It enhances customer engagement while maintaining full control from your admin panel.

Simple to install.
Easy to manage.
Powerful in results.

Take your store support to the next level.