zerofront / module-zero-quote-request-ai-assistant
Zero for Magento Open Source: the AI Assistant's and the Claude connector's tools for Zero Quote Request: list and open quote requests, answer with prices or decline, and the /quotes command.
Package info
github.com/zerofrontdev/module-zero-quote-request-ai-assistant
Type:magento2-module
pkg:composer/zerofront/module-zero-quote-request-ai-assistant
Requires
- php: ~8.2.0||~8.3.0||~8.4.0
- magento/framework: 103.0.*
- zerofront/module-zero-ai-assistant: ^1.3.11
- zerofront/module-zero-quote-request: ^1.3.11
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
- fixstacks/module-zero-quote-request-ai-assistant: 1.3.11
README
The AI Assistant's tools for Zero_QuoteRequest: answering customers' quote requests.
Admin only, like the assistant itself. A bridge module: Zero_AiAssistant and Zero_QuoteRequest 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-quote-request-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-quote-request with it.
Part of zerofront/zero, which installs the Zero theme and every Zero module at once.
Tools
list_quote_requests: quote requests, the unanswered ones by default; search by email, name or company.get_quote_request: one request with every line (the token is never given out).answer_quote_request: prices per line and a note, the customer is emailed and can order at those prices; or a decline; shown to the admin to confirm first.
Each tool needs the same ACL resource the work needs in the admin (Zero_QuoteRequest::requests),
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_QuoteRequest disabled they
are hidden and never built. The /quotes command ("Answer quote requests") is registered the same way, through Zero\AiAssistant\Model\Commands.
The tool classes take Zero_QuoteRequest's services as constructor arguments.
Disabling this module removes only these tools; the names, resources and
areas (quotes) 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.