AdaptersBigCommerce

BigCommerce

The BigCommerce adapter (added in v0.8) is the third production merchant adapter. It talks to the BigCommerce API and adds order tracking on top of the standard catalog and checkout surface.

import { ShoppingAgent, BigCommerceAdapter, GeminiAdapter } from '@agorio/sdk';
 
const agent = new ShoppingAgent({
  llm: new GeminiAdapter({ apiKey: process.env.GEMINI_API_KEY }),
  merchants: [
    new BigCommerceAdapter({
      storeHash: process.env.BC_STORE_HASH,
      accessToken: process.env.BC_ACCESS_TOKEN,
    }),
  ],
});

Authentication

BigCommerce uses an X-Auth-Token header carrying a store API account token, scoped to a store identified by its store hash.

Capabilities

List, search, get product, create checkout, complete checkout, and order tracking. The order tracking capability lets the agent report fulfillment status after a purchase. See the adapters registry for the full capability matrix.