定制 tonsoflimes/magento-module-admin-grid-ai 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

tonsoflimes/magento-module-admin-grid-ai

最新稳定版本:0.0.2

Composer 安装命令:

composer require tonsoflimes/magento-module-admin-grid-ai

包简介

Magento2 module that adds AI capabilities to admin grids (filters, columns, mass actions) using OpenAI's-compatible API.

README 文档

README

A powerful Magento 2 module that enhances admin grids with AI capabilities, allowing administrators to interact with grid data using natural language. Search, filter, sort, and manage columns in any UI Component grid using AI-powered queries.

demo.png

Features

  • 🤖 Natural Language Queries - Use plain English to search and filter grid data
  • 🔍 Smart Filtering - AI automatically applies appropriate filters based on your query
  • 📊 Column Management - Show/hide columns through natural language commands
  • 🔄 Sorting Control - Sort data using conversational instructions
  • 🔌 Multiple LLM Gateways - Support for OpenAI, OpenRouter, and custom OpenAI-compatible APIs
  • UI Component Compatible - Works with all Magento 2 UI Component grids

Requirements

  • PHP 8.2, 8.3, or 8.4
  • Magento 2.4.x or higher
  • OpenAI API key or compatible LLM gateway

Installation

Install the module via Composer using the meta package:

composer require tonsoflimes/magento-admin-grid-ai-meta

php bin/magento module:enable TonsOfLimes_AdminGridAI
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f

Configuration

Navigate to Stores > Configuration > tons of limes 🍋‍🟩 > Admin Grid AI

Stores > Configuration > tons of limes 🍋‍🟩 > Admin Grid AI

General Settings

  • Enable Extension: Set to "Yes" to activate AI features across admin grids

LLM Gateway Configuration

Choose your preferred LLM gateway type and configure the credentials:

Option A: OpenAI

  1. Set Type to "OpenAI"
  2. Enter your OpenAI API Key

Option B: OpenRouter

  1. Set Type to "OpenRouter"
  2. Enter Base URI (default: https://openrouter.ai/api/v1)
  3. Enter your OpenRouter API Key

Option C: Custom Gateway

Custom OpenAI-compatible API gateway (e.g. self-hosted LLM)

  1. Set Type to "Custom Gateway"
  2. Enter your Custom Base URI
  3. Enter your Custom API Key

Advanced Settings

  • Max Options Size: Limits the number of select options sent to the LLM (default: 300)
    • Helps optimize API requests for grids with large option sets

Usage

Once configured, the "Search by AI" feature will be available on all UI Component grids in the Magento admin panel.

How to Use

  1. Navigate to any admin grid (e.g., Products, Orders, Customers)
  2. Look for the Search by AI interface in the grid toolbar
  3. Enter your natural language query, such as:
    • "Show only enabled products"
    • "Display orders from last month"
    • "Filter customers from New York"
    • "Sort by price descending"
    • "Hide SKU and weight columns"
  4. The AI will interpret your request and apply the appropriate filters, sorting, or column visibility changes

Example Queries

Filtering:

  • "Show products with stock quantity less than 10"
  • "Display orders with status pending"
  • "Filter by customers who registered this year"

Sorting:

  • "Sort by created date, newest first"
  • "Order by price from high to low"

Column Management:

  • "Show only name, SKU, and price columns"
  • "Hide all attribute columns"

Combined Actions:

  • "Show enabled products sorted by price, hide description column"

Limitations

  • Only works with UI Component grids (not legacy grids)
  • Query interpretation depends on LLM model capabilities

Support

For issues, feature requests, or contributions, please visit:

Author

tons of limes 🍋‍🟩

Copyright © tons of limes. All rights reserved.

统计信息

  • 总下载量: 3
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 5
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-02-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固