mage2kishan/module-pagebuilder-ai

Adds an AI Content button to the Magento PageBuilder toolbar and inline AI buttons to every text/textarea field in PageBuilder edit panels. Uses the Panth_AdvancedSEO AI backend (soft dependency) to generate full-page HTML layouts, section content, and field-level copy from configurable prompts — wi

Maintainers

Package info

github.com/mage2sk/module-pagebuilder-ai

Homepage

Type:magento2-module

pkg:composer/mage2kishan/module-pagebuilder-ai

Statistics

Installs: 22

Dependents: 1

Suggesters: 1

Stars: 2

Open Issues: 0

1.2.17 2026-06-18 09:39 UTC

This package is auto-updated.

Last update: 2026-06-18 09:40:14 UTC


README

Magento 2 PageBuilder AI: Generate CMS Content with OpenAI or Claude (Hyva + Luma)

Magento 2.4.4 - 2.4.8 PHP 8.1 - 8.4 Hyva + Luma Live Demo & Details Packagist Upwork Top Rated Plus Website

Write a CMS page in seconds. Panth PageBuilder AI adds an AI Content button to the Magento 2 PageBuilder toolbar and small AI buttons to every text and textarea field in edit panels. Pick a page-type preset, write a prompt, optionally drop in a reference image, and get a complete PageBuilder-compatible HTML layout back. Supports OpenAI (GPT-4o and family) and Anthropic Claude (Claude Sonnet, Opus, Haiku). Works on Hyva and Luma storefronts because it is admin-only.

Product page: kishansavaliya.com/magento-2-pagebuilder-ai.html

Quick Answer

What is Panth PageBuilder AI? It is a Magento 2 extension that puts an AI Content button on the PageBuilder toolbar and inline AI buttons on every text and textarea field, so content editors can generate full page layouts, section copy, and individual fields using OpenAI or Anthropic Claude without leaving the admin panel.

What does it add to my store?

  • An AI Content button on the PageBuilder toolbar for full-page layout generation.
  • Inline AI buttons on every text and textarea field inside PageBuilder edit panels.
  • AI meta generation panels on product, category, and CMS page edit forms.
  • Page-type presets (Homepage, About, FAQ, Landing, Category, Policy, 404) that load tuned system prompts automatically.
  • Saved prompt templates so your team shares one brand voice across all generations.
  • Bulk generation queue using Magento's native MessageQueue for async batch processing.
  • A request audit log that records every prompt, response, token count, and latency.

Which themes are supported? Both Hyva and Luma. The module is admin-only and does not emit any frontend output, so theme does not affect it.

What does it need? Magento 2.4.4 to 2.4.8, PHP 8.1 to 8.4, mage2kishan/module-core (required), and your own OpenAI or Anthropic API key.

Need Custom Magento 2 Development?

Get a free quote for your project in 24 hours for custom AI integrations, PageBuilder extensions, Hyva themes, performance work, M1 to M2 migrations, and Adobe Commerce Cloud.

Get a Free Quote

Kishan Savaliya

Top Rated Plus on Upwork

Hire on Upwork

100% Job Success - 10+ Years Magento Experience Adobe Certified - AI Integration Specialist

Panth Infotech Agency

Magento Development Team

Visit Agency

Custom Modules - AI Features - Migrations Performance - SEO - Adobe Commerce Cloud

Visit our website: kishansavaliya.com  |  Get a quote: kishansavaliya.com/get-quote

Table of Contents

Who Is It For

  • Content editors who manage a lot of CMS pages and need to create or refresh landing pages, category descriptions, FAQ pages, and policy documents without writing every word from scratch.
  • Merchants who write their own product and category copy and want a first draft quickly so they can edit rather than start from a blank field.
  • Stores running Hyva or Luma that want AI content tooling built into the native Magento admin, with no third-party SaaS login required.
  • Development agencies that deliver PageBuilder-built sites and want to provide clients an AI writing assistant inside the editor they already use.
  • Teams that need oversight before AI output goes live, through the draft-and-approve queue and the full request audit log.

Key Features

AI Content Button on the PageBuilder Toolbar

  • One-click access - an AI Content button sits permanently on the PageBuilder toolbar next to the existing controls.
  • Full-page generation - generate a complete PageBuilder-compatible HTML layout (rows, columns, headings, text, buttons) from a single prompt.
  • Page-type presets - pick from Homepage, About Us, FAQ, Landing, Category Description, Policy, or 404 to load a tuned system prompt automatically.
  • Reference-image upload - attach a screenshot or mockup and the AI uses it to match layout and visual tone.
  • Raw-prompt mode - a "Use my prompt as-is" checkbox bypasses the built-in PageBuilder instructions when you need the model to follow your exact wording.

