Magento / Adobe Commerce
Connect your Magento 2 or Adobe Commerce store via the built-in REST API. Supports both open-source Magento 2.4+ and Adobe Commerce (formerly Magento Commerce).
Create an integration token
betterfound.ai uses Magento's Integration API for read-only catalogue access.
- In Magento Admin, go to System → Extensions → Integrations
- Click Add New Integration
- Set a name (e.g. "betterfound.ai") and under API, grant access to:
Catalog→Products(read-only) - Save and then click Activate
- Copy the Access Token from the tokens dialog
Magento Admin — Integration API token generation
Add the data source
In the betterfound.ai dashboard, use Generic JSON data source type and enter:
- URL —
https://your-store.com/rest/V1/products?searchCriteria[pageSize]=100 - Auth header —
Authorization: Bearer <your-access-token>
Map the Magento response fields:
| Magento field | betterfound.ai field |
|---|---|
name | name |
sku | id |
price | price |
custom_attributes[description] | description |
custom_attributes[image] | image_url (prepend media base URL) |
Magento image URLs need the media base URL prepended:
https://your-store.com/pub/media/catalog/product + the image path. Use the URL transform field in the schema mapping step.Install the widget
Add the snippet to your Magento layout XML or via the CMS page editor:
<!-- In Magento_Theme/layout/default.xml -->
<referenceContainer name="before.body.end">
<block class="Magento\Framework\View\Element\Template"
name="betterfound.widget"
template="Magento_Theme::betterfound.phtml" />
</referenceContainer>Create betterfound.phtml:
<script src="https://your-dashboard-domain/api/widget/pf.js" async></script>
<product-finder data-api="https://your-dashboard-domain" token="YOUR_WIDGET_TOKEN"></product-finder>Get the exact snippet, pre-filled with your real token, from Widget → Get Code in your betterfound.ai dashboard. For Adobe Commerce with PageBuilder, add betterfound.ai as an HTML Content block in any PageBuilder layout — no theme file changes required.