返回顶部
e

ecommerce-ad-copy-generator电商广告文案生成

Generate 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.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
361
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

ecommerce-ad-copy-generator

电商广告文案生成器

概述

根据结构化产品输入,为Facebook / Google / TikTok生成5条以转化为目标的广告文案。每次运行在内容生成前收取0.10 USDT费用。

工作流程

  1. 1. 解析并验证输入字段:
- user_id - product_name - selling_points(列表或分隔字符串) - target_audience
  1. 2. 调用SkillPay POST /billing/charge,金额为0.10 USDT。
  2. 如果计费成功,则生成恰好5条适配平台的广告文案。
  3. 如果计费返回余额不足,则返回INSUFFICIENTBALANCE及paymenturl。
  4. 返回结构化JSON输出供下游使用。

运行

  • - 核心脚本:scripts/ecommerceadcopygenerator.py
  • 测试脚本:scripts/testecommerceadcopy_generator.py

使用直接参数运行:

bash
python3 scripts/ecommerceadcopy_generator.py \
--user-id user_001 \
--product-name CloudBoost 智能投放器 \
--selling-points 智能出价 多平台同步 分钟级报表 \
--target-audience 跨境电商运营团队

使用JSON文件运行:

bash
python3 scripts/ecommerceadcopy_generator.py --input-file ./payload.json

运行测试:

bash
python3 -m unittest scripts/testecommerceadcopygenerator.py -v

输出约定

成功:

  • - success: true
  • pricing.amount: 0.10
  • pricing.currency: USDT
  • copies:恰好5条,每条包含:

- platform
- headline
- body
- cta

计费失败:

  • - 输入无效时返回VALIDATIONERROR
  • 需要充值时返回INSUFFICIENTBALANCE和paymenturl
  • 非余额不足的计费失败返回BILLINGERROR

环境变量

  • - SKILLPAYCHARGEENDPOINT(默认值:https://skillpay.me/billing/charge)
  • SKILLPAYAPIKEY(可选的Bearer令牌)
  • SKILLPAYPAYMENTURLTEMPLATE(可选;支持{userid})
  • SKILLPAYTOPUPBASE_URL(默认值:https://skillpay.me/pay)

参考资料

  • - SkillPay请求/响应假设及回退行为:references/skillpay-api-contract.md

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 ecommerce-ad-copy-generator-1776204816 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 ecommerce-ad-copy-generator-1776204816 技能

通过命令行安装

skillhub install ecommerce-ad-copy-generator-1776204816

下载

⬇ 下载 ecommerce-ad-copy-generator v1.0.0(免费)

文件大小: 8.56 KB | 发布时间: 2026-4-15 13:02

v1.0.0 最新 2026-4-15 13:02
- Initial release of ecommerce-ad-copy-generator.
- Generates 5 platform-specific ecommerce ad copies per request.
- Charges 0.10 USDT via SkillPay billing before generating content.
- Returns payment URL if user balance is insufficient.
- Enforces strict input validation and structured JSON output.
- Includes test and usage scripts for easy integration.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部