Pexo Video Ad Generator for Openclaw

An AI-powered video ad creation skill that automates scriptwriting, scene composition, and video styling via the Pexo API.

pexo
v0.1.1
Jun 8, 2026
0
581
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install video-ad

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 video-ad 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 Pexo Video Ad Generator?

The Pexo Video Ad skill enables AI coding agents to produce professional, high-converting video advertisements for platforms like Meta, TikTok, and YouTube. By acting as a seamless relay between the developer's agent and the hosted Pexo agent, this skill takes product briefs, media assets, or concepts and returns ready-to-run marketing videos complete with scripted hooks, paced shots, and aligned music.

Integrating this tool into your collection of Openclaw Skills ensures your AI workflow avoids complex rendering processes or creative guesswork. Instead of writing custom prompts or managing asset timelines, your AI agent coordinates directly with Pexo's specialized backend to deliver reliable, high-performing visual assets.

Pexo Video Ad Generator Use Cases

  • Social Media Ad Campaigns: Instantly generate video ads for Meta, TikTok, or YouTube from a single product photo or text description.
  • E-commerce Product Promotion: Automatically convert inventory photos into dynamic, scroll-stopping video commercials with converting hooks.
  • Rapid Creative Iteration: Refine and tweak existing ads with feedback like "make it shorter" or "new music" while keeping the exact same project context.
  • Automated Video Marketing Pipelines: Connect your AI agent to content creation schedules to run promotional campaigns at scale without manual video production software.

How Pexo Video Ad Generator Works

  1. Initialize Project: The agent spins up a video project utilizing pexo-project-create.sh and captures the unique project identifier.
  2. Asset Upload: High-quality product images, audio tracks, or brand videos are uploaded using pexo-upload.sh and reference tags (such as <original-image>) are generated.
  3. Relay Instructions: The agent passes the user's exact requirements alongside the asset tags directly to Pexo's AI using the pexo-chat.sh command.
  4. Poll and Process: The system monitors the generation state via pexo-project-get.sh on an automated loop to respond to interactive events (like choosing A/B test variations) and re-connect on interruptions.
  5. Asset Delivery: Once production finishes, the agent retrieves the fully rendered asset URL with pexo-asset-get.sh and displays it directly to the user.
  6. Iterative Revision: If the user asks for changes, the agent reuses the existing project ID to instruct Pexo to revise the video while maintaining full contextual awareness.

Pexo Video Ad Generator Setup

Configure your local environment by creating a configuration file and setting your API credentials.

Configuration File

Create a config file at ~/.pexo/config with the following variables:

PEXO_BASE_URL="https://pexo.ai"
PEXO_API_KEY="sk-<your-api-key>"

Environment Dependencies

Ensure your runtime has the following command-line tools installed:

  • curl for making API requests.
  • jq for parsing JSON payloads.
  • file for identifying upload asset MIME types.

Verification and Diagnostics

Run the built-in diagnostic tool to verify the setup configuration:

./scripts/pexo-doctor.sh

If you do not have an account, review the signup flow and setup checklist in references/SETUP-CHECKLIST.md to acquire the necessary invite code and promotional credits.

Pexo Video Ad Generator Data Schema & Taxonomy

The skill interacts with the Pexo API using a structured set of shell scripts and handles state payloads defined by the workspace. The script routing schema is structured as follows:

Script Name Arguments Output / Action
pexo-project-create.sh <brief> Returns a unique project_id string
pexo-upload.sh <project_id> <file_path> Returns an asset_id for video, audio, or image inline tags
pexo-chat.sh <project_id> "<message>" [--choice <id>] Sends conversational input or option selections
pexo-project-get.sh <project_id> Returns JSON payload with nextAction and recentMessages
pexo-asset-get.sh <project_id> <asset_id> Returns JSON configuration containing the final video url
pexo-doctor.sh None Evaluates environment setup, dependency presence, and API keys

Polling States (nextAction)

  • WAIT: The system is rendering. Continue polling every 60+ seconds.
  • RESPOND: Interactive action needed. Relay text or prompt the user to choose between generated preview options (preview_video via pexo-asset-get.sh).
  • DELIVER: Production is complete. Retrieve the final asset URL.
  • RECONNECT: Resends a continue message to recover dropped generation threads.
  • FAILED: Aborts execution and relays the failure error context via nextActionHint.

Pexo Video Ad Generator Advanced Features

  • Context-Preserving Revisions: Supports executing revisions on the same project ID, preventing the loss of previous server-side generation contexts.
  • Interactive A/B Option Previews: Handles multi-choice interactive assets, allowing users to choose between generated mockups (e.g. choice A, B, or C) before executing final render sequences.
  • Robust Polling State Machine: Automatically manages connectivity loss, long rendering delays (30+ minutes), and prevents script double-execution using state-based locking.
  • Inline HTML Tagging for Media: Allows precise injection of input videos, image assets, or audios in chat directives using structured custom XML tags like <original-image> and <original-audio>.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*