Magento 2 Module - Ask About a Product

€183.10 €148.86
Expandable module
M2-ASK-PROD
PayPal PayPal
Przelew Przelew

YOU CAN TRUST US

25 years of experience in e-commerce and Magento 2

Tooltip

Fast delivery

Tooltip

Efficient implementation process

Tooltip

Simple and transparent complaint process

Tooltip

Working with clients worldwide

Tooltip

Free module updates

Tooltip

Payment by bank transfer

Tooltip

Kowal_ZapytajOProdukt is an advanced Magento 2 module for customer communication on the product page. It combines a classic inquiry form, structured product FAQ, and an AI Assistant into one consistent solution.

In practice, this means the product page stops being only a place to display descriptions and technical parameters and becomes an active customer support touchpoint. The user can:

  • ask a standard product question,
  • use ready-to-publish answers in the FAQ,
  • chat with an AI Assistant that responds in the context of the currently viewed product.

The module is designed to solve two problems at the same time:

  • support operations: reduce repetitive questions reaching the store team,
  • product knowledge: build a growing, structured knowledge base that improves answer quality over time.

Business goal

In many online stores, a large portion of customer questions repeats:

  • whether the product is compatible with a specific Magento version,
  • whether it works without an additional module,
  • how installation works,
  • whether it supports multiple languages,
  • whether it requires custom theme changes,
  • how it behaves in a specific business scenario.

Without a dedicated tool, such questions:

  • increase support workload,
  • slow down purchasing decisions,
  • scatter knowledge across email inboxes, tickets, and sales conversations,
  • do not return to the storefront as a structured FAQ.

This module organizes the process. First it collects questions and answers, then structures them into an FAQ, and at the next stage uses them as context for the AI Assistant and a retrieval layer based on OpenAI Vector Store.

Core solution concept

The module works in layers.

Layer 1. Classic product inquiries

On the product page you can enable a standard inquiry mechanism. The customer sends a question, and the administrator or store staff receives it for further handling. This is the simplest and most predictable form of contact.

Layer 2. FAQ

Recurring questions and answers can be saved and published as a product FAQ. The FAQ can be displayed as a tab or as a separate section on the product page. This way, future visitors get an answer without sending a new question.

Layer 3. AI Assistant

Above or below the standard FAQ, a lightweight AI chat component appears. The user can:

  • click one of the popular questions,
  • type their own question in the Ask the Assistant about this product. field,
  • see the answer in the same chat area.

The Assistant is not a general store chatbot. It is designed as a product assistant, which means the answer should be based primarily on:

  • current product data,
  • published FAQ,
  • current conversation history,
  • optionally retrieval results from OpenAI Vector Store.

Module feature scope

1. Ask About a Product form

The module provides a classic customer inquiry mechanism.

Key elements:

  • a button or Ask About a Product form on the product page,
  • AJAX support on the frontend,
  • saving questions to the database,
  • optional email notification sending,
  • option to enable the module globally or only for selected products.

This still makes sense even if the store already uses the AI Assistant. Not every question should be handled automatically. Some cases require a sales response, a custom quote, or confirmation by a technical team.

2. Product page FAQ

The FAQ in this module is not a marketing add-on, but a structured product knowledge layer.

The administrator can:

  • review saved questions,
  • add answers,
  • publish selected records,
  • display them on the product page.

The FAQ can be shown:

  • as a tab,
  • as a separate section on the product page.

Importantly, the FAQ is not only for the frontend. Published questions and answers are also used as one of the most important context sources for the AI Assistant.

3. AI Assistant on the product page

The AI Assistant is the central element of the module expansion.

The component is embedded on the product page, by default under the gallery, and was designed to:

  • run lightweight on the frontend,
  • avoid unnecessary load on the initial page render,
  • remain readable on desktop and mobile,
  • be ready for further extension.

The user sees:

  • section title,
  • intro text,
  • a single text input for asking a question,
  • a list of most popular questions,
  • a chat area that grows with subsequent questions and answers.

In the current version the form also supports:

  • in-session conversation history,
  • clickable popular questions,
  • AI answer feedback,
  • two color variants: light and dark.

