Connect an E-commerce Store
If your storefront runs on Squarespace, WooCommerce (WordPress), Shopify, or BigCommerce, a Divinci release can do two things for it:
- Embed the chat widget on every storefront page (a script tag β no backend changes).
- Sync your product catalog into a RAG collection so the assistant can answer "which of your bundles has X" or "is Y in stock" questions, cite the right product page, and recommend products by name.
Both are configured from the whitelabel dashboard (Setup β Integrations) β no code required for the storefront side. This guide covers the connect flow for each platform and how to keep the catalog automatically in sync.
1. Embed the chat widget
Section titled β1. Embed the chat widgetβThe same embed script works on every platform β paste it once, replace
{RELEASE_ID} with your release's id:
<script src="https://embed.divinci.app/embed-script.js" divinci-release-id="{RELEASE_ID}"></script>Settings β Advanced β Code Injection β Footer, paste the script tag, save. Requires a Business plan or higher.
Paste the script tag into your theme's footer.php just before </body>, or
use a header/footer script plugin if you'd rather not edit theme files
directly.
Online Store β Themes β Edit code, open layout/theme.liquid, paste the
script tag just before </body>, save. The widget now loads on every
storefront page.
Storefront β My Themes β Advanced β Edit Theme Files, open
templates/layout/base.html, paste the script tag just before </body>, and
save. (Script Manager can't add the divinci-release-id attribute to a URL
script, so edit the theme file instead.) Re-apply the change if you switch or
update your theme.
2. Sync your product catalog
Section titled β2. Sync your product catalogβCatalog sync pulls your full product list through each platform's own API β no manual export/import. From your whitelabel's RAG Vector β Product Catalog β Upload β Feed Digester, pick your platform's tab and connect:
- Get an API credential (platform-specific β see below).
- Connect β paste your store URL and credential into the Feed Digester's connect form.
- Pull Products β Divinci fetches your catalog and shows a preview with a prebuilt field mapping (price, images, stock, category, brand).
- Import β creates a searchable product catalog and indexes it into your chosen RAG vector. The assistant can now answer product questions and link back to the right storefront page.
Requires a Commerce plan. Generate a key at Settings β Developer Tools β API Keys with Products (read) permission.
Settings β Advanced β REST API β Add key, with Read permission. This gives you a Consumer Key + Consumer Secret pair β both are required.
Settings β Apps and sales channels β Develop apps, create an app, enable
the read_products Admin API scope, install it, and copy the generated
Admin API access token (shown once).
BigCommerce: recommendations, member pricing, and add-to-cart
Section titled βBigCommerce: recommendations, member pricing, and add-to-cartβBigCommerce is supported differently from the three platforms above, so read this before planning an integration. It has no one-click "pull my store" tab in the Feed Digester today; what it has is a deeper commerce layer built for stores that sell on membership pricing.
| Capability | How it works on BigCommerce |
|---|---|
| Catalog into RAG | Import a product feed (JSON or CSV URL, including the Octocom feed format, which carries BigCommerce variant and per-tier price fields) through the Feed Digester. There is no authenticated Store API pull, so it is a feed import rather than an automatic re-sync. |
| Product recommendations in chat | Products the assistant recommends render as product cards inside the conversation, with image, name and a link back to the product page. |
| Member-tier pricing | Cards show the price for the visitor's tier β non_member, gold_member, platinum_member or diamond_member. Your site passes the visitor's tier when it signs them in to the widget; you can map your own membership names to these tiers on the integration. Visitors with no tier see the standard price. |
| Add to cart | Cards offer an add-to-cart link built from a URL pattern, by default https://{store_domain}/cart.php?action=add&sku={sku}&qty={qty}. It opens in a new tab and carries a ref=divinci parameter so you can attribute the sale. You can change the pattern or turn it off. |
| Order and subscription events | A signed webhook (HMAC-SHA256) from your store keeps order and subscription records in step. Unsigned or badly signed requests are rejected. |
3. Keep it in sync automatically
Section titled β3. Keep it in sync automaticallyβBy default, catalog sync is a one-time pull. If your inventory or pricing changes regularly, enable automatic re-sync on the Feed Digester's import step ("Keep this catalog in sync automatically") and pick an interval β 6 hours, 12 hours, daily, or weekly.
On each scheduled run, Divinci re-pulls your full catalog and only re-processes what actually changed:
- New products are added and indexed.
- Changed products (price, description, stock, etc.) are re-indexed so the assistant's answers stay current.
- Unchanged products are left alone β no wasted re-indexing.
- Products no longer returned by your store are marked out of stock rather than deleted, so the assistant never cites a broken link and any existing conversations that reference the product stay coherent.
Aliases, prominence weighting, and any "preferred recommendation" pins you've set manually on a product always survive a re-sync β auto-sync never overwrites operator-curated merchandising.
Troubleshooting
Section titled βTroubleshootingβ"This integration has no API key" / "needs a store URL and access token" β the connect form was submitted without a required credential field for that platform. Re-check the credential steps above.
Products aren't showing up in chat after import β confirm the catalog's
status is completed on the Product Catalog list page. A processing status
means indexing is still in progress; large catalogs (500+ products) can take
a few minutes.
A product's info seems stale β if auto-sync is off, re-run the Feed
Digester manually. If it's on, check the catalog's last sync time and status
on the Product Catalog list page; a partial or failed status means some
products didn't re-index and will be retried on the next scheduled run.