← All Articles

UCP Embedded Protocol Transport: In-Context Commerce for AI Agents

Breaking Change UCP Transport ECP

April 4, 2026 · PR #244 · Jing Li

About the Author

Jing Li is a core contributor to the Universal Commerce Protocol, focusing on transport bindings and authentication flows. This PR represents months of work designing how UCP can operate within existing conversational contexts.

What Changed

PR #244 introduces Embedded Commerce Protocol (ECP) — a new transport binding that allows UCP operations to execute within existing channel contexts rather than requiring browser redirects. The change also adds a reauthorization mechanism for managing session continuity.

Previously, UCP transactions required redirecting users to web-based checkout flows. This worked for traditional e-commerce but created friction for conversational commerce scenarios — chatbots, voice assistants, and in-app experiences where context switching degrades user experience.

🔑 Key Capability

AI agents can now complete cart operations, authentication, and checkout entirely within a messaging conversation — no browser redirects required.

Why This Matters

The embedded transport binding addresses a fundamental architectural tension in agentic commerce:

Technical Details

The ECP binding introduces several new concepts:

Transport Envelope

ECP messages wrap UCP operations in a transport-specific envelope that carries channel context, session state, and capability declarations:

{
  "ecp_version": "1.0",
  "transport": "messaging",
  "channel_context": {
    "platform": "whatsapp",
    "conversation_id": "...",
    "user_context_token": "..."
  },
  "ucp_operation": {
    // Standard UCP cart/checkout payload
  }
}

Reauthorization Mechanism

Long-running conversations may outlive initial authentication tokens. The new reauth mechanism allows:

Cart Capability Integration

The cart capability gains new methods specifically designed for embedded contexts:

Migration Impact

This is a breaking change for implementations that assume web-redirect transport. Affected areas:

⚠️ Migration Window

The redirect transport remains supported. ECP is additive — platforms can adopt it incrementally. Businesses should plan for ECP support by Q3 2026 as major messaging platforms integrate.

What's Next

For AI agent developers, this unlocks true conversational commerce — your agent can now handle the entire purchase flow without breaking the conversation context.