AI-powered admin widgets for Magento 2. Provides a floating chat assistant on every admin page and an AI content generator inside PageBuilder HTML blocks.
- Floating Chat Widget — a persistent chat panel in the Magento admin, powered by the
admin_assistantagent - PageBuilder AI Generator — an AI Generate button inside PageBuilder HTML blocks to create or rewrite content via the
page_builder_generatoragent - Token and cost estimation displayed in real time for every message
- Magento 2.4.4+
- PHP 8.1+
Gtstudio_AiConnectorenabled and configuredGtstudio_AiAgentsenabledMagento_PageBuilder(bundled with Adobe Commerce; available as OSS extension for Community)
php bin/magento module:enable Gtstudio_AiWidgets
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f --area adminhtml
php bin/magento cache:flush- Go to AI Studio → Agents → Add New
- Set Code to
admin_assistant - Fill in Background, Steps, and Output Instructions to define the assistant's persona
- Save — the widget appears automatically for users with the
Gtstudio_AiWidgets::managementACL resource
- Create an agent with code
page_builder_generator - In PageBuilder, open any HTML block — an AI Generate button appears in the toolbar
- Type a prompt and click Generate; the result is inserted into the block
The agent code is hardcoded as admin_assistant in AdminChatService. Override the service via DI preference to change this or add additional logic:
<!-- etc/di.xml -->
<preference for="Gtstudio\AiWidgets\Model\Service\AdminChatService"
type="Vendor\Module\Model\Service\CustomAdminChatService"/>Override via standard Magento layout XML:
<!-- view/adminhtml/layout/default.xml -->
<page>
<body>
<referenceBlock name="gtstudio.ai.chat.widget">
<action method="setTemplate">
<argument name="template" xsi:type="string">
Vendor_Module::chat/custom-widget.phtml
</argument>
</action>
</referenceBlock>
</body>
</page>The default templates are in:
view/adminhtml/templates/chat/widget.phtml
view/adminhtml/web/js/admin-chat.js
Extend TokenCostService via di.xml — see the Gtstudio_AiConnector README for the full pattern.
| Resource | Controls |
|---|---|
Gtstudio_AiWidgets::management |
Access to all widget features and the chat API endpoint |