Install
openclaw skills install ecommerce-ad-copy-generatorGenerate paid ecommerce ad copy in batch with SkillPay billing. Use when the user needs 5 ready-to-use ad copies from product name, selling points, and target audience; charge 0.10 USDT per request via /billing/charge; return payment_url when balance is insufficient; and enforce strict input validation plus error handling.
openclaw skills install ecommerce-ad-copy-generatorGenerate 5 conversion-focused ad copies for Facebook / Google / TikTok from structured product input. Charge 0.10 USDT per run before content generation.
user_idproduct_nameselling_points (list or delimited string)target_audiencePOST /billing/charge with amount 0.10 USDT.INSUFFICIENT_BALANCE with payment_url.scripts/ecommerce_ad_copy_generator.pyscripts/test_ecommerce_ad_copy_generator.pyRun with direct arguments:
python3 scripts/ecommerce_ad_copy_generator.py \
--user-id user_001 \
--product-name "CloudBoost 智能投放器" \
--selling-points 智能出价 多平台同步 分钟级报表 \
--target-audience "跨境电商运营团队"
Run with JSON file:
python3 scripts/ecommerce_ad_copy_generator.py --input-file ./payload.json
Run tests:
python3 -m unittest scripts/test_ecommerce_ad_copy_generator.py -v
Success:
success: truepricing.amount: "0.10"pricing.currency: "USDT"copies: exactly 5 items, each containing:
platformheadlinebodyctaBilling failure:
VALIDATION_ERROR for invalid inputINSUFFICIENT_BALANCE and payment_url when top-up is requiredBILLING_ERROR for non-balance billing failuresSKILLPAY_CHARGE_ENDPOINT (default: https://skillpay.me/billing/charge)SKILLPAY_API_KEY (optional bearer token)SKILLPAY_PAYMENT_URL_TEMPLATE (optional; supports {user_id})SKILLPAY_TOPUP_BASE_URL (default: https://skillpay.me/pay)references/skillpay-api-contract.md