ProductGraph Adapter self-updates
WordPress plugin that connects WooCommerce stores to AI commerce agents (Google UCP + OpenAI ACP)
by ProductGraph · github.com/baerishapira/woocommerce-ai-commerce · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/baerishapira/woocommerce-ai-commerce/archive/refs/heads/main.zipShips its own WordPress updater (Plugin Update Checker), so new versions show up under Dashboard → Updates.
ProductGraph Adapter for WooCommerce
Connect your WooCommerce store to AI shopping agents. This plugin enables AI agents like Google Shopping and ChatGPT to discover, browse, and purchase products from your store using industry-standard commerce protocols.
Why This Plugin?
AI agents are becoming a major shopping channel. Google, OpenAI, and other companies are building AI-powered shopping experiences that can browse products and complete purchases on behalf of users. To participate, your store needs to speak their protocols:
- Google's UCP (Universal Commerce Protocol) — backed by Google, Shopify, Walmart, Target, Stripe, Visa, Mastercard
- OpenAI's ACP (Agentic Commerce Protocol) — powers ChatGPT's instant checkout via Stripe
ProductGraph Adapter adds both protocols to any WooCommerce store with zero code changes.
How It Works
┌─────────────────────────────────────────┐
│ AI Agent (Google, ChatGPT) │
└──────────────────┬──────────────────────┘
│
┌───────────┴───────────┐
│ │
UCP Protocol ACP Protocol
│ │
┌──────▼────────┐ ┌────────▼───────┐
│ Discovery │ │ Product Feed │
│ Manifest │ │ for ChatGPT │
│ + Checkout │ │ + Checkout │
└──────┬────────┘ └────────┬───────┘
│ │
└───────────┬───────────┘
│
┌───────────▼───────────┐
│ ProductGraph │
│ Adapter Plugin │
└───────────┬───────────┘
│
┌───────────▼───────────┐
│ WooCommerce Store │
│ (Products, Orders, │
│ Payments) │
└───────────────────────┘
- Discovery — AI agents find your store via UCP manifest (
/.well-known/ucp) or ACP product feed - Session Creation — Agent creates a checkout session with selected products
- Checkout — Agent provides shipping info, selects fulfillment, and submits payment
- Order — A standard WooCommerce order is created and processed
Supported Protocols
UCP (Universal Commerce Protocol)
- Developed by Google with Shopify, Etsy, Wayfair, Target, Walmart
- Supported by Stripe, Visa, Mastercard, Adyen, American Express
- Discovery:
/.well-known/ucp - Checkout:
/wp-json/productgraph/v1/checkout-sessions
ACP (Agentic Commerce Protocol)
- Developed by OpenAI with Stripe
- Used by ChatGPT for instant checkout
- Discovery:
/wp-json/productgraph/v1/feed - Checkout:
/wp-json/productgraph/v1/checkout_sessions
Requirements
- WordPress 6.7+
- WooCommerce 9.0+
- PHP 8.0+
- HTTPS enabled
- Permalinks configured (not "Plain")
Installation
From ZIP
- Download the latest release from Releases
- In WordPress admin, go to Plugins > Add New > Upload Plugin
- Upload the ZIP file and activate
Manual
- Clone this repo into
/wp-content/plugins/ - Run
composer installin the plugin directory - Activate through WordPress admin
After Installation
- Go to WooCommerce > ProductGraph
- Enable UCP and/or ACP protocols
- Register your store with Google Merchant Center and/or OpenAI Commerce Program
Configuration
Enable/Disable Protocols
You can independently enable or disable each protocol:
- UCP Protocol: For Google, Shopify, and other UCP-compatible agents
- ACP Protocol: For OpenAI/ChatGPT and ACP-compatible agents
Store Settings
- Store Name: How your store appears to AI agents
- Payment Handlers: Automatically detected from WooCommerce payment gateways
API Endpoints
UCP Endpoints
| Endpoint | Method | Description |
|---|---|---|
/.well-known/ucp |
GET | Discovery manifest |
/wp-json/productgraph/v1/checkout-sessions |
POST | Create session |
/wp-json/productgraph/v1/checkout-sessions/{id} |
GET | Get session |
/wp-json/productgraph/v1/checkout-sessions/{id} |
PUT | Update/complete session |
ACP Endpoints
| Endpoint | Method | Description |
|---|---|---|
/wp-json/productgraph/v1/feed |
GET | Product feed |
/wp-json/productgraph/v1/checkout_sessions |
POST | Create session |
/wp-json/productgraph/v1/checkout_sessions/{id} |
POST | Update session |
/wp-json/productgraph/v1/checkout_sessions/{id}/complete |
POST | Complete checkout |
/wp-json/productgraph/v1/checkout_sessions/{id}/cancel |
POST | Cancel session |
Payment Gateways
The plugin automatically detects and supports these WooCommerce payment gateways:
- Stripe (card, Google Pay, Apple Pay)
- PayPal
- Square
Session Lifecycle
Sessions expire after 30 minutes of inactivity. Expired sessions are automatically cleaned up.
UCP States
incomplete → ready_for_complete → complete
ACP States
not_ready_for_payment → ready_for_payment → completed
Security
- CSRF protection via WordPress nonces
- SQL injection prevention with
$wpdb->prepare() - Input sanitization and output escaping
- HTTPS required for all agent communication
- 30-minute session TTL with automatic cleanup
Documentation
Contributing
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch (
git checkout -b feature/my-feature) - Commit your changes (
git commit -m 'Add my feature') - Push to the branch (
git push origin feature/my-feature) - Open a Pull Request
License
GPL v2 or later. See LICENSE for details.
Support
For support, please visit productgraph.io or open an issue.