Download the PHP package mage2kishan/module-pagebuilder-ai without Composer

On this page you can find all versions of the php package mage2kishan/module-pagebuilder-ai. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package module-pagebuilder-ai

Magento 2 PageBuilder AI

PageBuilder AI adds AI content generation to the Magento admin. Admins can do four things with it:

Two providers are supported: OpenAI (Chat Completions API) and Anthropic (Messages API). When an admin generates content, the module sends the selected provider the prompt, any store or entity data the prompt includes, and any reference images the admin attached. Nothing is sent from the storefront.

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

Features

Compatibility

Item Supported
Magento Open Source 2.4.4 to 2.4.8
Adobe Commerce 2.4.4 to 2.4.8
PHP 8.1, 8.2, 8.3, 8.4
Magento Page Builder Required (Magento_PageBuilder)

Composer constraints:

Requirements

Interactive generation in the admin does not need cron.

Installation

Check that the module is enabled:

The module defines a database queue consumer for bulk jobs. To run it manually:

Configuration

Admin path: Stores > Configuration > Panth Extensions > PageBuilder AI.

General (panth_pagebuilderai/general)

Field Type Default Config path Notes
Enable PageBuilder AI Yes/No Yes panth_pagebuilderai/general/enabled Adds the AI buttons and the extra SEO fields in the admin.

AI Provider (panth_pagebuilderai/ai)

Field Type Default Config path Notes
AI Provider Select: "OpenAI (GPT-4o)", "Anthropic Claude", "Disabled (None)" openai panth_pagebuilderai/ai/provider
OpenAI API Key Obscured, encrypted (empty) panth_pagebuilderai/ai/openai_api_key Shown when AI Provider is OpenAI.
OpenAI Model Text gpt-4o panth_pagebuilderai/ai/openai_model Admin hint: e.g. gpt-4o, gpt-4o-mini, gpt-4-turbo.
Anthropic API Key Obscured, encrypted (empty) panth_pagebuilderai/ai/claude_api_key Shown when AI Provider is Anthropic Claude.
Claude Model Text claude-sonnet-4-6 panth_pagebuilderai/ai/claude_model Admin hint: e.g. claude-sonnet-4-6, claude-opus-4-6. If the field is empty, the code falls back to claude-sonnet-4-6.
Max Tokens Text (digits, greater than 0) 8192 panth_pagebuilderai/ai/max_tokens Maximum output tokens per request.
Temperature Text (number from 0 to 1) 0.7 panth_pagebuilderai/ai/temperature
Monthly Token Budget Text (digits) 1000000 panth_pagebuilderai/ai/monthly_budget Bulk path only. A value of 0 rejects bulk requests.
Response Cache TTL (seconds) Text (digits) 2592000 panth_pagebuilderai/ai/cache_ttl Bulk path only. A value of 0 disables the cache.
Writing Tone Text professional panth_pagebuilderai/ai/tone Interactive path only. Added to the system prompt as Writing tone: <value>. (letters, digits, spaces, commas and hyphens, up to 60 characters).

API keys are saved with Magento's Encrypted backend model, so they are stored encrypted in core_config_data. The model fields are free text: enter any model ID that your provider account can use.

The two request paths use these settings differently.

Interactive generation covers the toolbar, the field buttons and the meta panels, all of which go through panth_pagebuilderai/generate/index.

Bulk jobs use the provider adapters.

Usage

Generate a page in Page Builder

  1. Open a CMS page, or another form with a Page Builder stage, and click AI Content on the Page Builder toolbar.
  2. Choose a Page Type preset or keep Custom Page, then edit the prompt.
  3. Optionally attach up to 5 reference images. The browser skips files over 5 MB. The server accepts only PNG, JPEG, GIF and WebP data URIs of up to 4,000,000 characters each and rejects the request otherwise.
  4. Click Generate Page. The result replaces the current stage content.
  5. Review the result in the editor. To go back, click Undo in the confirmation message. Nothing is saved until you save the page.

Fill a single field

  1. Click the small AI button next to an eligible field.
  2. Adjust the prompt and generate. The value is written into that field only.
  3. Review the value and save the form as usual.

