Viral Script Generator for Openclaw

An AI-powered multi-platform video script engine that compiles optimal hooks, scene scripts, B-roll cues, and music suggestions in 30 seconds.

ai-gaoqian
v1.0.1
Jun 7, 2026
0
164
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install viral-script-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 viral-script-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 Viral Script Generator?

The Viral Script Generator is an advanced content-creation engine designed to systematically produce high-converting short-form video scripts for TikTok, Reels, YouTube Shorts, Douyin, and Bilibili. Built as one of the specialized Openclaw Skills, this tool removes the guesswork from video production by injecting quantitative viral metrics, proven narrative frameworks, and psychological hook triggers into its generations. Whether targets are high-retention educational videos or emotional storytelling clips, the skill maps the dynamic structure required to captivate audiences.

By feeding the engine a few simple parameters like platform, tone, and topic, creators and digital marketers can rapidly generate scripts complete with scene-by-scene guidelines, visual suggestions, music tempo parameters, and sound effect cues. This systematic approach ensures that every output is highly optimized for short-video platform algorithms, making it an indispensable asset for individual creators and enterprise-level marketing teams alike.

Viral Script Generator Use Cases

  • Creating optimized short-video scripts tailored precisely for TikTok, Reels, Shorts, and Bilibili algorithms.
  • Generating engaging and high-retention intro scripts using a multi-category, 25-template hook library.
  • Speeding up video pre-production with detailed visual cues, scene-by-scene action blocks, and timing guidelines.
  • Structuring live-stream sales pitches, promotional marketing content, and scripts tailored for virtual/AI digital humans.
  • Designing multi-platform content schedules and batch production workflows.

How Viral Script Generator Works

  1. Request Submission: The client or autonomous agent triggers the generation by sending a POST request containing input parameters (target platform, video category, tone, and duration).
  2. Handshake Protocol (HTTP 402): The server responds with a 402 Payment Required code, returning a Base64-encoded payload containing short Alipay links.
  3. Payment Resolution: The user or calling agent completes the transaction via Alipay.
  4. Verification & Execution: The client re-submits the call with the transaction signature (x-payment-credential) in the HTTP headers. The server verifies and runs the script engine.
  5. Dynamic Knowledge Assembly: The generator references its static database references/viral-script-generator.json to source hook models, pacing structures, and music profiles.
  6. Production Output Delivery: The engine outputs a structured payload containing voiceover text, B-roll recommendations, timing breakdowns, sound design cues, and target publishing advice.

Viral Script Generator Setup

To leverage this skill within your automation workspace, execute API requests pointing directly to the public gateway.

API Configurations

  • Gateway Endpoint: http://8.145.54.67:3000/skill/viral-script-generator
  • Cost: ¥0.50 per request
  • Payment Method: Alipay short-link authentication

Request Integration Example

Use curl to generate a 60-second tech script outline:

curl -X POST http://8.145.54.67:3000/skill/viral-script-generator \
  -H "Content-Type: application/json" \
  -d '{
    "platform": "TikTok",
    "category": "Tech Reviews",
    "tone": "Energetic",
    "duration": "60s"
  }'

Response Handshake Flow

Upon receiving a 402 Payment Required response, parse the pay_url or short_link to process payment, then pass the credential string in the header:

curl -X POST http://8.145.54.67:3000/skill/viral-script-generator \
  -H "Content-Type: application/json" \
  -H "x-payment-credential: alipay_your_payment_token_here" \
  -d '{
    "platform": "TikTok",
    "category": "Tech Reviews",
    "tone": "Energetic",
    "duration": "60s"
  }'

Viral Script Generator Data Schema & Taxonomy

The core reference data that fuels this engine is securely structured inside references/viral-script-generator.json. It provides target constraints and structural parameters:

Platform Target Benchmarks

Platform Ideal Length Aspect Ratio Hook Window Max Chars Avg. CPM
TikTok 15-60s 9:16 First 1.5s 2,200 $4.50
Reels 15-30s 9:16 First 1s 2,200 $6.20
Shorts 15-30s 9:16 First 2s 5,000 $5.50
Bilibili 2-5m 16:9 First 5s 20,000 $3.00

Script Structure Blueprint (60-second video)

Stage Duration Chars Target Goal Typical Elements
HOOK 0-3s 30 Hook & retain audience Curiosity gap, controversy, counter-intuitive facts
SETUP 3-8s 80 Establish video context Explain why the viewer needs to watch, lay out premise
VALUE 8-45s 400 Deliver core message/product Step-by-step tutorials, visual proofs, storytelling
CLIMAX 45-55s 100 Emotional peek or transition Result reveal, plot twists, golden quotes
CTA 55-60s 60 Drive engagement action Encouraging likes, comments, shares, or saves

Algorithm Scoring Blueprint

Metric Weight Description
Interaction Rate (30%) Likes + comments + shares divided by total plays
Completion Rate (25%) Percentage of viewers who watch the video in its entirety
Share Rate (20%) Forwarding frequency/multipliers divided by total plays
Comment Sentiment (15%) Positive or negative text sentiment classification
Collection Rate (10%) Saves and favorites divided by total plays

Viral Script Generator Advanced Features

  • Dynamic Audio and Sound Design Mapping: Suggests detailed SFX actions (Whooshes, text popups, shutter clicks) matched with custom BPM/tempo recommendations to maintain high retention pace.
  • Autonomous Payment Support: Features robust integration with HTTP 402 protocols via Alipay short-links, allowing other automated Openclaw Skills to batch purchase script tasks.
  • Targeted Publishing Windows: Yields the exact hours and days of peak engagement for target platforms (e.g., Tuesday/Thursday/Friday peak periods on TikTok).
  • B-Roll Visual Directives: Provides direct shot guidance (close-ups, text overlays, ASMR sound recordings) optimized according to CPM rates and platform standards.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*