WooCommerce
The WooCommerce adapter uses the WooCommerce REST API v3. It auto-detects a WooCommerce store
by the presence of the /wp-json/wc/v3 endpoint.
import { ShoppingAgent, WooCommerceAdapter, GeminiAdapter } from '@agorio/sdk';
const agent = new ShoppingAgent({
llm: new GeminiAdapter({ apiKey: process.env.GEMINI_API_KEY }),
merchants: [
new WooCommerceAdapter({
url: 'https://store.example.com',
consumerKey: process.env.WC_CONSUMER_KEY,
consumerSecret: process.env.WC_CONSUMER_SECRET,
}),
],
});Authentication
WooCommerce REST API v3 uses a consumer key + consumer secret pair, sent as HTTP Basic auth over HTTPS. Generate the pair in WooCommerce → Settings → Advanced → REST API.
Capabilities
List, search, get product, create checkout, and complete checkout. The adapter maps WooCommerce products and orders onto Agorio’s normalized product/checkout model so the agent treats it like any other merchant.