Bulk meta drafts

  1. Open the AI Dashboard admin page. Its menu entry sits under the Panth_Core extensions menu.
  2. Under "Bulk AI Generation", choose Entity Type (Products, Categories, CMS Pages) and Store View.
  3. Enter entity IDs, comma separated or one per line. The form keeps the first 500, and the server rejects a job with more than 500 distinct IDs.
  4. Click Queue Generation Job. This creates a job with status pending and publishes a message to the topic panth_pagebuilderai.generate_meta.
  5. The consumer builds context for each entity and generates a meta title and meta description. It then sets the job to draft, or to failed if no entity produced output. The consumer only processes jobs in pending status. A job found in processing status (interrupted earlier) is set to failed and is not retried.
  6. In AI Generation Jobs, open a job and review its drafts.
  7. Use Approve Selected to write meta_title and meta_description to the entities. Products and categories are saved at the job's store view; CMS pages are saved without a store scope. Only jobs in draft status can be approved.
  8. Use Delete Selected to remove jobs.

Running the queue

Messages are processed in one of two ways.

Console commands

The module adds no console commands of its own. To run the consumer, use Magento's queue:consumers:start panth_pagebuilderai.generate_meta.consumer (see Installation).

Prompts, knowledge base and logs

Data and privacy

Requests go directly from the Magento server to the selected provider:

Nothing is sent until an admin clicks a generate button or the queue consumer processes a job. Every request includes the model, max tokens and temperature. OpenAI bulk requests also ask for logprobs.

Interactive generation (toolbar, field buttons, meta panels) sends:

Bulk jobs send a prompt built from the entity type's default AI prompt template. If no template exists, a built-in meta prompt is used. The prompt contains:

Stored locally

Developer Notes

Identifiers

Relationship to mage2kishan/module-advanced-seo

Provider extension point

Queue

Element Value
Topic panth_pagebuilderai.generate_meta
Exchange panth_pagebuilderai.exchange
Queue panth_pagebuilderai.generate_meta.q
Connection db
Consumer panth_pagebuilderai.generate_meta.consumer
Handler Model\Queue\BulkGenerateConsumer::process

Plugins (etc/adminhtml/di.xml)

Admin route and endpoints

The admin route is panth_pagebuilderai. Main endpoints:

All POST endpoints, including generate/index and aigenerate/generate, go through Magento's admin form key check. The bundled scripts send form_key in the query string, so JSON request bodies also pass the check. Deleting a request log row is a POST action.

Page Builder integration

ACL

Admin menu

Under the parent Panth_Core::panth_extensions: AI Dashboard, AI Generation Jobs, AI Prompts, AI Knowledge Base, AI Request Logs.

Tables (etc/db_schema.xml)

panth_seo_ai_prompt, panth_seo_ai_knowledge, panth_seo_ai_usage, panth_seo_ai_cache, panth_seo_generation_job, panth_pagebuilderai_request_log.

Data patches

The data patches install the default AI prompts, upgrade those default prompts, and load the knowledge base entries from Setup/Data/.

Tests

Unit tests in Test/Unit cover the drain cron job (message and time budget, lock, empty queue, rejected messages, interrupted jobs) and the HTTP timeout and host checks of the provider adapters. They use stubs and make no network calls.

Uninstallation

The module has no uninstall routine. After removal, the following remain:

Remove these by hand if you no longer need them, but check first whether another Panth module still uses the panth_seo_* tables. Consider also revoking the API keys at the provider.

Support

Provider documentation:

Documentation

See USER_GUIDE.md.

License

Commercial software license. See LICENSE.txt in this repository.

Changelog

See CHANGELOG.md.

Links


All versions of module-pagebuilder-ai with dependencies

PHP Build Version
Package Version
Requires php Version ~8.1.0||~8.2.0||~8.3.0||~8.4.0
mage2kishan/module-core Version ^1.0
magento/framework Version ^103.0
magento/module-backend Version ^102.0
magento/module-page-builder Version ^2.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mage2kishan/module-pagebuilder-ai contains the following files

Loading the files please wait ...