Magento 2 ChatGPT Product Review SummaryMagento 2 ChatGPT Product Review Summary
Buy Now
Support
Buy Now
Support
  • Getting Started

    • Introduction
    • Key Features
    • How It Works
  • Installation

    • Requirements
    • Install the Module
    • Install the AI Packages
    • Enable & Compile
    • Verify the Installation
  • Setup

    • Enable the Module
    • Activate Your Licence
    • Select an LLM Provider
    • Validate & Load Models
    • First Summaries
  • Configuration

    • Overview
    • General Settings
    • Scope & Store Views
    • Admin Menu
    • Access Control
  • LLM Providers

    • Provider Overview
    • How Validation Works
    • Ollama (Self-Hosted)
    • Switching Providers
  • Generating Summaries

    • Summary Basics
    • What Is Sent to the Model
    • From the Reviews Grid
    • CLI Command
    • Keeping Summaries Fresh
  • Storefront

    • On the Product Page
    • Full-Width Layout
    • Styling
  • Developers

    • Data Model
    • Useful SQL
    • Logging
  • Help

    • Setup Problems
    • Generation Problems
    • Storefront Problems
    • FAQ

CLI Command

php bin/magento generate:reviewsummary

Description: Using AI generate products reviews summary.

The command takes no arguments or options. It:

  1. finds every product + store view pair that has at least one approved review;
  2. generates a summary for each pair, one at a time, with a progress bar;
  3. reports how many succeeded and which failed.

It regenerates every product each run, including ones whose reviews have not changed.

generate:reviewsummary completing for one product

Output

Success:

Generating Product Review Summary
=================================

 48/48 [============================] 100%

 [OK] 48 product review summary generated successfully

With failures:

 [OK] 45 product review summary generated successfully

 [ERROR] Failed to generate 3 product review summary

 - Product ID 12 (store 1): API request rate limit exceeded. Please try again after some time.
 - Product ID 57 (store 1): Unable to generate product review summary.
 - Product ID 57 (store 2): Unable to generate product review summary.

Other messages

MessageMeaning
[ERROR] Currently unavailable.Enable Module is No at default scope.
// No approved product reviews found.There is nothing to summarise.

Exit code

The command always exits with 0, even when some or all products fail. In scripts and cron jobs, check the output for [ERROR] rather than relying on the exit code.

Tips

  • Run it as the web-server user so generated cache and log files keep the right owner.
  • On a large catalogue it can take a long time and many tokens. Run it off-peak, inside screen or tmux.
  • A rate-limit failure for some products is common on free tiers. Run the command again later; it redoes every product.

Next: Keeping Summaries Fresh.

Prev
From the Reviews Grid
Next
Keeping Summaries Fresh