The AI assistant now works directly in Magento: content, catalog and sales reports

AI assistant in Magento: content, catalog and reports right in the store

Claude, ChatGPT and the other AI assistants write good text. The problem is what happens next. The text stays in the chat, and someone has to copy it, paste it into the store admin and fix the formatting by hand. For every article, every page and every product description.

The shortcut, content written directly by an outside tool, carries a different risk. PageBuilder, Magento's visual editor, stores content in a specific format. If that format is written by hand or by an outside program, the editor easily breaks when the content is opened.

The same goes beyond text. Images, statuses and copy for dozens of products get fixed click by click, and the answer to a simple question like “how much did we sell last week, and which products” goes through several reports and a spreadsheet.

That is why we built the Webcode MCP modules for Magento. With them the AI assistant writes content directly into the store, tidies up the catalog and answers questions about sales. It works with your admin login and the permissions of your role, and the content stays fully editable in PageBuilder.

How it works

The modules turn the store into an MCP server. MCP (Model Context Protocol) is the standard AI assistants use to connect to outside systems. In practice it looks like this:

How the AI assistant works with Magento: you connect it, allow access in the admin, say what you want and review the draftHow the AI assistant works with Magento: you connect it, allow access in the admin, say what you want and review the draft

  1. Connect the assistant. In claude.ai or ChatGPT, add the address of your store: https://your-store/mcp.
  2. Allow access. The store admin opens. You log in as usual, including two-factor authentication, and click Allow on the consent screen.
  3. Say what you want. For example: “Write an article about our new collection and save it as a draft” or “Which products have no main image?”
  4. Review in the admin. The assistant assembles the content as sections, headings, text and buttons, and the module turns it into valid PageBuilder format. The article appears as a draft and you edit it in PageBuilder like any other content.

Every block, background and color is in the settings of the element itself, with no external CSS. If you want to change a button's color or a section's spacing, you do it where you are used to.

What the assistant can do

The capabilities are split into several modules, and you install only the ones you need.

What the AI assistant can do in Magento: content, catalog, settings and cache, sales reportsWhat the AI assistant can do in Magento: content, catalog, settings and cache, sales reports

Content

  • Blog posts, CMS pages and static blocks, as a draft or published.
  • Product descriptions, short descriptions and category descriptions, for a specific store view.
  • Meta title and description, and for articles also the featured image, excerpt, category and Open Graph fields.
  • Targeted edits: changing one sentence or adding a paragraph without rewriting the whole page.
  • Images: the assistant uploads them to the store's media gallery from a web address or from a file on your computer.
  • Publishing, unpublishing, renaming and deleting a page or an article.
  • Saved PageBuilder templates: the assistant sees them and applies them to a page.
  • Frequently asked questions with structured data for search engines, when our FAQ element for PageBuilder is installed in the store.

Content is assembled from the standard PageBuilder elements: sections, columns, headings, text, HTML, buttons and images. Background, color, spacing, alignment, borders and rounded corners are set through the element settings.

Catalog

  • Product search by name, SKU, status, category or missing main image.
  • A new product as a copy of a similar one. It is created disabled so you can review it.
  • Name, meta title, meta description and descriptions for each store view separately.
  • Attributes, status, stock, categories and URL key.
  • Images: adding and removing, roles, order and alt text.
  • Related products, up-sells and cross-sells.
  • Prices: the assistant sees the price and the special price for each store view and restores the default value where a store-specific one was left behind.
  • Categories: viewing the tree, a new category (created inactive), renaming, moving, enabling and disabling.

Settings and cache

  • Stores → Configuration and Content → Design → Configuration: the assistant finds a field by name, shows its value and changes it for the chosen scope.
  • File fields such as the product image placeholders and the default Open Graph image.
  • Cache: status and refresh, including Varnish.
  • Robots meta (index or noindex) on a product, category or page for a chosen store view, in stores with the MageOS SEO module.

Sales reports

This module is read-only. The assistant answers questions that would otherwise take several reports:

  • Summary for a period: orders, revenue, discounts, shipping, refunds, average order value and a comparison with the previous period.
  • Breakdown by payment method, courier, city, customer group, coupon, category, hour and day of the week.
  • Best-selling products and products with the biggest growth or decline.
  • Stock: how many days the stock will last at the current pace, and which goods sit without a sale.
  • Refunds, coupons and abandoned carts.
  • Customers: new and returning, top customers and segments by recency, frequency and value of purchases.
  • Orders: search and a full view of a single order.

Example questions: “How are sales this month compared with last month?”, “Which products will run out within two weeks?”, “Which goods have been in stock without a single sale for 90 days?”

The numbers are calculated directly from the orders, not from Magento's statistics, which need a manual refresh. Canceled orders are not counted in revenue and are shown separately.

Why the content stays editable

The module generates exactly the format the PageBuilder editor itself writes. Every save goes through a check that guarantees the editor will not break when the content is opened. If the content does not pass the check, it is simply not saved.

Security and control

