DEV Community

Peter
Peter

Posted on • Originally published at ucptools.dev

How to Make Your WooCommerce Store AI-Ready with UCP (2026 Guide)

AI agents are shopping for your customers. ChatGPT, Google's Gemini, and Microsoft Copilot can now browse products, compare prices, and complete purchases - if your store speaks their language.

That language is UCP (Universal Commerce Protocol), an open standard by Google, Shopify, and 25+ retailers. And if your WooCommerce store doesn't have it, AI agents will skip you entirely.

Here's how to fix that in under 10 minutes.

What is UCP?

UCP is a JSON manifest served at /.well-known/ucp on your domain. It tells AI agents:

  • What your store sells
  • How to browse products
  • How to complete checkout
  • Which payment methods you accept

Think of it like robots.txt but for commerce. Without it, AI agents can't interact with your store programmatically.

{
  "version": "2026-01-11",
  "business": {
    "name": "My WooCommerce Store",
    "url": "https://mystore.com"
  },
  "capabilities": [
    {
      "name": "checkout",
      "version": "1.0",
      "schema": "https://ucp.dev/schemas/checkout/1.0"
    }
  ],
  "payment_handlers": [
    {
      "type": "stripe",
      "supported_methods": ["card", "apple_pay", "google_pay"]
    }
  ]
}
Enter fullscreen mode Exit fullscreen mode

Option 1: Use a WooCommerce UCP Plugin (Easiest)

Several plugins now handle UCP for WooCommerce:

Plugin What It Does Setup Time
UCP Adapter for WooCommerce Auto-generates .well-known/ucp from your catalog ~5 min
UCPReady by Zologic Full UCP manifest + monitoring ~10 min
AI Merchant Pro UCP + product feed optimization ~15 min

After installing, the plugin maps your WooCommerce products, categories, and payment gateways into the UCP manifest format automatically.

Option 2: Manual Implementation (More Control)

If you prefer full control, create the manifest yourself:

Step 1: Create the Manifest File

Create a file at /.well-known/ucp in your WordPress root. You can use a custom rewrite rule or a simple PHP file:

// In your theme's functions.php or a custom plugin
add_action('init', function() {
    add_rewrite_rule(
        '^\.well-known/ucp$',
        'index.php?ucp_manifest=1',
        'top'
    );
});

add_filter('query_vars', function($vars) {
    $vars[] = 'ucp_manifest';
    return $vars;
});

add_action('template_redirect', function() {
    if (get_query_var('ucp_manifest')) {
        header('Content-Type: application/json');
        header('Access-Control-Allow-Origin: *');

        echo json_encode([
            'version' => '2026-01-11',
            'business' => [
                'name' => get_bloginfo('name'),
                'url' => home_url(),
            ],
            'capabilities' => [
                [
                    'name' => 'checkout',
                    'version' => '1.0',
                    'schema' => 'https://ucp.dev/schemas/checkout/1.0',
                    'endpoint' => home_url('/wp-json/wc/v3/checkout'),
                ]
            ],
            'services' => [
                [
                    'name' => 'product_discovery',
                    'version' => '1.0',
                    'schema' => 'https://ucp.dev/schemas/discovery/1.0',
                    'endpoint' => home_url('/wp-json/wc/v3/products'),
                ]
            ],
        ], JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
        exit;
    }
});
Enter fullscreen mode Exit fullscreen mode

Step 2: Add CORS Headers

AI agents need to fetch your manifest from different origins. Add CORS headers to your .htaccess or nginx config:

# .htaccess
<IfModule mod_headers.c>
    <FilesMatch "\.well-known/ucp">
        Header set Access-Control-Allow-Origin "*"
        Header set Content-Type "application/json"
    </FilesMatch>
</IfModule>
Enter fullscreen mode Exit fullscreen mode

Step 3: Validate Your Implementation

Run your domain through a UCP validator to check for errors:

# Using the free UCPtools validator
curl -s https://ucptools.dev/api/v1/profiles/validate-remote \
  -H "Content-Type: application/json" \
  -d '{"url": "https://yourstore.com"}'
Enter fullscreen mode Exit fullscreen mode

Or use the web validator at ucptools.dev - paste your domain and get an instant A-F grade with actionable fix suggestions.

Step 4: Test with the AI Agent Simulator

Validation confirms your manifest is correct, but does your store actually work for AI agents? The Agent Simulator tests the full workflow:

  1. Discovery - Can agents find your UCP manifest?
  2. Browsing - Can they search and view products?
  3. Checkout - Can they complete a purchase?

This catches issues that static validation misses, like broken API endpoints or timeout errors.

Common WooCommerce UCP Mistakes

From validating hundreds of WooCommerce stores, here are the top errors:

  1. Missing version field - Must be in YYYY-MM-DD format (e.g., 2026-01-11)
  2. HTTP endpoints instead of HTTPS - All UCP endpoints must use HTTPS
  3. No CORS headers - AI agents can't fetch your manifest cross-origin
  4. Trailing slashes on endpoints - /wp-json/wc/v3/products/ should be /wp-json/wc/v3/products
  5. Missing payment_handlers - Even if you only support card payments, declare them

What Happens After Setup

Once your UCP manifest is live:

  • ChatGPT Shopping can list your products in purchase recommendations
  • Google AI Mode can include your store in shopping results
  • Microsoft Copilot can browse and compare your products
  • Any UCP-compatible AI agent can discover and transact with your store

Monitor Your AI Commerce Readiness

UCP implementation isn't set-and-forget. The spec evolves, your catalog changes, and new AI agents launch constantly.

UCPtools monitoring ($9/mo) scans your store weekly and alerts you if:

  • Your UCP manifest breaks
  • Your score drops
  • New capabilities become available
  • AI agent traffic patterns change

Try it now: Run your WooCommerce store through the free validator and see your AI Commerce Score in 30 seconds.

UCPtools is an independent community tool. UCP is an open standard by Google, Shopify, and partners.

Top comments (0)