Thank you for purchasing our extension. If you have any questions that are beyond the scope of this document, please feel free to contact us via [email protected]
By: Magenest | Support Portal:
Introduction
WebMCP AI Assistant for Magento 2 brings conversational shopping directly to the storefront, enabling customers to discover products, access product information, check stock availability, and manage their shopping carts through natural-language interactions.
Powered by Google Gemini and integrated with WebMCP (Web Model Context Protocol), the extension connects AI capabilities with Magento's existing product catalog and shopping functionalities. Customers can interact with the AI Assistant without having to manually browse categories, navigate multiple pages, or use traditional search tools.
With configurable shopping tools and flexible administrative settings, merchants can deliver a more intuitive shopping experience while maintaining control over the actions available to customers and compatible AI agents.
Key Features
1. AI-Powered Conversational Shopping
Enable customers to interact with an AI-powered shopping assistant directly on the Magento storefront. Through a built-in chat interface powered by Google Gemini, customers can ask questions, explore products, and perform supported shopping actions using natural language without relying on predefined commands.
2. Intelligent Product Search and Price Filtering
Help customers discover relevant products based on their shopping requirements. The AI Assistant retrieves information directly from the Magento product catalog, allowing customers to search by keywords and narrow product results by price range.
3. Instant Access to Product Information and Stock Availability
Allow customers to check product prices, descriptions, and stock availability directly within the chat interface. The assistant can also navigate customers to the corresponding product detail pages when requested, reducing unnecessary manual navigation.
4. Context-Aware Shopping Assistance
Deliver more relevant shopping assistance by recognizing the customer's current page context, including the page type, product SKU, and applied filters. This enables customers to ask questions about the products they are currently viewing without having to repeatedly provide product information.
5. AI-Assisted Shopping Cart Management
Allow customers to manage their shopping carts through natural-language requests. When the corresponding cart tools are enabled, customers can view cart contents, add products, update quantities, remove items, and apply discount coupons directly through the AI Assistant.
The shopping cart interface automatically updates after successful cart modifications without requiring customers to refresh the page.
6. Guided Product Option Selection
Support multiple Magento product types, including simple, virtual, downloadable, configurable, bundle, and grouped products.
When additional product selections are required, the AI Assistant guides customers through relevant options, such as sizes, colors, bundle components, or individual item quantities, before adding products to the shopping cart.
7. Seamless Conversation Across Storefront Pages
Maintain conversation history as customers navigate between pages within the same browser tab. Customers can reopen the AI Assistant and continue their existing conversation without repeating previous requests or product preferences.
Customers can also clear their conversation history and start a new shopping session whenever needed.
8. WebMCP Integration for Compatible AI Agents
Register enabled storefront functionalities as structured WebMCP tools, allowing compatible AI agents to retrieve product information and perform supported shopping actions through the browser's WebMCP API.
The extension also maintains an internal tool registry, allowing the built-in AI Assistant to execute supported tools independently of the native WebMCP API.
9. Customer-Managed Gemini API Key
Allow customers to connect the AI Assistant using their own Gemini API key. The key is stored locally in the customer's browser rather than on the Magento server.
Customers can remove their saved API key and configure a new one directly through the AI Assistant interface.
10. Flexible Configuration in Magento Admin
Give merchants control over how the AI Assistant operates on their storefront. Administrators can:
- Enable or disable the AI Assistant.
- Configure the Gemini AI model.
- Select from 11 available product discovery and shopping cart tools.
- Configure the WebMCP Origin Trial Token.
- Manage settings at the website or store-view level.
This flexibility allows merchants to customize AI-assisted shopping functionalities according to their store requirements.
Step 1: Install the Extension
- Open the Google Chrome browser.
- Navigate to the WebMCP Model Context Tool extension page on the Chrome Web Store.
- Click Add to Chrome to begin the installation process.
- When the confirmation window appears, review the requested permissions and click Add extension to confirm the installation.
- Once the installation is complete, click the Extensions icon (puzzle piece) in the browser toolbar.
- Locate WebMCP Model Context Tool in the list of installed extensions and click the Pin icon to display it on the browser toolbar for easy access.
Step 2: Enable WebMCP in Google Chrome
To allow WebMCP AI Assistant to recognize and interact with the tools integrated into the website, users need to enable the WebMCP feature in Google Chrome.
Follow the steps below:
- Open a new tab in Google Chrome.
- Enter chrome://flags/#enable-webmcp-testing in the address bar and press Enter.
- Locate the WebMCP for testing option in the list of experimental browser features.
- In the drop-down menu on the right, change the setting from Default to Enabled.
- Click Relaunch at the bottom of the screen to restart the browser and apply the changes.
- Once the browser restarts, navigate to the website where WebMCP AI Assistant has been integrated and open the WebMCP - Model Context Tool Inspector extension.
- Review the list of available tools in the WebMCP Tools section to confirm that the extension can recognize the tools registered on the website.
Step 3: Open the AI Assistant
- Navigate to the website where the WebMCP AI Assistant extension has been installed and enabled.
- Locate the circular button with the sparkle icon (✦) in the bottom-left corner of the screen.
- Click the icon to open the AI Assistant chat window.
Customers can access the AI Assistant from any page of the online store.
When using the AI Assistant for the first time, customers will be prompted to enter their Gemini API key.
Step 4: Create a Gemini API Key
A Gemini API key is an authentication credential that enables the AI Assistant to access Google's AI services.
To create a Gemini API key, follow the steps below:
1. Access Google AI Studio
Click the Get a Gemini API key link in the chat window or navigate directly to Google AI Studio.
2. Create a Gemini API key
After successfully signing in to Google AI Studio:
- Navigate to the API Keys section in the left-hand menu.
- Click Create API key to generate a new API key.
- Enter a name for the API key if prompted, such as WebMCP AI Assistant.
- Select an existing Google Cloud Project or create a new project by following the on-screen instructions.
- Confirm to complete the API key creation process.
3. Copy the Gemini API key
Once the API key has been successfully created:
- Locate the newly created API key in the API Keys list.
- Click the Copy icon to copy the entire API key.
- Return to the website where WebMCP AI Assistant is enabled to proceed with the API key setup.
Step 5: Enter and Save the Gemini API Key
After successfully creating the Gemini API key:
- Return to the online store.
- Open the AI Assistant chat window.
- Paste the Gemini API key into the designated input field.
- Click Save key to save the API key.
Once the API key has been configured, customers can start interacting with the AI Assistant.
Notes:
- Customers only need to enter their API key once.
- The API key is stored locally in the customer's browser and is not sent to the store's server.
- Customers will need to enter their API key again when using a different device or browser.
Step 6: Search for Products
Enter a product search request in natural language directly into the AI Assistant chat window.
Customers do not need to browse product categories or use the website's traditional search functionality.
Examples:
- "Find bags under $50."
- "Do you have any jackets?"
- "Is this product in stock: 24-WB01?"
The AI Assistant retrieves information directly from the store's product catalog and returns a list of matching products, including prices, stock availability, and links to the corresponding product pages.
Step 7: View Product Details
Customers can access product information in two ways.
1. View product information directly in the chat
Customers who want to check a product's price, description, or stock availability can ask the AI Assistant directly.
Example:
- "How much does product 24-WB01 cost?"
The AI Assistant provides the requested information directly in the chat window without redirecting customers to another page.
2. Open the product detail page
Customers who want to visit a specific product page can ask the AI Assistant to open the corresponding page.
Examples:
- "Open the product page for 24-WB01."
- "Show me this product."
The AI Assistant will navigate the browser to the corresponding product detail page.
Customers can reopen the chat window to continue their conversation after navigating to another page within the same browser tab.
Step 8: Add Products to the Shopping Cart
Once customers have selected their desired products, they can ask the AI Assistant to add them directly to the shopping cart.
Examples:
- "Add product 24-WB01 to my cart."
- "Add two of these shirts to my cart."
Depending on the product type, the AI Assistant may ask customers to provide additional information before completing the action.
1. Simple Product
Customers can ask the AI Assistant to add a product to their shopping cart and specify the desired quantity.
2. Configurable Product
If a product has multiple options, such as color or size, the AI Assistant will ask customers to specify their preferred product variant.
Customers can provide their selections directly in the chat window.
Example: "Blue, size 32."
3. Bundle Product
For products consisting of multiple components, the AI Assistant will list the available components and ask customers to select their preferred option for each one.
For example, when purchasing a yoga equipment bundle consisting of a yoga ball, a strap, and a mat, customers will need to answer the assistant's follow-up questions to complete their product selections.
4. Grouped Product
For a group of individual products, the AI Assistant will list the products included in the group and ask customers which items they would like to purchase and in what quantities.
Customers can select one or multiple products from the group without having to purchase the entire group.
5. Confirm successful addition to the shopping cart
Once the products have been successfully added:
- The AI Assistant displays a confirmation message in the chat window.
- The shopping cart icon at the top of the page automatically updates to reflect the new item quantity.
- Customers do not need to refresh the page.
Note: If the AI Assistant cannot add products to the shopping cart, the corresponding functionality may not have been enabled in the store's configuration. Customers should contact the store administrator for assistance.
Step 9: Complete Checkout and Payment
After adding their desired products to the shopping cart, customers can proceed with the store's standard checkout and payment process.
The AI Assistant does not automatically place orders or process payments on behalf of customers. Customers must complete the final checkout and payment steps themselves to finalize their purchases.
Step 10: Continue or Start a New Conversation
1. Continue an existing conversation
When customers navigate to another page within the same browser tab, the conversation history is retained.
Customers can simply click the sparkle icon (✦) again to reopen the AI Assistant and continue their conversation.
If the browser tab is closed, the conversation history will be lost.
2. Start a new conversation
To clear the current conversation and start a new one:
- Open the AI Assistant chat window.
- Click the 🔄 Clear conversation icon in the chat header.
- Start a new conversation with the AI Assistant.
Step 11: Remove the Saved Gemini API Key
To remove the saved Gemini API key from the browser:
- Open the AI Assistant chat window.
- Click the key icon (🔑) in the chat header.
- Select Forget saved key.
Customers will need to enter their Gemini API key again if they wish to continue using the AI Assistant.
Important Usage Notes
- Using the latest version of Google Chrome is recommended.
- If the AI Assistant icon is not visible, the feature may not have been enabled by the store administrator, or the browser or device may not be fully supported.
- Follow-up questions from the AI Assistant during product selection are part of its normal functionality and do not indicate an error.
- Customers do not need to follow a specific command format or syntax when interacting with the AI Assistant.
- If the AI Assistant is unavailable, customers can continue browsing, searching for products, and making purchases using the store's standard functionality.