WooCommerce UCP Setup Guide: Make Your Store AI-Ready in 10 Minutes
Make your WordPress + WooCommerce store AI-ready. Enable Google AI Mode, Gemini, and autonomous shopping agents to discover and transact with your products.
What UCPtools can (and canβt) do on WooCommerce
On a self-hosted store, UCPtools can deliver:
- 4-level validationIncludedWe validate your served profile directly.
- Monitoring & alertsIncludedWe re-check your endpoint on your schedule and alert on changes.
- AI agent simulationIncludedWe can simulate AI agents against your live endpoints.
- Gap detection (signing keys, payment handlers, policies)IncludedWe inspect your full profile and storefront.
- Gap remediationIncludedYou control the server, so fixes are yours to deploy.
- Managed UCP hostingIncludedOptional - you can delegate profile hosting to us.
- Agent discovery analyticsWith setupInstall the tracking snippet to capture agent discovery.
- Full agent funnel analyticsWith setupAdd the snippet to your checkout/order endpoints for the full funnel.
- Agent sales analyticsWith setupEmit order events from your backend via the snippet.
WooCommerce does not serve a UCP profile out of the box, so /.well-known/ucp returns a 404 and AI agents cannot discover your store. The fastest fix is the free UCPtools plugin: it serves the profile from your own origin in about two minutes, with no DNS changes, and shows you which AI agents actually read it. If you also want agents to complete a purchase end to end, you need a checkout implementation on top - the open-source Shopify UCP Proxy is the fullest option. Validate your result for free.
Last updated: April 2026 - covers UCP spec v2026-04-08
What is UCP?
UCP (Universal Commerce Protocol) is the open standard created by Google and Shopify that lets AI shopping agents discover, browse, and buy from your store. It works by serving a JSON manifest at /.well-known/ucp on your domain, telling agents what your store sells, how to search products, and how to complete checkout.
When a shopper asks Google AI Mode "find me a blue wool sweater under $50," the Gemini agent reads your UCP profile to understand your catalog, browses your products via API, and can complete the purchase β all without the customer visiting your website directly. Learn more about how UCP works.
Why Add UCP to WooCommerce?
WooCommerce powers over 5 million online stores, but unlike Shopify (which added native UCP support), WooCommerce stores need manual setup to become AI-ready. Here is why it is worth the effort:
- AI agents convert at 5-10x higher rates: Agent-referred sessions convert at 15-30% vs. 2-3% for traditional search traffic (Presta, 2026). Google AI Mode and Gemini route buying-intent queries directly to UCP-enabled stores. Stores without UCP are invisible to these agents. (Note: ChatGPT Shopping uses ACP, a separate protocol.)
- WordPress flexibility: Full control over implementation via themes, plugins, or custom code - no platform lock-in
- REST API ready: WooCommerce's REST API maps naturally to UCP's endpoint requirements for product search, cart, and checkout
- Schema.org head start: If you use Yoast or Rank Math, your products likely already have the structured data that UCP builds on
- Plugin ecosystem: UCP can be added without writing code - the free UCPtools plugin for discovery, and several third-party plugins for a full agent checkout
- Both UCP and ACP coverage: WooCommerce can serve both UCP (Google/Shopify agents) and ACP (ChatGPT Shopping via Stripe) from the same store
UCP is not just a static JSON file β it requires functional REST API endpoints that AI agents can interact with. For WooCommerce, this means installing a plugin that implements UCP-compatible endpoints, or building custom API integration.
Our WooCommerce plugin serves your UCP profile at /.well-known/ucp from your own origin β no DNS changes, no proxy, no server work. Right now that path almost certainly returns a 404, which means AI agents cannot find your store at all. It also shows you which AI agents actually read your profile, so you can tell whether any of this is working instead of guessing.
It is free and needs no account, and it makes no network calls until you connect one. We are never in the agent's request path β your server answers the agent, so we cannot become a point of failure for your storefront.
Download the plugin (ZIP) β WordPress Admin β Plugins β Add New β Upload Plugin.
What it does not do: it makes you discoverable, it does not implement an agent-driven checkout. If you want agents to complete a purchase end to end, you still need a checkout implementation β see the methods below.
Implementation Methods
Choose the method that best fits your needs:
| Method | Difficulty | Best For |
|---|---|---|
| UCPtools plugin | Easy | Being found by AI agents, and seeing which ones read you (start here) |
| UCP Proxy (Shopify) | Medium | Open-source, full agent checkout, if you can run a proxy |
| Third-party checkout plugins | Easy | Full checkout lifecycle without running a server |
| Manual (functions.php) | Advanced | Developers building custom UCP API endpoints |
| Custom Plugin | Expert | Enterprise with full UCP API implementation |
If you're not a developer, the plugin method is your best option. For full AI agent checkout capabilities, consider the UCP Proxy method.
Method 1: UCP Proxy by Shopify (Recommended)
UCP Proxy is an open-source proxy by Shopify that enables full UCP checkout capabilities for WooCommerce stores. Your store remains the system-of-truth; the proxy translates UCP requests to WooCommerce API calls.
- Full checkout flow support (not just discovery)
- Google Pay integration via Stripe
- 3D Secure handling for secure payments
- Stateless architecture β scales to zero
- Official Shopify open-source project
- WooCommerce 6.9+ (for Store API support)
- WooCommerce REST API keys (Read/Write)
- Optional: Stripe plugin for Google Pay
- Go 1.21+ (for running the proxy)
# Clone the repository git clone https://github.com/Shopify/ucp-proxy cd ucp-proxy # Create config file cp config.example.json config.local.json
Edit config.local.json:
{
"port": "8080",
"adapter_type": "woocommerce",
"merchant_id": "my-store",
"merchant": {
"store_url": "https://yourstore.com",
"api_key": "ck_your_consumer_key",
"api_secret": "cs_your_consumer_secret",
"policy_links": {
"privacy_policy": "https://yourstore.com/privacy",
"terms_of_service": "https://yourstore.com/terms"
}
}
}# Start the proxy CONFIG_FILE=config.local.json go run ./cmd/proxy # Test discovery endpoint curl http://localhost:8080/.well-known/ucp
Deploy to GCP Cloud Run, AWS, or any container hosting:
# GCP Cloud Run example gcloud run deploy ucp-proxy \ --source . \ --region us-central1 \ --allow-unauthenticated
See the WooCommerce setup guide for payment configuration, 3DS handling, and production deployment.
Method 2: Using a WooCommerce UCP Plugin
Plugins add UCP support without requiring server infrastructure. For discovery - being found by AI agents at all - use the free UCPtools plugin. For a full agent-driven checkout, several third-party plugins implement the complete lifecycle; the steps below apply to most of them.
Not every WooCommerce UCP plugin is production-ready, and some are experimental proofs of concept. Whichever you install, verify the result rather than trusting the listing: check that /.well-known/ucp actually returns valid JSON, and validate it for free.
- Go to Plugins β Add New in your WordPress admin
- Search for a WooCommerce UCP plugin, or upload the UCPtools plugin ZIP via Upload Plugin
- Click Install Now, then Activate
Be clear about what you need. Discovery (agents can find and read your store) is what the free UCPtools plugin does, and it is the prerequisite for everything else - without it agents get a 404. Agent checkout (agents can complete a purchase) is a separate, larger job; several third-party WooCommerce plugins implement it, with varying maturity.
- Go to WooCommerce β Settings β UCP
- Enter your store details (most will be auto-filled from WooCommerce)
- Review capabilities to expose (browse, search, checkout)
- Click Save Changes
Visit https://yourstore.com/.well-known/ucp to see your generated UCP profile.
Validate Your WooCommerce Store
After installing the plugin, validate your UCP implementation.
Run Validation βMethod 3: Manual Implementation (Developers Only)
For full control, implement UCP manually using WordPress functions. This method is for developers who need custom UCP implementations.
This method only creates a basic UCP discovery profile. For full AI agent checkout capabilities, you must also implement UCP-compatible REST API endpoints that handle product queries, cart operations, and checkout flows. The code below is a starting point, not a complete UCP implementation.
Generate Your UCP Profile
Create a customized UCP profile for your WooCommerce store.
Open Generator βAdd this code to your theme's functions.php or a custom plugin:
// Add rewrite rule for /.well-known/ucp
function ucp_add_rewrite_rules() {
add_rewrite_rule(
'^\.well-known/ucp/?$',
'index.php?ucp_profile=1',
'top'
);
}
add_action('init', 'ucp_add_rewrite_rules');
// Register query var
function ucp_query_vars($vars) {
$vars[] = 'ucp_profile';
return $vars;
}
add_filter('query_vars', 'ucp_query_vars');// Handle UCP profile request
function ucp_template_redirect() {
if (get_query_var('ucp_profile')) {
header('Content-Type: application/json');
header('Access-Control-Allow-Origin: *');
$profile = [
'ucp' => [
'version' => '2026-01-11',
'services' => [
'shopping' => [
'version' => '2026-01-11',
'spec' => 'https://ucp.dev/specification/',
'rest' => [
'endpoint' => home_url('/wp-json/wc/v3'),
'schema' => home_url('/wp-json/wc/v3/openapi.json'),
],
],
],
'capabilities' => [
[
'name' => 'dev.ucp.shopping.catalog.search',
'version' => '2026-01-11',
'spec' => 'https://ucp.dev/draft/specification/catalog/',
'schema' => 'https://ucp.dev/schemas/shopping/catalog_search.json',
],
[
'name' => 'dev.ucp.common.identity_linking',
'version' => '2026-01-11',
'spec' => 'https://ucp.dev/latest/specification/identity-linking/',
'schema' => 'https://ucp.dev/schemas/common/identity_linking.json',
],
],
],
'signing_keys' => [
// Generate keys with: openssl ecparam -genkey -name prime256v1
// Then export the public JWK. See ucptools.dev for key generation tool.
],
'payment' => [
'handlers' => [
[
'id' => 'stripe',
'name' => 'Stripe',
'version' => '2026-01-11',
'spec' => 'https://ucp.dev/handlers/stripe/',
],
],
],
];
echo json_encode($profile, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
exit;
}
}
add_action('template_redirect', 'ucp_template_redirect');After adding the code, flush rewrite rules:
- Go to Settings β Permalinks
- Click Save Changes (no changes needed, just save)
Always flush rewrite rules after adding new rewrite rules. Failing to do so will result in 404 errors.
Schema.org Markup
For maximum AI compatibility, ensure your products have proper Schema.org markup. Many WooCommerce themes include this by default.
Recommended Plugins
- Yoast SEO: Includes WooCommerce schema support
- Rank Math: Advanced schema options for products
- Schema Pro: Dedicated schema plugin
Verify your schema with:
Validate Your Implementation
A WooCommerce UCP profile that looks correct can still fail for AI agents. There are four validation levels - most free validators only check Level 1 (JSON structure). Levels 2-4 catch the issues that actually block agent checkout:
| Level | What It Checks | Common WooCommerce Failure |
|---|---|---|
| Level 1 | JSON structure, required fields | Missing ucp.version field |
| Level 2 | UCP spec compliance rules | Trailing slash on WooCommerce REST endpoint |
| Level 3 | Network reachability, live endpoint checks | CORS misconfiguration blocking agent requests |
| Level 4 | AI agent simulation (full checkout flow) | Cart endpoint returns 500 when agent creates session |
Validate Your WooCommerce Store (All 4 Levels)
Enter your store URL to check JSON structure, UCP compliance, network reachability, and agent simulation in one run.
Run Free Validation βCommon WooCommerce UCP Issues and Solutions
| Issue | Solution |
|---|---|
404 on /.well-known/ucp | Flush permalinks: Settings β Permalinks β Save. If using Nginx, add a location block for /.well-known/. |
| CORS errors from AI agents | Add Access-Control-Allow-Origin: * header. Some security plugins (Wordfence, iThemes) block cross-origin requests - whitelist the UCP endpoint. |
| Wrong content type | Ensure Content-Type: application/json header. Some themes output HTML wrappers around JSON responses. |
| Caching returns stale profile | Exclude /.well-known/ucp from WP Super Cache, W3 Total Cache, LiteSpeed Cache, and Cloudflare page rules. |
| REST API disabled or blocked | Some security plugins disable the WP REST API. Ensure /wp-json/wc/v3 is accessible. Test with curl https://yourstore.com/wp-json/wc/v3/products. |
Missing ucp.version field | UCP requires a version field inside the ucp root object in YYYY-MM-DD format (e.g., "2026-01-11"). Ensure your plugin or manual implementation includes it. |
| HTTP endpoints (not HTTPS) | UCP requires all endpoints to use HTTPS. Install an SSL certificate and force HTTPS redirects in WordPress Settings β General. |
| Trailing slashes on endpoint URLs | UCP spec requires no trailing slash on endpoint URLs. Check your service_bindings base URL. |
Still Seeing Errors?
Run the free UCPtools validator to get specific error codes with fix suggestions for your WooCommerce store.
Validate Your Store βAfter Setup: What to Expect
Once your WooCommerce UCP profile is live and validated:
- AI agent discovery (1-7 days): Google and other crawlers will discover your
/.well-known/ucpendpoint. You can speed this up by submitting your URL in Google Search Console. - Agent interactions begin: You will start seeing AI agent traffic in your server logs. Look for user agents containing "GPTBot", "Google-Extended", "Amazonbot", or "PerplexityBot".
- Monitor with analytics: Track AI agent visits with UCPtools AI Agent Analytics to see which agents discover your products and how they interact with your store.
- Keep your profile current: Update your UCP profile when you change store policies, add capabilities, or update product categories. Stale profiles reduce AI agent trust.
Monitor AI Agent Traffic on Your Store
See which AI agents discover your WooCommerce store and track their purchase attempts in real time.
Start Free Trial βTest with AI Agents
Before waiting for real agent traffic, simulate how a Google AI Mode or Copilot shopping agent will interact with your WooCommerce store. The simulator runs the full UCP discovery flow: reads your /.well-known/ucp profile, negotiates capabilities, creates a test cart, and attempts a checkout session. It catches backend issues that structural validators miss - for example, a profile that passes all four validation levels but whose cart endpoint returns a 500 error when the agent actually calls it.
Run AI Agent Simulation
Test the full discovery and checkout flow for your WooCommerce store before real agents find it.
Open Simulator βFrequently Asked Questions
Does WooCommerce support UCP natively?
No. Unlike Shopify, WooCommerce does not serve a UCP profile out of the box, so /.well-known/ucp returns a 404 and AI shopping agents cannot discover your store. The free UCPtools plugin adds it: it serves the profile from your own origin and shows you which AI agents actually read it. For an agent-driven checkout you additionally need a checkout implementation, such as the open-source UCP Proxy.
What is the easiest way to add UCP to WooCommerce?
Install the free UCPtools plugin: it generates a UCP profile from your WooCommerce store and serves it at /.well-known/ucp, which is what makes your store discoverable to AI agents. It takes about two minutes, needs no DNS changes or server work, and reports which AI agents read your profile. Serving the profile makes you discoverable; completing an agent-driven purchase additionally requires a checkout implementation.
Will UCP work with my existing WooCommerce plugins?
UCP relies on the WooCommerce REST API. Plugins that modify product data, pricing, or tax calculations must be compatible with the REST API to be accessible via UCP. Most popular plugins (Yoast, Rank Math, WooCommerce Subscriptions) are compatible.
What is the difference between UCP and ACP for WooCommerce?
UCP (Universal Commerce Protocol) is used by Google AI Mode and Shopify-powered agents. ACP (Agentic Commerce Protocol) is used by ChatGPT Shopping via OpenAI and Stripe. For full AI readiness, your WooCommerce store should support both. UCPtools checks both protocols.
How do I test if my WooCommerce UCP setup is working?
Visit yourstore.com/.well-known/ucp to check the raw profile. Then use the free UCPtools validator at ucptools.dev to run 4-level validation: structural checks, UCP compliance rules (v2026-04-08), network verification, and AI agent simulation.
Does UCP affect my WooCommerce store performance?
No. UCP is a lightweight JSON manifest served at a single endpoint. It does not add JavaScript, CSS, or database queries to your storefront. AI agent API calls go through the WooCommerce REST API, which is already optimized for external access.
What are the most common WooCommerce UCP validation errors?
The three errors we see most often in WooCommerce UCP profiles: (1) Missing signing_keys - the profile has no JWK signing key, so AI agents cannot verify webhook authenticity. (2) HTTP endpoints - one non-HTTPS URL in the services block fails the entire profile. (3) Trailing slash on the REST endpoint URL - the UCP spec forbids trailing slashes but WooCommerce permalink settings often add one automatically. Run the free validator at ucptools.dev to check all four levels.
How long does it take for AI agents to discover my WooCommerce store after UCP setup?
Discovery typically takes 1-7 days once your /.well-known/ucp endpoint is live and returning valid JSON. Speed it up by submitting your domain URL in Google Search Console under URL Inspection. Microsoft Copilot discovery is faster - Bing crawls /.well-known/ paths more aggressively. You can confirm discovery by checking server logs for user agents containing "GPTBot", "Google-Extended", or "Bingbot".