4. Popular questions

Below the text input, the most popular product questions can be displayed.

This solution serves multiple functions at once:

  • speeds up conversation start,
  • suggests what other customers ask most often,
  • reuses ready FAQ answers without the cost of an AI model request,
  • improves UX and reduces empty interactions.

Question popularity is no longer based only on manual ordering. The module collects click, question, and feedback data, and then ranks the FAQ accordingly.

5. AI answer context

The most important design assumption was that AI should not answer outside the product context.

The answer can be built from multiple sources:

  • core product data,
  • short description,
  • full description,
  • selected product attributes,
  • published FAQ,
  • conversation history.

Additionally, the module lets you limit which attributes are sent to the model, helping avoid:

  • prompt overload,
  • sending unnecessary data,
  • excessive token cost,
  • accidentally passing content that is not useful to the customer.

6. Integration with OpenAI Responses API and Vector Store

One of the key expansion elements is integration with OpenAI Responses API.

In simpler scenarios, the module can run using local product and FAQ context. In more advanced deployments it supports:

  • file_search,
  • vector_store_ids,
  • filtering by sku,
  • filtering by product_sku,
  • filtering by store_code,
  • filtering by content_type,
  • limiting the number of retrieval results,
  • hybrid mode,
  • retrieval-first mode.

This means the AI answer can rely not only on data sent directly from Magento in the current request, but also on documents previously ingested into Vector Store.

In practice this provides two benefits:

  • lower cost, because you do not need to send the full data set to the model each time,
  • better scalability, because retrieval can handle a larger knowledge base than a simple prompt with local JSON.

7. Integration with Kowal_AiProductFeed

The module is prepared to work with Kowal_AiProductFeed.

This integration allows you to:

  • synchronize product data to OpenAI Vector Store,
  • use documents such as product.core, product.faq, product.docs, and others,
  • sync a specific product right before the chat,
  • limit retrieval to specific content types.

This approach is especially useful where:

  • product descriptions are long,
  • the FAQ is extensive,
  • the store handles many technical products,
  • product data is continuously evolving.

8. Analytics and feedback

The module does not end with generating an answer.

It also stores data that helps evaluate whether the solution works:

  • number of FAQ clicks,
  • number of submitted questions,
  • helpful or not helpful ratings,
  • conversation history,
  • technical metadata of the AI response,
  • token usage,
  • request and response payloads when diagnostic logging is enabled.

This makes the deployment not a black box. The team can analyze:

  • which questions appear most often,
  • whether AI uses retrieval,
  • whether answers are accurate,
  • which records are worth turning into FAQ,
  • how cost and quality change after prompt or configuration adjustments.

9. FAQ candidates and admin workflow

One of the most important advantages of the module is the ability to convert conversations into new FAQ entries.

The process is as follows:

  1. Customers ask questions.
  2. The module stores conversations.
  3. The analysis mechanism identifies FAQ candidates.
  4. The administrator reviews candidates in the admin panel.
  5. After approval, the candidate is added to the standard product FAQ.

This is a very practical workflow model, because knowledge does not get lost in chat history. With each iteration the store builds a better response layer:

  • for customers,
  • for the FAQ,
  • for the AI Assistant,
  • for future retrieval.

10. Security and control

The module was built so its behavior can be controlled.

Configuration includes, among others:

  • guest access restrictions,
  • chat TTL,
  • rate limits,
  • input data sanitization,
  • diagnostic logging options,
  • reCAPTCHA configuration,
  • controlled scope of data sent to the model.

This matters because implementing AI on the product page should not mean losing control over:

  • cost,
  • data,
  • answer quality,
  • frontend performance.

11. Who this module is for

The module is a strong fit for projects where:

  • the catalog is larger than a few simple products,
  • customers often ask about compatibility, configuration, or implementation,
  • the team wants to combine classic FAQ with a modern AI layer,
  • the company develops product documentation and wants to use it for retrieval,
  • control over what the AI knows and where it gets answers is important.

