AgentForge

WooCommerce Integration

Create WooCommerce tools — manage orders, products, and customers.

Setup

import { createWooCommerceTools } from '@ahzan-agentforge/core';

const tools = createWooCommerceTools({
  url: process.env.WOOCOMMERCE_URL!,
  consumerKey: process.env.WC_CONSUMER_KEY!,
  consumerSecret: process.env.WC_CONSUMER_SECRET!,
});

WooCommerceToolConfig

interface WooCommerceToolConfig {
  url: string;            // WooCommerce store URL
  consumerKey: string;    // WC REST API consumer key
  consumerSecret: string; // WC REST API consumer secret
}

Available Tools

  • list-orders — list store orders
  • get-order — get order details
  • list-products — list products
  • get-product — get product details
  • update-order-status — update an order's status

Next Steps