# angeo/module-ai-description-updater

> Automatically generate and update Magento 2 product descriptions using OpenAI, Anthropic Claude, or Google Gemini. Supports Google Sheets as SKU source, Google Drive CSV export, dry-run mode, per-store prompts and cron automation.

`composer require angeo/module-ai-description-updater`

Canonical URL: https://packagento.com/angeo/module-ai-description-updater

## At a glance

- **Vendor**: angeo (https://packagento.com/angeo.md)
- **Latest version**: 1.0.0 — released 2026-05-16
- **Pricing**: Free
- **Package type**: Magento 2 module
- **Status**: active, accepting new buyers

## Installation

Packagento is licence-gated, so even free packages need a licence on a project before Composer can resolve them.

1. **Sign in or create an account** at https://packagento.com/customer/account/.

2. **Add the package to your account.** Open https://packagento.com/angeo/module-ai-description-updater and complete the free checkout. A licence is minted automatically.

3. **Create or pick a project, then activate the licence on it.**
   - Projects represent the Magento installs you deploy to. Manage them at https://packagento.com/projects/.
   - Activate the new licence on the project you'll deploy this package to. Activation is what generates the Composer credentials scoped to that project.

4. **Add the project credentials to your Magento codebase.**

   Grab the project's public + private key from https://packagento.com/projects/ (open the project, then its Credentials tab), and add them to `auth.json`:

   ```json
   {
     "http-basic": {
       "packagento.com": {
         "username": "ppk_live_...",
         "password": "psk_live_..."
       }
     }
   }
   ```

   Add the Packagento Composer repository to `composer.json`:

   ```json
   {
     "repositories": [
       { "type": "composer", "url": "https://packagento.com" }
     ]
   }
   ```

5. **Install and apply.**

   ```bash
   composer require angeo/module-ai-description-updater:*
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```

## What it does

Automatically generate and update Magento 2 product descriptions using OpenAI, Anthropic Claude, or Google Gemini. Supports Google Sheets as SKU source, Google Drive CSV export, dry-run mode, per-store prompts and cron automation.

## README

[![Packagist Version](https://img.shields.io/packagist/v/angeo/module-ai-description-updater.svg)](https://packagist.org/packages/angeo/module-ai-description-updater)
[![Packagist Downloads](https://img.shields.io/packagist/dt/angeo/module-ai-description-updater.svg)](https://packagist.org/packages/angeo/module-ai-description-updater)
[![PHP](https://img.shields.io/badge/PHP-%3E%3D8.2-blue.svg)](https://php.net)
[![Magento](https://img.shields.io/badge/Magento-2.4.x-orange.svg)](https://magento.com)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)

**Automatically generate and update Magento 2 product descriptions across all store views using AI — via CLI, cron, or Admin Panel.**

`angeo/module-ai-description-updater` is an open-source Magento 2 module for bulk AI-powered product description generation across multiple store views and languages. Supports OpenAI, Anthropic Claude, Google Gemini, and Groq (free, no credit card required). Results can be exported to Google Sheets automatically.

---

### Table of contents

- [Why this module vs alternatives](#why-this-module-vs-alternatives)
- [Supported AI providers](#supported-ai-providers)
- [Requirements](#requirements)
- [Installation](#installation)
- [Quick start — Groq (free, 5 minutes)](#quick-start--groq-free-5-minutes)
- [Full configuration reference](#full-configuration-reference)
    - [General](#general)
    - [AI Provider](#ai-provider)
    - [OpenAI settings](#openai-settings)
    - [Claude settings](#claude-settings)
    - [Gemini settings](#gemini-settings)
    - [Groq settings](#groq-settings)
    - [Prompt](#prompt)
    - [Attributes](#attributes)
    - [Google Sheets — SKU source](#google-sheets--sku-source)
    - [Google Sheets — export](#google-sheets--export)
    - [Export / CSV](#export--csv)
    - [Cron](#cron)
- [CLI usage](#cli-usage)
- [Multi-store behaviour](#multi-store-behaviour)
- [Setup guides](#setup-guides)
    - [OpenAI API key](#openai-api-key)
    - [Anthropic Claude API key](#anthropic-claude-api-key)
    - [Google Gemini API key](#google-gemini-api-key)
    - [Groq API key (free)](#groq-api-key-free)
    - [Google Sheets — SKU source setup](#google-sheets--sku-source-setup)
    - [Google Sheets — export setup (Service Account)](#google-sheets--export-setup-service-account)
- [Log file](#log-file)
- [Related modules](#related-modules)

---

### Why this module vs alternatives

| Feature | This module | Commercial alternatives |
|---|---|---|
| CLI + Cron automation | ✓ | Rarely |
| Multi-store (all store views) | ✓ | Rarely |
| Groq — free tier, no card | ✓ | Nowhere |
| Google Sheets as SKU source | ✓ | Nowhere |
| Google Sheets export | ✓ | Nowhere |
| Dry-run mode | ✓ | Rarely |
| 4 AI providers | ✓ | Usually 1 |
| MIT license | ✓ | Rarely |
| Price | **Free** | $99–$299/year |

---

### Supported AI providers

| Provider | Models | Cost | Notes |
|---|---|---|---|
| **OpenAI** | gpt-4.1, gpt-4.1-mini, gpt-4.1-nano, gpt-4o | Paid | Best quality/cost: gpt-4.1-mini |
| **Anthropic Claude** | claude-sonnet-4-6, claude-opus-4-6, claude-haiku-4-5 | Paid | Extended thinking supported |
| **Google Gemini** | gemini-2.5-flash-preview, gemini-2.0-flash, gemini-2.0-flash-lite | Free tier + paid | Free tier has daily limits |
| **Groq** | llama-3.3-70b-versatile, llama-3.1-8b-instant, mixtral-8x7b | **Free** | 14,400 req/day, no credit card |

---

### Requirements

- PHP 8.2+
- Magento 2.4.x / Adobe Commerce / Mage-OS
- `ext-curl`, `ext-openssl`

---

### Installation

```bash
composer require angeo/module-ai-description-updater
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento cache:flush
```

---

### Quick start — Groq (free, 5 minutes)

The fastest way to get started — Groq is free with no credit card required.

**Step 1 — Get a free API key**

Go to [console.groq.com](https://console.groq.com), create an account, go to **API Keys → Create API key**. The key starts with `gsk_`.

**Step 2 — Configure Magento**

Go to **Stores → Configuration → Angeo AEO → AI Description Updater**:

1. **General → Enable Module** → `Yes`
2. **General → Dry Run Mode** → `Yes` *(safe for first test)*
3. **AI Provider → AI Provider** → `Groq (Free — Llama / Mixtral)`
4. **Groq Settings → Groq API Key** → paste your `gsk_...` key
5. **Groq Settings → Model** → `Llama 3.3 70B Versatile (recommended)`
6. **Attributes → Generate Description** → `Yes`
7. Click **Save Config**

**Step 3 — Test with dry-run**

```bash
bin/magento angeo:ai-description:run --dry-run
```

Check `var/log/angeo_ai_description_updater.log` to preview what would be generated.

**Step 4 — Run on a single product first**

Disable Dry Run in admin, then:

```bash
bin/magento angeo:ai-description:run --sku=YOUR-TEST-SKU
```

Verify the result in the product edit page. If it looks good, run the full batch:

```bash
bin/magento angeo:ai-description:run
```

---

### Full configuration reference

**Path:** Stores → Configuration → Angeo AEO → AI Description Updater

---

#### General

| Field | Default | Description |
|---|---|---|
| Enable Module | No | Master on/off switch |
| Dry Run Mode | Yes | Generate but do not save to Magento. Always test with this enabled first. |
| Enable Detailed Logging | Yes | Writes to `var/log/angeo_ai_description_updater.log` |
| Batch Size | 50 | Max products processed per run or cron execution |

---

#### AI Provider

| Field | Default | Description |
|---|---|---|
| AI Provider | OpenAI | Select one of: OpenAI (ChatGPT), Anthropic (Claude), Google (Gemini), Groq (Free) |

Only the selected provider's settings section is used. Switch providers at any time.

---

#### OpenAI settings

*Used when AI Provider is set to OpenAI.*

_(README truncated for .md surface. Full README on https://packagento.com/angeo/module-ai-description-updater.)_

## Recent Versions

| Version | Released |
|---|---|
| 1.0.0 | 2026-05-16 |

## Dependencies

### Require

| Package | Constraint |
|---|---|
| magento/framework | * |
| magento/module-backend | * |
| magento/module-catalog | * |
| magento/module-config | * |
| magento/module-store | * |
| php | >=8.2 |

### Require (dev)

| Package | Constraint |
|---|---|
| phpstan/phpstan | ^1.10 |
| phpunit/phpunit | ^10.0 |

## Quality

Latest release (1.0.0) fails the Packagento QA pipeline. Verdicts below are per-cell (Magento line × PHP version) for the matrixed tools, and run-once for the static / security tiers.


### Compatibility

Each Magento line is installed on its supported PHP versions, then the module is built (DI compile + static-content deploy). Cells show passed / failed / untested; staircase gaps render as `–`.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | Pass | Pass | – | – |
| 2.4.8 | – | Pass | Pass | – |
| 2.4.9 | – | – | Pass | Pass |


### Code Quality

Advisory checks against the module's source. Never affect the Compatibility verdict — a phpcs finding can't make a module incompatible.

#### Static Analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| PHPCS | Fail | 164 | 1 error, 163 warnings (ruleset: Magento2) — 67 auto-fixable with phpcbf |
| PHPMD | Warning | 46 | 46 rule violations (MissingImport:39, UnusedFormalParameter:3, ExcessivePublicCount:1, ExcessiveClassComplexity:1, CyclomaticComplexity:1) |
| Cpd | Pass | 0 |  |
| Composer validate | Info | 6 | valid; 6 advisory notes (composer validate --strict) |

#### PHPStan

Type-checks the module against a real Magento install. Re-runs per Magento + PHP version because resolvable symbols differ between releases.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | 8 | 8 | – | – |
| 2.4.8 | – | 8 | 8 | – |
| 2.4.9 | – | – | 8 | 8 |


### Tests

Unit and integration suites run per Magento + PHP cell. Test failures speak to the module's behaviour, not its compatibility with a line, so they're reported here separately.

#### Unit Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | 8 | 8 | – | – |
| 2.4.8 | – | 8 | not tested | – |
| 2.4.9 | – | – | Error | not tested |

#### Integration Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | – | – |
| 2.4.8 | – | N/A | N/A | – |
| 2.4.9 | – | – | N/A | N/A |


### Security

Dependency-advisory audit (composer audit) plus a source malware scan. A malware detection fails the version outright.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| Composer audit | Pass | 0 |  |
| Malware scan | Pass | 0 |  |

## Licence and pricing

Free. A licence is still minted on checkout and bound to your project for Composer access — no payment step.

Refundable within 14 days of first purchase via https://packagento.com/account/refunds/.

## Install via Claude Code or any MCP client

The Packagento MCP server can run the licence + project + Composer steps above in one tool call:

```
purchase_and_install_packages(
  composer_names=["angeo/module-ai-description-updater"],
  project_id="proj_xxx"
)
```

This handles cart, checkout, licence minting, project activation, and writes auth.json credentials. Connect a client with `claude mcp add packagento https://mcp.packagento.com`. Full setup at https://packagento.com/docs/mcp-setup.

## Vendor

angeo is a Magento 2 vendor on Packagento. See https://packagento.com/angeo.md for their full catalogue.