Generate Full Page Content with AI - PageBuilder stage dialog with page-type preset, prompt, reference image upload, and raw-prompt toggle

Inline AI Buttons on Edit Panels

  • Every text and textarea field in every PageBuilder edit panel gets a small AI button.
  • Field-aware prompts - the module passes field context (heading, subheading, CTA text, paragraph) so output matches the slot.
  • Replace or append - insert generated text or append it to existing content.
  • Regenerate - not happy with the result? One click gives you another variation.

Per-field AI dialog on the Product edit form - generate a short description with optional image upload and raw-prompt toggle

AI Meta Generation on Product, Category and CMS Forms

Dedicated AI Meta Generation panels on product, category, and CMS page edit forms expose a saved-prompt selector, an editable prompt box, reference image upload, and per-field AI buttons for Meta Title, Meta Keywords, Meta Description, OG Title, OG Description, and URL Key. Placeholders like {{name}}, {{sku}}, {{price}}, {{category}}, {{description}} are resolved server-side against live entity data before the prompt is sent.

Product admin form - AI Meta Generation panel with prompt selector, placeholders, and per-field AI buttons

Category admin form - AI Meta Generation panel with per-field AI buttons for OG Title, Meta Title, and URL key

Panth PageBuilder AI demo - per-field AI buttons on the Default Category edit form generating meta title, meta description, OG title, OG description, and URL key in sequence

Saved Prompt Templates

  • Reusable prompts - save brand voice instructions, tone guides, and legal boilerplate and pick them from a dropdown on every generation.
  • Per-entity library - each entity type (product, category, CMS page, PageBuilder) keeps its own set of saved prompts.
  • Team-friendly - saved prompts persist across admin users so your whole team shares one voice.
  • Default prompt per entity - mark any saved prompt as default for its entity type and it loads automatically.

AI Prompts admin grid - manage reusable prompt templates per entity type with default and active flags

Bulk Generation Queue

Queue AI generation jobs for up to 500 entities at a time. The module uses Magento's native MessageQueue framework so large batches run asynchronously under cron_consumers_runner without blocking the admin. Results land in an AI Generation Jobs grid with a draft-then-approve workflow so you review output before anything touches your live catalog.

AI Settings dashboard - pending/processing/draft/approved/failed counters plus bulk generation form and cron setup instructions

Request Audit Log

Every prompt and response sent to OpenAI or Claude is saved in a first-class admin grid: admin user, entity type, entity ID, target field, output format, provider, model, token count, latency in milliseconds, and the full prompt and response text. Useful for debugging, cost tracking, and compliance.

AI Request Logs admin grid - every call recorded with admin user, entity, format, provider, model, prompt/response sizes, tokens, latency, and per-row detail view

AI Knowledge Base

A structured knowledge base of PageBuilder patterns, SEO rules, e-commerce content guidelines, accessibility guidance, and reusable HTML snippets gets injected into AI prompts during generation. Ships with 500+ entries. You can add or edit entries from the admin.

AI Knowledge Base admin grid - PageBuilder patterns, SEO rules, e-commerce guidelines, accessibility rules, and HTML snippets injected into AI prompts

AI Provider Flexibility

  • OpenAI - GPT-4, GPT-4 Turbo, GPT-4o, GPT-4o mini. Use your own API key.
  • Anthropic Claude - Claude Sonnet, Claude Opus, Claude Haiku. Use your own API key.
  • No Panth-hosted middleman - requests go directly from your server to the AI provider.
  • Swap providers anytime - change provider in admin and every AI button picks up the new backend immediately.

PageBuilder-Native Output

  • Valid PageBuilder markup - returned HTML uses correct data-content-type, data-element, and PageBuilder attributes so layouts load cleanly into the editor.
  • Responsive by default - generated layouts include standard PageBuilder responsive classes.
  • Fully editable - every generated block can be edited, duplicated, or deleted like any hand-built content.

Page-Type Presets

Preset What It Generates
Homepage Hero + value prop + feature grid + testimonials + CTA sections
About Us Story + mission + team + milestones + contact CTA
FAQ Question/answer accordion layout with on-brand tone
Landing Page Conversion-focused hero + benefits + social proof + form CTA
Category Description SEO-friendly category intro with keyword-rich copy
Policy Privacy, Terms, Shipping, or Returns policy in clean format
404 / Not Found Friendly error-page copy with navigation CTAs

