360 Secure SkillHub
360 安全技能中心

Dropship Product Pipeline

通过 CJ Dropshipping 关键词或商品 ID 选品并做最低利润率检查,用 Flux Kontext(失败时回退 GPT-4o)生成商品主图,再发布到 WooCommerce 并写入 CJ 供应商映射;以 Node CLI 单次运行,依赖多个外部服务凭据。所引用的 scripts/pipeline.js 未包含在文件列表中。

zero2ai-hub
zero2ai-hub
热度 85.00
最近更新 2026-05-18 12:15:22
分类:营销依赖:代码执行 / 读写文件 / 第三方 API应用场景:图像生成 / 市场分析 / 自动化脚本 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add skill-dropship-product-pipeline
Metadata
name
skill-dropship-product-pipeline
version
1.0.0
description
End-to-end dropship product lifecycle pipeline. CJ Dropshipping sourcing → margin check → Flux Kontext AI hero image → WooCommerce publish → CJ supplier mapping for auto-fulfillment.
requires
{"env":["FAL_KEY","OPENAI_API_KEY","CJ_ACCESS_TOKEN","WOO_URL","WOO_KEY","WOO_SECRET","WP_URL","WP_USER","WP_APP_PASS"],"bins":["node"]}

skill-dropship-product-pipeline v1.0.0

Full end-to-end dropship product lifecycle — from CJ Dropshipping search to a live WooCommerce listing with an AI-generated hero image.

Pipeline Steps

  1. CJ Sourcing — Keyword search or direct product ID. Margin check (min 40%). Variant extraction.
  2. Hero Image — Flux Kontext Dev (fal-ai/flux-kontext/dev) using the real CJ product photo as reference. Lifestyle background, product in active use, warm mood, 1:1 square.
  3. WooCommerce Publish — Upload hero + gallery images, create product, set price/SKU.
  4. CJ Mapping — Add product to your cj-supplier-selection.json for auto-fulfillment via skill-dropshipping-fulfillment.

Pipeline ends at WooCommerce publish. Video creation is a separate step — use skill-tiktok-video-pipeline.

Usage

# Source by keyword — finds best margin product
node scripts/pipeline.js --keyword "ring light" --sell-price 89

# Source by CJ product ID — skip sourcing step
node scripts/pipeline.js --cj-pid 2603020206551636100 --sell-price 69

# Dry run — skip WooCommerce publish (test mode)
node scripts/pipeline.js --keyword "desk lamp" --sell-price 99 --dry-run

Options

Flag Required Description
--keyword ✅ (or --cj-pid) CJ search keyword
--cj-pid ✅ (or --keyword) Known CJ product ID, skips search
--sell-price ✅ Selling price in your local currency
--dry-run ❌ Skip WooCommerce publish
--lang ❌ Language: en, ar, both (default: en)
--min-margin ❌ Minimum margin % (default: 40)

Credentials Setup

Create credential files or use environment variables:

# CJ Dropshipping
export CJ_ACCESS_TOKEN="your-cj-token"

# WooCommerce
export WOO_URL="https://yourstore.com"
export WOO_KEY="ck_..."
export WOO_SECRET="cs_..."

# WordPress media upload
export WP_URL="https://yourstore.com"
export WP_USER="your-wp-username"
export WP_APP_PASS="your-app-password"

# AI services
export FAL_KEY="your-fal-key"        # Flux Kontext hero image
export OPENAI_API_KEY="your-key"     # GPT-4o fallback for hero

Hero Image Standard

  • Model: Flux Kontext Dev (fal-ai/flux-kontext/dev)
  • Method: Real CJ product photo as image_url input — product appearance locked from frame 1
  • Style: Lifestyle background, product in active use, shallow DOF, warm mood, 1:1 square
  • Fallback: GPT-4o images/edits if Flux fails

Output Files

  • hero-{slug}.jpg — Product hero (Flux Kontext or GPT-4o fallback)
  • pipeline-result-{slug}.json — WooCommerce product ID, CJ mapping, cost/margin breakdown

Economics

  • Min margin default: 40%
  • Hero image cost: ~$0.05–0.10 per product (Flux Kontext)
  • Total pipeline cost per product: under $0.20

Recommended Stack

For the full dropship automation stack:

  1. This skill — source + list products
  2. skill-tiktok-video-pipeline — create video ads
  3. skill-dropshipping-fulfillment — auto-fulfill orders via CJ
  4. skill-woocommerce-stock-monitor — OOS alerts