graycore/magento2-cms-ai-builder
Composer 安装命令:
composer require graycore/magento2-cms-ai-builder
包简介
A Magento 2 module that extends the CMS page editor with AI-powered content generation and visual preview capabilities.
README 文档
README
A Magento 2 module that extends the CMS page editor with AI-powered content generation and visual preview capabilities.
Important
The native renderer for Luma/Hyva themes is poorly test. Please help me test it and find bugs.
Warning
This package is highly experimental and NOT production-ready.
- Breaking changes may occur at any time without notice
- API stability is not guaranteed
- Data loss or corruption may occur
- Security vulnerabilities may exist
- No support or warranty is provided
Use at your own risk. This package is intended for testing, evaluation, and development purposes only. Do not use in production environments or with critical data.
daff.io | Youtube Demo | Daffodil Demo
Overview
This module adds an AI-powered visual editor to Magento 2's CMS pages, allowing content managers to:
- Generate page schemas from text prompts using OpenAI
- Preview content in real-time using an Angular-based renderer
- Store and serve dynamic content via GraphQL and standard theme like Luma
Features
- AI Schema Generation: Convert text prompts into structured component schemas using OpenAI GPT-4
- Visual Editor: Split-pane editor with prompt input and live preview
- Component Registry: Configurable component system for defining available UI components
- GraphQL Integration: Schemas automatically available via GraphQL for frontend consumption
- Custom Element Support: Preview uses Angular web components (custom elements)
Installation
- Download the package:
composer require graycore/magento2-cms-ai-builder
-
Configure the package:
-
Enable the module:
bin/magento module:enable Graycore_CmsAiBuilder
Customizing the Editor
You can replace the default Angular editor with your own implementation by configuring custom script paths in your module's etc/config.xml:
<?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd"> <default> <ai_cms_builder> <editor_customization> <custom_polyfills_script>Vendor_Module/js/custom-editor/polyfills.js</custom_polyfills_script> <custom_main_script>Vendor_Module/js/custom-editor/main.js</custom_main_script> </editor_customization> </ai_cms_builder> </default> </config>
These scripts should be built as an Angular app following the documentation from the @daffodil/content admin editor guide (WIP).
Known Problems
These are problems that I know exist, and would really love help with:
- The model's UI output is fairly bland and lacks context about the store.
- The model's responses are fairly slow (high latency)
- When I'm interacting with the model, if I cancel a request the whole UI freezes (this is a side effect of Magento's session-locking=, try
disable_locking)- When I save a page while the model is responding, the UI waits to save until the model has finished its last response.
- It doesn't generate links, buttons, or forms fields.
License
See LICENSE
graycore/magento2-cms-ai-builder 适用场景与选型建议
graycore/magento2-cms-ai-builder 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 11 次下载、GitHub Stars 达 8, 最近一次更新时间为 2025 年 12 月 01 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 graycore/magento2-cms-ai-builder 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 graycore/magento2-cms-ai-builder 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 13
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-12-01
