Install
openclaw skills install skill-dropshipping-product-launcherCreates WooCommerce draft product listings with images, variants, and margin calculation from CJ Dropshipping products using product ID and sell price.
openclaw skills install skill-dropshipping-product-launcherOne command: CJ Dropshipping product → WooCommerce draft listing.
Fetches product data from CJ, downloads images, uploads to WordPress media library, calculates margin, and creates a WooCommerce draft product — with variants if CJ has them.
| Argument | Required | Description |
|---|---|---|
--product / -p | ✅ | CJ Dropshipping product ID (e.g. CJA123456789) |
--price | ✅ | Your sell price in AED |
--category / -c | ❌ | Category name or WooCommerce category ID |
--dry-run | ❌ | Preview without creating anything in WooCommerce |
✅ Product created!
WooCommerce ID : 4821
Margin : 42.3%
Admin URL : https://tech1mart.com/wp-admin/post.php?post=4821&action=edit
Product URL : https://tech1mart.com/?p=4821
Machine-readable JSON block at end of stdout (key: __RESULT__):
{
"wooProductId": 4821,
"margin": "42.3",
"productUrl": "https://tech1mart.com/?p=4821",
"adminUrl": "https://tech1mart.com/wp-admin/post.php?post=4821&action=edit",
"title": "Product Name",
"cjProductId": "CJA123456789",
"sellPriceAED": 149.99,
"cjPriceUSD": 22.5
}
~/cj-api.json — fields: apiKey, accessToken, tokenExpiry~/woo-api.json — fields: url, consumerKey, consumerSecretTokens are refreshed automatically.
/product/query + /product/variant/query)/tmp/product-images/<product_id>//wp-json/wp/v2/media)((sellAED - cjUSD × 3.67) / sellAED × 100) — warns if < 30%/wp-json/wc/v3/products) with:
regular_price (AED)type: variable + variations if CJ has multiple variantsmeta_data: _cj_product_id# Basic launch
node scripts/launch.js --product CJA123456789 --price 149.99
# With category
node scripts/launch.js --product CJA123456789 --price 149.99 --category Electronics
# Dry run (preview only, no WooCommerce writes)
node scripts/launch.js --product CJA123456789 --price 149.99 --dry-run
# Check CJ product data only
node scripts/cj-fetch.js CJA123456789
cd scripts
npm install axios form-data
Or from skill root:
npm install
skill-dropshipping-product-launcher/
├── SKILL.md ← this file
├── package.json
└── scripts/
├── launch.js ← main entry point
├── cj-fetch.js ← CJ API fetcher + token refresh
└── woo-create.js ← WooCommerce uploader + product creator
const cjPriceAED = cjPriceUSD * 3.67;
const margin = ((sellPriceAED - cjPriceAED) / sellPriceAED * 100).toFixed(1);
⚠️ Warning shown if margin < 30%.