wpclaw-connector
This skill connects an AI agent to a WooCommerce store and provides check_order, find_product, and store_status tools. It reads WPCLAW_STORE_URL and WPCLAW_STORE_SECRET from the environment and makes HTTP requests to ${WPCLAW_STORE_URL}/wp-json/wpclaw/v1.
WPClaw Connector Skill 🦞
This is an OpenClaw Skill designed to bridge the gap between your AI agents and your WooCommerce store. It works in tandem with the WPClaw Connector WordPress plugin.
🛠 Prerequisites
To use this skill, you must have the WPClaw Connector plugin installed and active on your WordPress site.
- Install the plugin on your WordPress site.
- Go to WPClaw Lite (or WooCommerce > Settings > WPClaw).
- Copy your Store Secret Key.
🚀 Installation (Skill)
- Place the
wpclawfolder in your OpenClaw skills directory. - Open a terminal in the folder and run:
npm install
⚙️ Configuration
Configure your bot environment with the following variables:
| Variable | Description | Example |
|---|---|---|
WPCLAW_STORE_URL | Your website base URL | https://yourstore.com |
WPCLAW_STORE_SECRET | The sk_live_... key from the plugin | sk_live_abc123... |
🧰 Available Tools
Once installed, your agent will have access to:
check_order: Retrieve status, totals, customer info, and line items for any Order ID.find_product: Search for products by name or SKU to check stock and pricing.store_status: Quickly verify if the connection between the bot and the site is healthy.
🔒 Security
Connection is secured via HMAC-SHA256 signature verification. Every request sent by this skill is signed with your Store Secret, ensuring that your data can only be accessed by authorized bots.