Giving an AI assistant access to your store is a serious decision. That is why the modules are built so that control stays with you.

  • No passwords or tokens in the chat. The connection uses the OAuth 2.1 standard: you log in to the admin and explicitly allow access. Your password never passes through the assistant.
  • It acts on behalf of a specific person. The assistant works with the permissions of the administrator who allowed the connection, and the changes appear as made by that person.
  • The same permissions as in the admin. The modules have no permission of their own. Every action is checked against the permission that allows it in the admin. A user without access to products does not see the product tools, and without access to reports does not see sales.
  • Review and revoke at any time. In the admin, under Content → Elements → MCP Connections, you see who connected what and when it was last used, with a button to revoke it. A deactivated or locked user loses access immediately.
  • A limited connection. The tokens are valid only for the connection with the assistant and do not open the rest of the store's API. They expire every hour and are renewed automatically, and a connection unused for 30 days expires.
  • Secrets stay hidden. Passwords and keys in the store settings are shown masked and cannot be changed through the assistant.
  • Personal data is protected. Customer names and emails in the reports are visible only to a role with access to customers. For everyone else the email is masked.
  • Confirmation before saving. The write tools are marked as changing data, so the assistants ask before they save. ChatGPT shows what it is about to send and waits for confirmation.

The good practice is simple: the assistant saves a draft, and a person reviews and publishes it.

Which assistants it works with

  • Claude: claude.ai as a custom connector, the Claude desktop app and Claude Code. In Team and Enterprise organizations the connector is added once by the organization owner.
  • ChatGPT: the web version in Developer mode, on the Plus, Pro, Business, Enterprise and Edu plans. In Business and Enterprise the workspace administrator may first need to allow custom apps. The free plan does not support this feature.
  • Other MCP clients with OAuth that run on your computer.

For automation through scripts there is also a Web API with a token.

What to keep in mind

The modules save a lot of manual work, but they have limits that are good to know in advance:

  • Product descriptions, copy and settings have no draft. The change is visible immediately on the live store. When it saves product copy, the assistant also receives the previous state, so the change can be reverted.
  • New products and categories are created disabled and are enabled after review.
  • Deletion is final. The assistant can delete a page, an article or a static block if your role has that permission. It does not delete products or categories. A category can only be disabled.
  • Images are up to 8 MB, in JPG, PNG, GIF or WebP format.
  • Some PageBuilder elements (sliders, tabs, video, maps) the assistant does not assemble on its own yet. For them you use a saved template from the editor.
  • The quality of the text depends on the assistant and on your instructions. Human review remains a must.

For the technical team

The modules are installed with Composer as standard Magento modules, with no changes to the web server. They support Magento 2.4.7 to 2.4.9 and PHP 8.3 to 8.5, and require the store to be reachable over HTTPS. For scripts there is access with an integration token, limited to the permissions of that integration.

Already in use

We developed the modules at Webcode and they run on our own site, webcode.bg. This article, together with its image, was written to the blog through them. We offer them to our clients with Magento stores, and you will find details on the module page.

How does the AI assistant edit content in Magento?

Through the Webcode MCP connector the assistant can write content directly into Magento PageBuilder. Depending on the connected tools, it can also edit the catalog and run sales reports.

Frequently asked questions

  • Do I need to be a developer to use it?

    No. You add the store address in the assistant, log in to the admin and click “Allow”. After that you simply say in words what you want. Installing the modules is a one-time task for the store's developer.

  • Will the assistant see my admin password?

    No. You log in directly to the store admin using the OAuth 2.1 standard, and your password never passes through the assistant or the chat.

  • Can the assistant publish something without my knowledge?

    The write tools are marked as changing data, so the assistants ask before saving. You can ask for articles and pages to be saved as a draft that you publish after review. The exception is product descriptions and copy: they have no draft and the change is visible immediately.

  • Can I edit what was written afterwards?

    Yes. The content opens in PageBuilder like any other. Every block, background, color and spacing is in the settings of the element itself.

  • Can the assistant delete content?

    A page, an article or a static block, yes, if your role is allowed to delete them and after you confirm. Deletion is final. The assistant does not delete products or categories.

  • Does the assistant see my orders and customers?

    Only if your role has access to the corresponding reports in the admin and the sales module is installed. It is read-only and does not change orders. Customer names and emails are shown only to a role with access to customers.

  • What happens if an employee leaves?

    A deactivated or locked user loses access immediately. You can also revoke any connection by hand under Content → Elements → MCP Connections in the admin.

  • Does it work with free ChatGPT?

    No. ChatGPT supports this in Developer mode on the Plus, Pro, Business, Enterprise and Edu plans. With Claude it works through claude.ai, the Claude desktop app and Claude Code.

  • Can the assistant upload images?

    Yes. It uploads images to the media gallery from a web address or from a file on your computer, and adds images to products. The limit is 8 MB per file.

  • What does it take to run on my store?

    Magento 2.4.7 to 2.4.9 with PHP 8.3 to 8.5, reachable over HTTPS. The modules are installed with Composer as standard Magento modules, with no changes to the web server.

Want the AI assistant to work directly in your store? Write to us and we will show you how it works on your content and your catalog.