It fits especially well for stores selling:

  • Magento extensions,
  • technical products,
  • B2B solutions,
  • tools requiring implementation or configuration,
  • products where customers expect a fast and precise answer before purchase.

12. Summary

Kowal_ZapytajOProdukt is no longer only a module for a simple contact form on the product page.

It is a complete product communication layer that:

  • collects questions,
  • publishes FAQ,
  • answers via AI,
  • uses Vector Store,
  • analyzes conversations,
  • and turns them into an increasingly better store knowledge base.

As a result, the product page becomes a place for real conversation with the customer, not just a static page with a description and price.

Magento 2 module for handling product inquiries and an AI Assistant on the product page.

What the module does

The module combines three areas:

  • a classic Ask About a Product form with question storage and email notification,
  • a product page FAQ section with manual answer publishing,
  • AI Assistant on the PDP with popular questions, conversation history, analytics, and integration with OpenAI Vector Store.

Key features

  • product inquiry button and form,
  • admin panel for managing questions and answers,
  • FAQ displayed as a tab or a dedicated section on the product page,
  • AI chat component under the product gallery,
  • popular questions based on FAQ data and analytics,
  • conversation and answer feedback storage,
  • FAQ candidate pipeline with review in the admin panel,
  • OpenAI Responses API + Vector Store provider,
  • retrieval with filters sku, product_sku, store_code and content_type,
  • optional integration with Kowal_AiProductFeed.

Requirements

  • Magento 2
  • PHP version compatible with your project
  • active kowal/base module

Optional:

  • OpenAI API key for AI features,
  • Kowal_AiProductFeed module if you want to sync data to Vector Store before the chat.

Installation

Composer

Add the composer repository to the configuration:

composer config repositories.zapytaj.o.produkt vcs https://github.com/kowalco/magento-2-zapytaj-o-produkt

Add an access token for the private GitHub repository:

composer config --global --auth github-oauth.github.com <YOUR_TOKEN>
composer require kowal/module-zapytajoprodukt php bin/magento module:enable Kowal_ZapytajOProdukt php bin/magento setup:upgrade php bin/magento cache:flush

In production you will typically also run:

php bin/magento setup:di:compile php bin/magento setup:static-content:deploy -f php bin/magento indexer:reindex

Basic configuration

Path:

  • Stores > Configuration > Ask About a Product

Minimal start without AI:

  • enable the module,
  • enable the FAQ or the inquiry form,
  • optionally set an additional email address.

Minimal start with AI:

  • AI Assistant - General > Enable AI Assistant = Yes
  • AI Assistant - Provider > Provider = OpenAI Responses API + Vector Store
  • set API Key and Model,
  • in AI Assistant - Context select OpenAI Vector Store or configure fallback via Kowal_AiProductFeed,
  • set Vector Store context build mode,
  • optionally enable Show popular questions and Show answer feedback.

Deployment note

If you do not see frontend changes on the product page, refresh cache and redeploy static content:

php bin/magento cache:flush php bin/magento setup:static-content:deploy -f pl_PL en_US
Release notes: Magento 2 Ask About a Product module with product inquiry form, product FAQ, AI Assistant, analytics, and OpenAI Vector Store retrieval integration. Includes admin workflow for converting conversations into FAQ entries and configurable security controls.

Pytania i odpowiedzi

