Back to Blog

UCP vs. ACP: The Developer's Guide to AI Protocols

A technical deep dive into the difference between the Universal Commerce Protocol (UCP) and the Agentic Commerce Protocol (ACP), and why you need both.

In the rapidly evolving world of Agentic Commerce, two acronyms are starting to dominate the conversation: UCP (Universal Commerce Protocol) and ACP (Agentic Commerce Protocol).

If you're a developer or store owner, you might be asking: Which one do I need?

The short answer: Both.

The long answer lies in understanding what part of the AI buying journey each protocol serves.

The AI Buying Journey

To understand the protocols, we first need to break down how an AI agent (like ChatGPT or Gemini) actually "shops." It happens in two distinct phases:

  1. Discovery (The "Read" Phase): The agent scans the web to find products that match the user's query.
  2. Action (The "Write" Phase): The agent interacts with a store to add items to a cart and initiate checkout.

UCP: The Language of Discovery

UCP is primarily a discovery protocol. It's designed to make your product catalog readable by machines.

  • Role: Passive / Read-Only
  • Method: Standardized JSON Schema endpoints (e.g., wp-json/ucp/v1/products)
  • Key Player: Google (Shopping Graph), Gemini
  • Analogy: It's like SEO tags, but for AI databases instead of search engine crawlers.

Without UCP, an AI agent guesses what your product is based on HTML scraping, which is error-prone and slow. With UCP, you feed the agent structured, perfect data.

Example UCP Payload

{
  "id": "prod_123",
  "name": "Ergonomic Mechanical Keyboard",
  "price": {
    "amount": 149.99,
    "currency": "USD"
  },
  "attributes": {
    "switch_type": "Cherry MX Brown",
    "connection": "Wireless"
  }
}

ACP: The Language of Action

ACP is the transactional layer. It allows an agent to do things on your site.

  • Role: Active / Interactive
  • Method: Authenticated API Tools (e.g., create_cart, add_item)
  • Key Player: OpenAI (ChatGPT Operator)
  • Analogy: It's like an API key that lets a robot use your checkout counter.

ACP is harder to implement because it involves security, session management, and "Shadow Carts" (carts that exist without a human browser session).

Example ACP Tool Definition

{
  "name": "add_to_cart",
  "description": "Adds a specific product variant to the user's active shopping cart.",
  "parameters": {
    "type": "object",
    "properties": {
      "product_id": { "type": "string" },
      "quantity": { "type": "integer" }
    }
  }
}

Why You Need Both

If you only have UCP, agents can find you, but they can't buy from you. They will have to send the user a link to your generic product page, where 90% of users drop off.

If you only have ACP, agents can buy from you, but they'll never find you in the first place because your data isn't structured for their discovery index.

The Full Stack Strategy

The winning strategy for 2024-2025 is to implement a dual-protocol layer:

  1. Public UCP Manifest: For broad discovery across Google and emerging search agents.
  2. Protected ACP Endpoints: For high-intent agents (like ChatGPT Plus users) to execute transactions.

UCP-Connect handles this translation layer for you, exposing your WooCommerce store as a native dual-protocol entity.