Search by

zerofront / module-zero-returns-ai-assistant

pasichnikroman

Zero for Magento Open Source: the AI Assistant's and the Claude connector's tools for Zero Returns: list and open return requests and move them to the next status with a message, and the /returns command.

Package info

github.com/zerofrontdev/module-zero-returns-ai-assistant

Homepage

Type:magento2-module

pkg:composer/zerofront/module-zero-returns-ai-assistant

Statistics

Installs: 0

Dependents: 0

Suggesters: 2

Stars: 0

Open Issues: 0

1.3.11 2026-11-17 03:20 UTC

This package is auto-updated.

Last update: 2026-11-17 03:26:55 UTC


README

The AI Assistant's tools for Zero_Returns: looking at return requests and moving them on.

Admin only, like the assistant itself. A bridge module: Zero_AiAssistant and Zero_Returns know nothing of each other, so a store that uses both installs this one too.

Install

Requires Magento Open Source 2.4.7–2.4.9 and PHP 8.2–8.4 with the GD extension built with WebP (php -r 'var_dump(function_exists("imagewebp"));' says true; Magento's own PHP requirements cover the rest). Without WebP in GD, Zero skips its WebP image copies and serves the originals.

composer require zerofront/module-zero-returns-ai-assistant
bin/magento setup:upgrade
bin/magento setup:di:compile           # production mode
bin/magento setup:static-content:deploy # production mode
bin/magento cache:flush

Composer installs zerofront/module-zero-ai-assistant, zerofront/module-zero-returns with it.

Part of zerofront/zero, which installs the Zero theme and every Zero module at once.

Tools

  • list_returns: return requests, the pending ones by default; search by customer or order.
  • get_return: one return with its items, the conversation and the statuses it can go to next.
  • update_return: a new status and/or a message to the customer (emailed, as the admin's return page does it); shown to the admin to confirm first.

Each tool needs the same ACL resource the work needs in the admin (Zero_Returns::returns), so a role without it never gets the tool.

How it plugs in

etc/di.xml adds the tools to the pool of Zero\AiAssistant\Model\Tools (\Proxy items with a sortOrder, the order Claude and the chat see) and names the module they need under requires: with Zero_Returns disabled they are hidden and never built. The /returns command ("Pending returns") is registered the same way, through Zero\AiAssistant\Model\Commands. The tool classes take Zero_Returns's services as constructor arguments.

Disabling this module removes only these tools; the names, resources and areas (returns) stay as they were when the tools lived in Zero_AiAssistant.

What changed in each release: CHANGELOG.md.

License

OSL-3.0 or AFL-3.0, your choice: see NOTICE.md.

Zero is made by Fixstacks. Documentation: https://zerofront.dev/docs. Demo store: https://demo.zerofront.dev.