Question
Does the customer need to be logged in after clicking the "Ask about this product" button?
Answer
No—customers can also submit an inquiry as guests. If they are logged in, their email address and phone number are automatically filled in, which speeds up the process.
Question
Czy formularz zapytania pojawia się w modalu bez przeładowania strony?
Answer
Tak — moduł korzysta z formularza AJAX i wyświetla się w wyskakującym okienku (popupie) na stronie produktu, co zapewnia płynne doświadczenie użytkownika.
Question
Czy dane produktu (nazwa, URL) są automatycznie dodawane do zapytania?
Answer
Tak — moduł automatycznie pobiera nazwę produktu i jego link, i załącza je w treści zapytania, dzięki czemu dział sprzedaży od razu wie, o który produkt chodzi.
Question
Gdzie trafia wiadomość z zapytaniem klienta?
Answer
Zapytania klientów są automatycznie wysyłane na wskazany adres e‑mail (np. działu obsługi klienta), a dodatkowo zapisywane w panelu administracyjnym Magento. Administrator może przeglądać zapytania, udzielać odpowiedzi bezpośrednio z panelu, a także – po zatwierdzeniu – publikować odpowiedzi w formie sekcji FAQ bezpośrednio na karcie produktu.
Question
Czy moduł modyfikuje lub nadpisuje natywne pliki Magento albo szablonu?
Answer
Nie — moduł działa w pełni zgodnie z architekturą Magento 2, bez ingerencji w pliki rdzenia systemu. Komponenty frontendowe są dodawane poprzez layout XML oraz dedykowane szablony, które nie nadpisują oryginalnych plików Twojego motywu. Dzięki temu moduł jest bezpieczny w aktualizacji i kompatybilny z większością szablonów graficznych.
Question
Czy moduł sprawdza się w sklepie z produktami, które mają zmienną cenę lub są dostępne na zapytanie?
Answer
Tak — to właśnie jeden z głównych scenariuszy zastosowania: sklepy, w których cena lub dostępność produktu może być negocjowana lub wymaga kontaktu, skorzystają z formularza zapytania.
Question
Czy mogę dostosować wygląd formularza zapytania (np. tekst przycisku, kolor, układ)?
Answer
Tak — w większości szablonów Magento 2 moduł integruje się z sekcją product.info.addto i można przez nadpisanie szablonu lub modyfikację CSS dostosować wygląd do marki sklepu.
Question
Czy moduł zabezpiecza formularz przed spamem lub botami?
Answer
Tak — formularz działa przez AJAX oraz w standardowej instalacji nie wymaga wpisywania pełnych danych kontaktowych przy gościu (ale można je skonfigurować), co ogranicza prostą automatyzację spamową.
Question
Czy klient musi być zalogowany, aby wysłać zapytanie o produkt?
Answer
Nie — klient może wysłać zapytanie również jako gość, bez konieczności logowania.
Question
Czy formularz „Zapytaj o produkt” pojawia się w wyskakującym okienku (popup) na stronie produktu?
Answer
Tak — moduł wyświetla formularz zapytania w modalnym okienku na stronie produktu, co zwiększa wygodę użytkownika.
Question
Czy dane produktu (np. nazwa, SKU, link) są automatycznie uzupełniane w zapytaniu?
Answer
Tak — moduł automatycznie dołącza nazwę produktu, jego SKU oraz link do strony produktu, co ułatwia mojej obsłudze zrozumienie, o który produkt chodzi.
Question
Where does a customer's inquiry go?
Answer
Inquiries are sent to the specified email address and saved in the Magento admin panel, where you can respond to them and—if the module supports this feature—publish the response as an FAQ on the product page.
Question
Can I view and manage all customer inquiries in the admin panel?
Answer
Yes—the module saves inquiries in the admin panel, allowing you to view, filter, and respond to customer inquiries.
Question
Can responses to inquiries be published as an FAQ section for the product?
Answer
Yes—the module allows you to publish the answers provided as part of the FAQ section on the product page, which improves the page's informational value and SEO.
Question
Does the module require modifications to Magento's core files or the theme?
Answer
No — the module is compatible with the Magento 2 architecture as an extension and does not require overwriting the system's core files.
Question
Does it work in a multi-store (multiple stores and views) and multilingual environment?
Answer
Yes—the module supports typical Magento 2 installations with multiple storefronts, allowing you to customize the form and its behavior for different languages and stores.
Question
Can I filter queries by product, customer, or status?
Answer
Yes—the admin panel allows you to filter and search results by product, customer, or other criteria.
Question
Does this affect the store's performance?
Answer
The impact on performance is minimal—the module adds a lightweight AJAX form and saves query data, which typically does not significantly affect the store’s speed. However, it’s a good idea to test it in a test environment.
Write Your Own Review
You're reviewing:Magento 2 Module - Ask About a Product
Your Rating
Aktualizacja preferencji plików cookie