Linux 软件免费装
Banner图

UCP Adapter For WooCommerce

开发者 dhirajpatra
更新时间 2026年1月29日 23:09
PHP版本: 8.0 及以上
WordPress版本: 6.9
版权: GPLv2 or later
版权网址: 版权信息

标签

integration commerce api rest ucp

下载

1.0.3 1.0.1 1.0.2

详情介绍:

UCP Adapter For WooCommerce is a powerful WordPress plugin that provides REST API endpoints for Universal Commerce Platform (UCP) integration. It enables seamless communication between your WordPress site and external commerce platforms through secure, standardized API endpoints. Thank you for using our plugin! This add-on connects your WordPress site to the powerful world of WordPress's Agentic Commerce, allowing you to create automated shopping assistants for your users. 🚀 Core Features Our plugin leverages WordPress's MCP (Model Context Protocol) servers plugin and the open Universal Commerce Protocol (UCP) standard to enable secure, intelligent commerce actions. Here’s what you can build: * Smart Product Discovery: Enable agents to search products across WordPress merchants, apply filters, and display interactive product cards directly within a chat interface on your site. * Seamless Checkout: Allow agents to create checkout sessions, collect buyer information, attach payment details, and complete purchases on behalf of users. * Order Tracking: After a purchase, agents can track order status, fulfillment updates, and post-purchase events like refunds or returns. 🔗 How It Works The plugin acts as a Platform within the UCP framework, facilitating secure communication between your users (buyers), WordPress Merchants, and payment or credential providers. It implements these key UCP capabilities: 1. Discovery → Checkout: An agent can help a user find a product and instantly retrieve the necessary details to start a checkout session. 2. Checkout Completion: The agent can securely submit the checkout. If further user action is needed, it can gracefully open a web checkout page. 3. Post-Purchase: The agent provides ongoing value by fetching real-time updates on order delivery and status changes. 💡 Use Case Example Imagine a user in your site's chat asking, "Find me a red coffee mug under $20." The plugin-powered agent can: * Query the WordPress Catalog across multiple stores. * Return filtered, interactive results. * Guide the user through selecting a variant, adding it to cart, and checking out—all without leaving your WordPress environment. * Get this client https://github.com/dhirajpatra/adk-agent-gcp/tree/main/ai-agents-adk/ucp_recommendation_system to connect your site with AI agent. Key Features REST API Endpoints
  1. POST /wp-json/ucp/v1/session - Create a new session
  2. PUT /wp-json/ucp/v1/update/{session_id} - Update session data
  3. POST /wp-json/ucp/v1/complete/{session_id} - Complete a session
  4. GET /wp-json/ucp/v1/status/{session_id} - Check session status
  5. GET /wp-json/ucp/v1/sessions - List all sessions
  6. GET /wp-json/ucp/v1/product/search - Search for products
Use Cases Developer Resources Build custom UCP adapters for platforms like:

安装:

Automatic Installation
  1. Log in to your WordPress admin panel
  2. Navigate to Plugins > Add New
  3. Search for "UCP Adapter For WooCommerce"
  4. Click "Install Now" and then "Activate"
Manual Installation
  1. Download the plugin zip file
  2. Log in to your WordPress admin panel
  3. Navigate to Plugins > Add New > Upload Plugin
  4. Choose the downloaded zip file and click "Install Now"
  5. Activate the plugin through the 'Plugins' menu
Configuration
  1. Navigate to UCP Adapter in the admin menu
  2. Copy your API key from the Settings page
  3. Configure session timeout and rate limiting as needed
  4. Use the API key in your UCP requests

屏幕截图:

  • Active sessions dashboard
  • REST API endpoint documentation
  • Session status monitoring

升级注意事项:

1.0.0 Initial release of UCP Adapter For WooCommerce.

常见问题:

How do I get an API key?

An API key is automatically generated when you activate the plugin. You can find it in the UCP Adapter > Settings page. You can also regenerate it at any time.

How do I authenticate API requests?

Include your API key in the request header: X-UCP-API-Key: your-api-key-here Or as a query parameter: ?api_key=your-api-key-here

What happens to expired sessions?

Expired sessions are automatically cleaned up on an hourly basis. Completed sessions are kept for 7 days before being removed.

Can I customize the session timeout?

Yes, you can configure the session timeout in the Settings page. The default is 3600 seconds (1 hour).

Is this plugin compatible with WooCommerce?

Yes! This plugin is designed to provide the necessary API endpoints for Universal Commerce Platform (UCP) integration with WooCommerce. You can also build additional custom functionality using the provided hooks and filters.

How do I extend the plugin?

The plugin provides numerous hooks and filters:

  • ucp_adapter_init - Runs after plugin initialization
  • ucp_session_created - Fires when a session is created
  • ucp_session_updated - Fires when a session is updated
  • ucp_session_completed - Fires when a session is completed
  • ucp_before_session_complete - Filter data before completion
  • ucp_update_action_{action} - Handle custom update actions

Where can I get support?

For support questions, please use the WordPress.org support forums. For bugs and feature requests, visit our GitHub repository.

更新日志:

1.0.2 1.0.0