ecommerce-video-generator for Openclaw

An AI-powered video generation tool that compresses storyboards, extracts durations, and triggers AIGC video APIs for ecommerce product marketing.

bstory28
v0.1.0
Jun 30, 2026
0
371
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install ecommerce-video-generator

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install ecommerce-video-generator using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is ecommerce-video-generator?

The ecommerce-video-generator is the final stage (Skill 3) of the internationalized e-commerce video production pipeline. This tool automates the process of transforming storyboard scripts and product photos into stunning AI-generated videos. By leveraging advanced video generation APIs and smart text-compression workflows, it bridges the gap between creative storyboards and final video rendering.

Designed for integration into modern automated marketing stacks, this utility automates payload formulation, handles smart API communication, and ensures that generated video scripts fit within critical length restrictions. Using this capability within the ecosystem of Openclaw Skills ensures rapid, high-fidelity marketing assets are generated with minimal human oversight.

ecommerce-video-generator Use Cases

  • Finalizing Ecommerce Video Production: Automatically render highly engaging product videos after generating your product storyboards using preceding workflow skills.
  • Automated Script Compression: Seamlessly compress text-heavy video scripts to meet AIGC model length constraints (under 2000 characters) while preserving core selling points.
  • Payload Construction for AIGC Platforms: Construct structured, schema-compliant JSON payloads for automated submission to video-generation endpoints.
  • Previewing & Validating Video Drafts: Local draft generation and payload previews before committing actual API credits for rendering.

How ecommerce-video-generator Works

  1. Storyboard Parsing: The tool reads the storyboard JSON output generated by Skill 2, extracting camera shot lists, shot durations, and product reference keys.
  2. Script Compression: If the extracted text exceeds 2000 characters, it triggers an AI-powered compression routine (via Sudocode API) or applies smart fallback truncation to maintain core context.
  3. Asset Compilation: It processes the base product white-background image and converts local paths to base64 Data URIs to serve as reference assets.
  4. Payload Building: The tool compiles the structured metadata (duration, model ID, compressed prompt, resolution, reference images) into a standard video_payload.json file.
  5. API Submission: Depending on execution flags, it either saves the payload for preview or submits a POST request directly to the e-commerce AIGC video generation API.

ecommerce-video-generator Setup

Environmental Prerequisites

Ensure you configure the required API keys and configuration endpoints:

export AIGC_APP_KEY="your-aigc-app-key"
export AIGC_APP_SECRET="your-aigc-app-secret"
# Optional configuration
export SUDOCODE_API_KEY="your-sudocode-key"
export AIGC_API_BASE="https://aigc.hkttok.com"

Running the Script

To preview the payload locally without submitting to the API:

python ./scripts/generate_video.py --script ./storyboard.json --product ./product_layer.png

To submit the final payload to the AIGC endpoint and initiate rendering:

python ./scripts/generate_video.py --script ./storyboard.json --product ./product_layer.png --submit

ecommerce-video-generator Data Schema & Taxonomy

Input Requirements

Input Parameter Description Required
--script Path to storyboard.json (Skill 2 output) Yes
--product Product image path (defaults to path in script JSON) No
--output Destination directory (defaults to ./output) No
--submit Flag to submit to rendering API directly No

Generated Outputs

  • compressed_script.txt: The condensed script text (safely optimized to less than or equal to 2000 characters for AIGC model parsing).
  • video_payload.json: The standard rendering payload including the compiled model settings, resolution (720p), aspect ratio (9:16), cumulative duration, and reference image Data URI.

ecommerce-video-generator Advanced Features

  • Upstream Workflow Coupling: Seamlessly chains inputs from previous Openclaw Skills in the pipeline (product detail extraction and video script generation).
  • Fallback Compression System: When the high-performance Sudocode API is unavailable, the system automatically degrades gracefully using precise, ratio-based script truncation.
  • Multi-Environment Execution: Flexibly handles localized execution contexts, desktop GUI file systems, and command-line automation routines.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*