Each preset ships with a tuned system prompt. You can override the preset prompt per generation.

Compatibility

Requirement Versions Supported
Magento Open Source 2.4.4, 2.4.5, 2.4.6, 2.4.7, 2.4.8
Adobe Commerce 2.4.4, 2.4.5, 2.4.6, 2.4.7, 2.4.8
Adobe Commerce Cloud 2.4.4 to 2.4.8
PHP 8.1.x, 8.2.x, 8.3.x, 8.4.x
Magento PageBuilder 2.2+ (bundled with Magento 2.4.4+)
Required Dependency mage2kishan/module-core (free)
Soft Dependency mage2kishan/module-advanced-seo (optional - provides shared AI backend)
OpenAI API GPT-4, GPT-4 Turbo, GPT-4o family
Anthropic API Claude Haiku, Claude Sonnet, Claude Opus

Installation

Composer Installation (Recommended)

composer require mage2kishan/module-pagebuilder-ai
bin/magento module:enable Panth_Core Panth_PageBuilderAi
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy -f
bin/magento cache:flush

Manual Installation via ZIP

  1. Download the latest release from Packagist or the product page.
  2. Extract the contents to app/code/Panth/PageBuilderAi/ in your Magento install.
  3. Make sure Panth_Core is installed too (required dependency).
  4. Run the commands above starting from bin/magento module:enable.

Verify Installation

bin/magento module:status Panth_PageBuilderAi
# Expected: Module is enabled

After install, open any CMS page in the admin. You should see an AI Content button on the PageBuilder toolbar.

Configuration

Go to Stores - Configuration - Panth Extensions - PageBuilder AI.

System Configuration - Enable PageBuilder AI, AI provider, API key, model, max tokens, temperature, monthly token budget, cache TTL, writing tone

Setting Group Default Description
Enable PageBuilder AI General Yes Master toggle for the AI Content button and all inline AI buttons.
AI Provider AI Provider openai Select OpenAI or Anthropic Claude. Swap anytime.
OpenAI API Key AI Provider - Your own OpenAI API key. Stored encrypted. Only shown when provider is OpenAI.
OpenAI Model AI Provider gpt-4o Model name, e.g. gpt-4o, gpt-4o-mini, gpt-4-turbo. Only shown when provider is OpenAI.
Anthropic API Key AI Provider - Your own Anthropic API key. Stored encrypted. Only shown when provider is Claude.
Claude Model AI Provider claude-sonnet-4-6 Model name, e.g. claude-sonnet-4-6, claude-opus-4-6. Only shown when provider is Claude.
Max Tokens AI Provider 8192 Token ceiling per AI request. Higher values allow longer content.
Temperature AI Provider 0.7 0.0 = deterministic, 0.7 = balanced, 1.0 = creative.
Monthly Token Budget AI Provider 1,000,000 Hard cap on tokens consumed per month across all requests. Atomically enforced to prevent concurrent overspend. Set to 0 to disable AI entirely.
Response Cache TTL AI Provider 2,592,000 (30 days) Seconds to cache identical prompt-response pairs. Set to 0 to disable caching.
Writing Tone AI Provider professional Tone for generated text, e.g. professional, casual, enthusiastic, technical, luxury, friendly.

If Panth_AdvancedSEO is installed and already has an AI provider configured, PageBuilder AI reuses those credentials automatically and these fields can be left empty.

How It Works

  1. Open any CMS page, block, product description, or category description that uses PageBuilder.
  2. Click AI Content on the toolbar (or the inline AI button on a specific field).
  3. Choose a page-type preset: Homepage, About, FAQ, Landing, Category, Policy, or 404.
  4. Write a prompt in plain English. Optionally attach a reference image.
  5. Pick a saved prompt template (optional) to load your brand voice.
  6. Click Generate - the module calls your configured AI provider and inserts the result into PageBuilder as valid, editable content.
  7. Edit, regenerate, or save the page as you would any other PageBuilder content.

For meta fields on product, category, and CMS page edit forms, click the small AI button next to a field (Meta Title, Meta Description, etc.), write a short instruction, and click Generate to fill that field.

FAQ

Do I need Panth_AdvancedSEO for this to work?

No, not for basic use. The module has its own AI provider settings under Panth Extensions - PageBuilder AI. Panth_AdvancedSEO is a soft, optional dependency. If it is installed and already has an AI provider configured, PageBuilder AI can reuse those credentials automatically.

Which AI providers are supported?

OpenAI (GPT-4, GPT-4 Turbo, GPT-4o, GPT-4o mini) and Anthropic Claude (Claude Haiku, Claude Sonnet, Claude Opus). You configure your own API key in admin - there is no Panth-hosted middleman.

