PHPackages                             gauravharsh/module-ai-reports - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. gauravharsh/module-ai-reports

ActiveMagento2-module

gauravharsh/module-ai-reports
=============================

An AI-powered Natural Language to SQL reporting tool for Adobe Commerce.

1.0.3(1mo ago)02↑2900%OSL-3.0PHPPHP ~8.2.0||~8.3.0

Since Mar 28Pushed 1mo agoCompare

[ Source](https://github.com/gauravharsh15/magento2-ai-reports)[ Packagist](https://packagist.org/packages/gauravharsh/module-ai-reports)[ RSS](/packages/gauravharsh-module-ai-reports/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Magento 2 AI SQL Reports
========================

[](#magento-2-ai-sql-reports)

An enterprise-grade Adobe Commerce (Magento 2) module that allows administrators to generate and execute complex database reports using Natural Language via AI.

Instead of writing complex EAV joins manually, simply ask: *"Show me the top 5 customers by grand total spent this month"* and the module will write the SQL, execute it safely, and present the data in a downloadable CSV grid.

Features
--------

[](#features)

- **Multi-LLM Support:** Native integrations for OpenAI (ChatGPT), Anthropic (Claude), and Google (Gemini).
- **Self-Correcting Execution:** If the AI generates an invalid SQL query that throws a database error, the module automatically catches the error and feeds it back to the AI for self-correction (up to 3 retries).
- **Strict Security:** Built-in regex safeguards strictly enforce `SELECT`-only operations, blocking all destructive commands (`UPDATE`, `DROP`, `DELETE`, etc.).
- **CSV Export:** One-click download of generated datasets.

Requirements
------------

[](#requirements)

- Adobe Commerce / Magento Open Source 2.4.7 or higher
- PHP 8.2 or 8.3
- An active API key for OpenAI, Anthropic, or Gemini.

Installation
------------

[](#installation)

Install via Composer:

```
composer require gauravharsh/module-ai-reports
bin/magento module:enable Gaurav_AiReports
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento cache:flush
```

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance90

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

45d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8842b2b72052bd3b34c732ce665cf8897bc7c05c4986442b9849b6ccbbd934db?d=identicon)[gauravharsh15](/maintainers/gauravharsh15)

### Embed Badge

![Health badge](/badges/gauravharsh-module-ai-reports/health.svg)

```
[![Health](https://phpackages.com/badges/gauravharsh-module-ai-reports/health.svg)](https://phpackages.com/packages/gauravharsh-module-ai-reports)
```

###  Alternatives

[fastly/magento2

Fastly CDN Module for Magento 2.4.x

1564.2M1](/packages/fastly-magento2)[mage-os/module-automatic-translation

Automatic AI content translation for Mage-OS.

277.1k](/packages/mage-os-module-automatic-translation)[zepgram/module-rest

Technical module to industrialize API REST call with dependency injection pattern using Guzzle library

1326.2k](/packages/zepgram-module-rest)[graycore/magento2-graphql-introspection-cache

1015.2k](/packages/graycore-magento2-graphql-introspection-cache)[mage-os/mageos-common-async-events

Send REST requests to external endpoints asynchronously. This module implements the most common events like order creation and customer change.

147.7k2](/packages/mage-os-mageos-common-async-events)[mage-os/module-inventory-reservations-grid

Add a grid with the list of inventory reservations.

126.8k](/packages/mage-os-module-inventory-reservations-grid)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
