← 返回
数据分析 Key 中文

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 targe...
使用SkillPay计费批量生成付费电商广告文案。当用户需要根据产品名称、卖点及目标信息制作5条即用型广告文案时使用。
wingogx
数据分析 clawhub v1.0.0 1 版本 99854.9 Key: 需要
★ 0
Stars
📥 688
下载
💾 60
安装
1
版本
#ecommerce#growth#latest#paid

概述

Ecommerce Ad Copy Generator

Overview

Generate 5 conversion-focused ad copies for Facebook / Google / TikTok from structured product input. Charge 0.10 USDT per run before content generation.

Workflow

  1. Parse and validate input fields:
    • user_id
    • product_name
    • selling_points (list or delimited string)
    • target_audience
  2. Call SkillPay POST /billing/charge with amount 0.10 USDT.
  3. If billing succeeds, generate exactly 5 platform-adapted ad copies.
  4. If billing returns insufficient balance, return INSUFFICIENT_BALANCE with payment_url.
  5. Return structured JSON output for downstream use.

Run

  • Core script: scripts/ecommerce_ad_copy_generator.py
  • Test script: scripts/test_ecommerce_ad_copy_generator.py

Run 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

Output Contract

Success:

  • success: true
  • pricing.amount: "0.10"
  • pricing.currency: "USDT"
  • copies: exactly 5 items, each containing:
  • platform
  • headline
  • body
  • cta

Billing failure:

  • VALIDATION_ERROR for invalid input
  • INSUFFICIENT_BALANCE and payment_url when top-up is required
  • BILLING_ERROR for non-balance billing failures

Environment Variables

  • SKILLPAY_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 request/response assumptions and fallback behavior: references/skillpay-api-contract.md

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 00:39 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

YouTube Video To Blog Converter

wingogx
免费基础版可将YouTube文稿转换为结构化博客草稿,预留了SEO优化和多平台发布的付费升级接口。
★ 1 📥 656
data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 164 📥 59,896
data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 367 📥 140,293