A customer in Noida opens Gemini and types: "Eggless Mickey Mouse cake, 2 kg, delivered tomorrow." The AI doesn't send them to ten blue links. It looks for shops it can actually talk to, searches their cakes, shows real photos and prices, and builds a cart.
Table of Contents
That is what the Universal Commerce Protocol (UCP) is for. On 24 November 2026 I added it to two live WooCommerce bakeries in Delhi NCR, YummyCake and MrCake, and built a ChatGPT product feed for both at the same time.
This post is a practical UCP for WooCommerce guide based on that work: what UCP is, how it differs from OpenAI's ACP and product feeds, what WooCommerce offers today, why I wrote my own code instead of installing a plugin, and the exact checks I ran before calling it done. If you run a WooCommerce store, you can follow the same steps.
What is UCP, in plain English
The Universal Commerce Protocol is an open standard that lets AI assistants and shopping agents shop on a store the way a person would: find products, check prices and options, build a cart and, if the store allows it, check out. Google announced it in January 2026 together with Shopify and other retail and payment partners. The spec is open source (Apache 2.0) and lives at ucp.dev.
Four ideas are worth knowing:
- Discovery. A store publishes a JSON "business profile" at
/.well-known/ucp. An agent reads it to learn what the store supports and where its API lives. No sign-up is needed. The spec calls this onboarding "permissionless". - Capabilities. The store lists what it can do, for example
dev.ucp.shopping.catalog.search,dev.ucp.shopping.catalog.lookup,dev.ucp.shopping.cart,dev.ucp.shopping.checkoutanddev.ucp.shopping.order. Extensions add things like discounts, fulfilment and loyalty. - Versions are dates. Each release is a date such as
2026-04-08or2026-08-25. The agent and the store must agree on an exact version. - Transports. The same capabilities can be offered over REST, MCP (for AI agents), A2A or an embedded checkout. I used REST, which is the simplest fit for WordPress.
Payments are handled by "payment handlers" (Google Pay, Shop Pay and similar) and, for fully autonomous purchases, Google's AP2 mandates. You don't need any of that to start. A store can offer catalogue and cart only and let the customer pay on its own checkout, which is exactly what I did.
UCP vs ACP vs product feeds
People mix these up, so here is the short version:
| UCP (Google and partners) | ACP (OpenAI and Stripe) | ChatGPT product feed | |
|---|---|---|---|
| What it is | A live API that agents call | A protocol for checkout inside ChatGPT | A file listing your products |
| Who reads it | Any agent (Gemini, AI Mode, other assistants) | ChatGPT | ChatGPT Shopping |
| Live prices and carts | Yes | Yes (checkout) | No, refreshed on a schedule |
| Needs approval | No, for discovery | Yes, and Stripe for payments | Yes, via the merchant programme |
| Effort for WooCommerce | Medium | High | Low |
OpenAI launched Instant Checkout on ACP in September 2025, then said in March 2026 that it would let merchants use their own checkouts and focus on product discovery. In practice, for a small Indian store, the useful OpenAI piece today is the product feed. That is why I built both: UCP for agents that can call an API, and a feed for ChatGPT Shopping.
Does WooCommerce support UCP?
Partly, and it is moving fast:
- WooCommerce core has no UCP endpoints.
- The WooCommerce AI extension (from version 0.8.0) documents a UCP REST API on version
2026-04-08, under/wp-json/wc/ucp/v1. It covers catalogue, carts and checkout sessions. By default it runs through a WordPress.com proxy, so your store needs a WordPress.com connection and has to be eligible for the shopping integration you want. See the official WooCommerce AI UCP docs for the details. - WordPress.org plugins. A handful of small "UCP for WooCommerce" plugins exist, most with very few installs and no reviews.
If your store already uses Stripe, is happy to connect to WordPress.com, and sells simple products, try the official extension first. Neither of my bakeries fit that, for the reasons below.
Why I didn't install a UCP plugin
Before writing any code, I downloaded and read the plugins I could find. Always read the code of a plugin that opens new API endpoints on a shop. In one popular-looking plugin I found three serious problems:
- With its API key left empty (the settings page actually suggests this for "public access"), anyone could request an order by ID and get the customer's shipping address. Order IDs are sequential, so you could walk through every order.
- Any coupon code sent to its checkout endpoint was created as a real 10% coupon, which then worked on the normal checkout too.
- Every checkout-session call created a real WooCommerce order, so a bot could fill the shop with fake pending orders.
Another plugin only took payments through Stripe, which neither bakery uses (they use CCAvenue for UPI, cards and netbanking, plus cash on delivery).
The cake business has its own rules too:
- The customer must pick a delivery date and time slot on the product page. The order flow depends on it.
- Delivery is Delhi NCR only, so an agent shouldn't promise delivery to Mumbai.
- There are adult and bachelor-party cakes that must not show up when someone asks for a child's birthday cake.
So I wrote a small, read-only UCP layer myself. It is about 600 lines of PHP per site, sitting in the theme (both sites use hand-built themes, which I prefer for exactly this kind of control; more on that in why hand-coded WordPress still wins).
What I built: a UCP WooCommerce setup on YummyCake and MrCake
Both sites got the same pieces:
| Piece | Address | What it does |
|---|---|---|
| Business profile | /.well-known/ucp | Tells agents the UCP version, the API address and the capabilities |
| Agent instructions | /agents.md | Plain-language rules: delivery area, delivery slots, eggless, how to shop |
| robots.txt pointer | /robots.txt | Its first two lines point to agents.md and /.well-known/ucp |
| Catalogue search | POST /wp-json/ucp/v1/catalog/search | Keyword search with paging |
| Lookup and product | POST /catalog/lookup, /catalog/product | Products by ID, and one product narrowed to a variant |
| Carts | POST /carts, GET|PUT /carts/{id}, POST /carts/{id}/cancel | Build a cart and return a Continue link |
| ChatGPT feed | /wp-content/uploads/ai-feeds/chatgpt-products.jsonl | All cakes in OpenAI's feed format, rebuilt nightly |
You can open the live files yourself: YummyCake's UCP profile, MrCake's UCP profile and YummyCake's agents.md.
Note the namespace: I used /wp-json/ucp/v1, while the official WooCommerce AI extension uses /wp-json/wc/ucp/v1. The API routes won't clash, but only one thing can own /.well-known/ucp. If I switch to the official extension later, I'll remove my block first.
The /.well-known/ucp file (with a real example)
This is YummyCake's live profile, trimmed for space:
{
"ucp": {
"version": "2026-08-25",
"services": {
"dev.ucp.shopping": [{
"version": "2026-08-25",
"transport": "rest",
"endpoint": "https://www.yummycake.co.in/wp-json/ucp/v1",
"schema": "https://ucp.dev/2026-08-25/services/shopping/rest.openapi.json"
}]
},
"capabilities": {
"dev.ucp.shopping.catalog.search": [{ "version": "2026-08-25" }],
"dev.ucp.shopping.catalog.lookup": [{ "version": "2026-08-25" }],
"dev.ucp.shopping.cart": [{ "version": "2026-08-25" }]
},
"payment_handlers": {}
}
}Two things to notice:
- No checkout capability and no payment handlers. That is deliberate. It tells agents honestly that they can browse and build a cart, but payment happens on the website. Don't advertise a capability you don't really support.
- It is served from PHP, not a static file. On WordPress the simplest way is to check the request path early (on
init) and print the JSON:
add_action( 'init', function () {
$path = wp_parse_url( $_SERVER['REQUEST_URI'] ?? '', PHP_URL_PATH );
if ( '/.well-known/ucp' !== rtrim( (string) $path, '/' ) ) {
return;
}
header( 'Content-Type: application/json; charset=utf-8' );
header( 'Access-Control-Allow-Origin: *' ); // agents call from other origins
header( 'Cache-Control: public, max-age=3600' );
echo wp_json_encode( my_ucp_profile(), JSON_UNESCAPED_SLASHES );
exit;
} );The API routes themselves are normal register_rest_route() calls under the ucp/v1 namespace, built on WooCommerce's own product functions, so prices, stock and variations always match the shop.
Caching gotcha: both sites are on Hostinger with LiteSpeed and Hostinger's CDN. The profile was cached at the CDN edge for an hour. That is fine once it's live, but while you are testing, every change needs a purge, or you'll keep seeing the old file. I covered which WooCommerce pages should never be cached in WooCommerce caching: pages to exclude.
What the customer actually sees
- They ask their AI assistant for a cake, for example "eggless Mickey Mouse cake, 2 kg, Noida, tomorrow".
- The agent finds the shop's profile and searches it. On the day I tested, "mickey mouse" returned 12 cakes on YummyCake and 7 on MrCake, with photos, weights, flavours and prices in INR.
- The agent builds a cart and gets back a Continue link (
continue_url) plus a note explaining the next steps. - The link opens the cake's product page with the city, delivery option and weight already selected.
- The customer picks the flavour, delivery date, time slot and free message, then pays on the normal checkout by UPI, card, netbanking or cash on delivery.
This "hand-off" design is allowed by the spec: continue_url is how a store sends the buyer to its own site when the agent can't finish on its own. For a bakery it is actually better, because the delivery slot has to be chosen by the person who'll be home to receive the cake.
The safety rules
Anything you open to bots will be hit by bots. These are the rules I built in:
- Read-only. No orders, payments, coupons, customer data or order data are ever created or returned.
- No personal data in carts. A cart is a 24-hour record of items and quantities only: no name, phone or address. A cart holds at most 10 lines and 5 of each cake.
- Rate limits. 60 catalogue calls a minute and 30 new carts an hour per IP address.
- Adult cakes hidden unless the search explicitly asks for them.
- Delivery-area warning. If a PIN code outside Delhi NCR is sent (anything not starting with 110, 121, 122 or 201), the response carries a clear warning so the agent doesn't promise delivery.
- Clear errors. If an agent picks a cake without choosing a size, it gets a "recoverable" error telling it to pick a variant, instead of a broken cart.
- Easy to switch off. I took a backup of each theme file before adding the block. Restoring the backup removes everything.
If you want a broader security baseline for a shop, see what to do in the first hour after a WordPress hack.
How I tested it, and what I fixed
I tested from outside, the way an agent would, with plain curl:
# 1. Discovery
curl https://www.yummycake.co.in/.well-known/ucp
# 2. Search
curl -X POST https://www.yummycake.co.in/wp-json/ucp/v1/catalog/search \
-H "Content-Type: application/json" \
-d '{"query":"unicorn"}'
# 3. Build a cart with one variant
curl -X POST https://www.yummycake.co.in/wp-json/ucp/v1/carts \
-H "Content-Type: application/json" \
-d '{"line_items":[{"item":{"id":"var_30979"},"quantity":1}]}'What I checked:
- Search quality: "unicorn" returned 20 real unicorn cakes, and a nonsense word returned 0. Paging with the cursor worked.
- Lookup: unknown IDs come back with a "not found" warning, not a crash.
- Prices: a 1.5 kg Fancy Chocolate Cake came back at ₹1,999, and two of them at ₹3,998. UCP sends money in the smallest unit (paise), so 199900 means ₹1,999.
- Cart lifecycle: create, read, change quantity and cancel all worked. A cancelled cart returns "not found".
- Hand-off: the Continue link opened the right product page with the options pre-selected.
- Policies: the privacy and terms links in every cart response load.
The tests also caught three small data problems, which I fixed the same day:
- HTML entities in descriptions. Agents were getting "Name & message" instead of "Name & message". Stripping tags isn't enough; you also need
html_entity_decode(). - SEO text in product names. Four products had "| Yummycake" at the end of the actual product name, left over from old SEO work. On a web page you barely notice it; in an AI answer it looks sloppy. Keep brand suffixes in your SEO title, not in the product name.
- Incomplete instructions. The note sent with each cart said the buyer chooses the date and time, but not the flavour and area. Agents repeat what you tell them, so tell them everything.
The lesson: an AI agent reads your product data literally. Messy names, entities and half-written descriptions that people skim past will be repeated word for word. I wrote more about this in how AI search reads your website.
The ChatGPT product feed
UCP covers agents that call an API. ChatGPT Shopping works differently: you apply as a merchant at chatgpt.com/merchants, and once approved you give OpenAI a product feed that follows their feed spec. I built one for each bakery in JSONL (one product per line):
| YummyCake | MrCake | |
|---|---|---|
| Cakes in the feed | 1,476 | 579 |
| Rows (one per cake weight) | 3,947 | 1,538 |
| Rebuilt | Every night, about 03:00 IST (WP-Cron) | Same |
Here is one real row, shortened:
{
"item_id": "5171",
"group_id": "p114",
"listing_has_variations": true,
"title": "Chota Bheem Photo Cake – 2kg",
"url": "https://www.yummycake.co.in/product/chota-bheem-photo-cake/?attribute_pa_delivery-time=standard-delivery&attribute_pa_weight=2kg",
"brand": "YummyCake",
"price": "2099.00 INR",
"shipping_price": "0.00 INR",
"availability": "in_stock",
"variant_dict": { "Weight": "2kg" },
"product_category": "Food, Beverages & Tobacco > Food Items > Bakery > Cakes",
"target_countries": ["IN"],
"store_country": "IN",
"review_count": 2,
"star_rating": "5.00",
"seller_privacy_policy": "https://www.yummycake.co.in/privacy-policy/",
"seller_tos": "https://www.yummycake.co.in/terms/",
"return_policy": "https://www.yummycake.co.in/return-refund-policy/",
"is_eligible_search": true,
"is_eligible_checkout": false
}The decisions that matter:
- One row per weight, all sharing the cake's
group_id, withvariant_dictnaming the weight. That way ChatGPT can show "2 kg – ₹2,099" instead of a vague price range. - The URL pre-selects the options, so a click lands on the right size with standard delivery chosen.
is_eligible_checkout: false, because orders finish on the bakery's own site.- Real reviews only. Ratings come from actual WooCommerce reviews; products without reviews have no rating fields.
- Left out on purpose: midnight-delivery duplicates, add-ons (candles, flowers, teddies), adult categories, and about 20 designs whose names mention alcohol, tobacco or adult themes. Shopping surfaces are strict about these, and a few names include liquor brands.
- Images: about 30 rows per site still use a WebP main image. OpenAI asks for JPEG or PNG, so those few may be skipped until the images are replaced.
Before submitting, I checked every row: all required fields present, no repeated item_id, prices in the right "2099.00 INR" format, and every URL on https.
Tracking AI-driven visits and orders
If you can't measure it, you can't tell whether it was worth it. Two simple things:
- Every hand-off link is tagged
utm_source=ai_agent&utm_medium=ucp. Those visits show up separately in GA4, and WooCommerce's order attribution records the source on any order that follows. - A daily counter stored in a WordPress option counts searches, product views, carts and hand-offs, so I can see whether agents are using the API at all, even before any orders arrive.
To be clear about results: this went live on 24 November 2026, so I don't have AI-driven order numbers to share yet. I'll update this post once there's real data.
A checklist for your own store
- Clean your product data first: names without SEO suffixes, plain-text descriptions, correct prices and stock.
- Decide what an agent may do: browse only, cart, or full checkout. Start with less.
- Try the official WooCommerce AI extension if you use Stripe and can connect to WordPress.com.
- If you use a plugin, read its code before installing. Look for endpoints that return orders, create coupons or create orders.
- Publish
/.well-known/ucplisting only the capabilities you really support. - Add CORS (
Access-Control-Allow-Origin: *) on the profile. - Write an
agents.mdwith your delivery area, delivery rules and how to order. - Point to both from the top of
robots.txt, and make sure AI crawlers aren't blocked. - Hide products that shouldn't appear in general searches.
- Keep personal data out of carts, and rate-limit every endpoint.
- Make
continue_urlland on a page with the options already chosen. - Tag hand-off links with UTM parameters.
- Test with curl: discovery, search, a nonsense search, lookup, cart create, update, cancel and bad input.
- Purge every cache layer after changes.
- Build a product feed and apply at chatgpt.com/merchants.
Frequently asked questions
What does UCP stand for in ecommerce?
Universal Commerce Protocol, an open standard that lets AI agents discover a store, search its products, build carts and, optionally, check out.
Is there a WooCommerce UCP plugin?
Yes. The official WooCommerce AI extension includes a UCP REST API, and there are a few small third-party plugins on WordPress.org. Check the official one first, and read the code of any third-party plugin before installing it on a live shop.
What should a /.well-known/ucp file contain?
A ucp object with the version, the dev.ucp.shopping service and its endpoint, the capabilities you support, and your payment handlers (empty if payment happens on your site). See the real example above.
UCP vs ACP: which one do I need?
For most small stores: a UCP profile for agents that can call an API, plus a ChatGPT product feed. Full ACP checkout inside ChatGPT needs OpenAI approval and Stripe.
Do I need Stripe or Google Pay for UCP?
No. You can offer catalogue and cart only and let customers pay on your own checkout. That's how both bakeries work, with CCAvenue and cash on delivery.
Does agentic commerce work in India yet?
The protocols work anywhere, and prices in INR are fine. What's still limited is in-chat payment for Indian gateways and UPI, which is why a hand-off to your own checkout is the practical choice today.
Related reading
- How AI Search (ChatGPT, Google AI) Reads Your Website, and What to Fix
- Why Hand-Coded WordPress Still Wins Over AI Website Builders in 2026
- WooCommerce vs Shopify for Growing Stores: When WordPress Actually Wins
- Case study: YummyCake
Want your WooCommerce store ready for AI shopping agents?
I can check your product data, set up a safe UCP profile and a ChatGPT product feed, and test the whole flow the way an agent would. Start with the free WordPress audit tool, or tell me about your store. You'll get a short written plan and a fixed price.
Get the free WordPress Security Checklist 2026
25-point checklist PDF - malware detection, hardening guide, login security. Used by 500+ WordPress site owners.
- ✓ 25-point security checklist PDF
- ✓ WordPress malware scan guide
- ✓ Hardening checklist for any WordPress site
No spam. Unsubscribe any time.
You're in!
Check your inbox - the checklist PDF is on its way.
Need help with your WordPress site?
I'm a freelance WordPress developer who fixes exactly this kind of problem.
150+ projects. Clients in UK, US, UAE & Ireland. Fast turnaround.

Rajan Gupta
Freelance WordPress DeveloperI'm Rajan Gupta, a freelance WordPress developer based in India with 150+ projects delivered for agencies and businesses in the UK, US, UAE, and Ireland. I specialise in performance optimisation, Core Web Vitals, custom Sage/ACF builds, and WooCommerce development - every project ships with a 90+ PageSpeed baseline.