Skip to content

magebitcom/magento2-agentic-commerce-module

Repository files navigation

Agentic Commerce for Magento 2 (ACP Feed, Payments and Checkout)

This module makes your store compatible with AI-powered shopping experiences like OpenAI's "Instant Checkout" in ChatGPT.

This is the first Open-Source module that enables Agentic Commerce features in Magento 2 / Adobe Commerce stores (such as Shop in ChatGPT). The module is Hyva and Adobe Commerce Cloud compatible.

Agentic Commerce Protocol (ACP) is an open standard that enables a conversation between buyers, their AI agents, and businesses to complete a purchase.

This module is currently actively under development by Magebit and is open to public contributions.

Features

  • ChatGPT Compatible Product Feed Export
  • Instant Checkout Ready
  • Agentic Checkout Configuration (according to ACP)
  • Delegated Payment Support

Requirements

  • PHP >= 8.1
  • Stripe Payments (only if using checkout)

Installation

As a composer package

Will be released soon

As a module

  1. Download latest release files and extract them under app/code/Magebit/AgenticCommerce
  2. Run bin/magento setup:upgrade

Configuration

You can find the Module's configuration under Stores -> Settings -> Configuration -> Magebit -> Agentic Commerce: Make sure to configure Product Feed settings before running an export.

image

Additionally, there are settings at the product level. Here you can configure product visibility in Agentic search and whether to allow Agentic Checkout.

image

ACP Ready Product Feed

To export the product feed, use the magebit:agentic-commerce:export Magento command:

Usage:
  magebit:agentic-commerce:export [options]

Options:
  -s, --store=STORE     Store ID to export products from [default: 1]
  -o, --output=OUTPUT   Output file path. Relative to var directory [default: "export/agentic_commerce.csv"]

Configuring Feed Mapping

Exported product attributes are mapped using the ac_product_feed_mapping.xml config file. To adjust the mapping, create a new ac_product_feed_mapping.xml config file and add or overwrite existing mappings.

<mapping id="id">
    <source_attribute>sku</source_attribute>
    <target_attribute xsi:type="const">Magebit\AgenticCommerce\Api\Data\Spec\ProductInterface::ID</target_attribute>
</mapping>
  • id is a unique identifier for the mapping
    • source_attribute is the Magento 2 product attribute
    • target_attribute is the attribute code that will be used in the feed
    • formatter (optional) is a Magento 2 class that formats the attribute value

Source Attribute value can be a string or an object:

<mapping id="link">
    <source_attribute xsi:type="object">Magebit\AgenticCommerce\Model\Mapping\Source\Url</source_attribute>
    <target_attribute xsi:type="const">Magebit\AgenticCommerce\Api\Data\Spec\ProductInterface::LINK</target_attribute>
</mapping>

Source classes must implement the Magebit\AgenticCommerce\Api\Mapping\SourceInterface interface.

Check out the default ac_product_feed_mapping.xml config for a full reference.

Contributing

Found a bug, have a feature suggestion or just want to help in general? Contributions are very welcome! Check out the list of active issues or submit one yourself.

Implementation as a Service

Interested in Magebit doing the integration for you? Contact us on our website and we can help you with the full implementation of Agentic Commerce sales channels (Instant Checkout on ChatGPT, Product Feeds, etc).


magebit (1)

Have questions or need help? Contact us at info@magebit.com