Do I pay Panth for each generation?

No. You pay your chosen provider (OpenAI or Anthropic) directly for API usage. Panth PageBuilder AI is a one-time extension - no per-generation fees and no markup on API calls.

Does it work with Hyva themes?

Yes. This module is admin-only and does not emit any frontend output, so it works the same regardless of whether your storefront runs Hyva or Luma.

Will generated content be SEO-friendly?

Yes. The page-type presets include SEO instructions in their system prompts: keyword-rich headings, semantic HTML, and meta-friendly copy. Pair with Panth_AdvancedSEO for full automated meta-tag generation across your catalog.

Can I use it on product and category descriptions?

Yes. Any content field in Magento that uses PageBuilder (CMS Pages, CMS Blocks, Product Description, Category Description) gets the AI Content button. Meta fields (Meta Title, Meta Description, URL Key, OG fields) get per-field AI buttons through dedicated admin panels.

Is the output actually valid PageBuilder markup?

Yes. The system prompts instruct the AI to produce Magento PageBuilder markup with correct data-content-type and data-element attributes. Generated layouts load cleanly back into the editor for further editing.

Can I upload a reference image?

Yes, when your chosen model supports vision (GPT-4o, GPT-4 Turbo, Claude 3.5 Sonnet, Claude Opus). Upload a screenshot or mockup and the AI uses it to match layout and visual tone. Up to 5 images per request, max 3 MB each.

Can I generate content for many pages at once?

Yes. The Bulk Generation queue lets you queue up to 500 entities at a time. Jobs run asynchronously through Magento's MessageQueue framework. Results appear in the AI Generation Jobs grid as drafts, waiting for your approval before anything touches your live catalog.

Does it track API usage and costs?

Yes. The Request Audit Log records every prompt and response with provider, model, token count, and latency. The Monthly Token Budget setting enforces a hard cap on tokens consumed per month.

Support

Channel Contact
Product Page kishansavaliya.com/magento-2-pagebuilder-ai.html
Email kishansavaliyakb@gmail.com
Website kishansavaliya.com
WhatsApp +91 84012 70422
GitHub Issues github.com/mage2sk/module-pagebuilder-ai/issues
Upwork (Top Rated Plus) Hire Kishan Savaliya
Upwork Agency Panth Infotech

Response time: 1-2 business days.

Need Custom Magento Development?

Looking for custom AI integrations, PageBuilder extensions, Hyva theme customization, or performance tuning? Get a free quote in 24 hours:

Get a Free Quote

Hire on Upwork    Visit Agency    View Product Page

About Panth Infotech

Built and maintained by Kishan Savaliya (kishansavaliya.com), a Top Rated Plus Magento developer on Upwork with 10+ years of eCommerce experience.

Panth Infotech is a Magento 2 development agency that builds high quality, security focused extensions and themes for both Hyva and Luma storefronts. The extension suite covers SEO, performance, checkout, product presentation, AI-powered content, customer engagement, and store management, with each module built to MEQP standards and tested across Magento 2.4.4 to 2.4.8.

Browse the full extension catalog on our Magento extensions page or on Packagist.

Quick Links

Resource Link
Product Page magento-2-pagebuilder-ai.html
Packagist mage2kishan/module-pagebuilder-ai
GitHub mage2sk/module-pagebuilder-ai
Website kishansavaliya.com
Free Quote kishansavaliya.com/get-quote
Upwork (Top Rated Plus) Hire Kishan Savaliya
Upwork Agency Panth Infotech
Email kishansavaliyakb@gmail.com
WhatsApp +91 84012 70422

Ready to write Magento content faster with AI?
See PageBuilder AI

SEO Keywords: magento 2 pagebuilder ai, magento 2 ai content generation, openai magento pagebuilder, claude magento pagebuilder, magento 2 cms ai, magento ai content module, magento 2 pagebuilder extension, ai product description magento, magento 2 ai copywriting, chatgpt magento 2, anthropic claude magento, magento 2 bulk content generation, magento 2 content generator, magento ai meta generation, ai category description magento, magento pagebuilder full page ai, magento 2 saved prompt templates, magento ai knowledge base, magento request audit log, magento token budget, hyva pagebuilder ai, luma pagebuilder ai, magento 2.4.8 ai, php 8.4 magento ai, mage2kishan pagebuilder ai, panth pagebuilder ai, panth infotech, kishan savaliya magento, top rated plus upwork magento, hire magento developer, custom magento ai module