com um clique
scrollclaw-broll
// Generate B-roll environment and product shots with Kling 3 via fal.ai. Environment matching, cut timing, and visual-only clips that play under continuous voice.
// Generate B-roll environment and product shots with Kling 3 via fal.ai. Environment matching, cut timing, and visual-only clips that play under continuous voice.
One-time brand initialization. Given a brand name and URL, researches the brand and generates the three workspace/brand/ files that the rest of the pipeline reads. Run once per brand before any campaign work.
Router and orchestrator for AI UGC video production. Use for broad outcome requests like making a UGC video or running a campaign; it routes step-specific requests to the right sub-skill and can drive the full pipeline from persona research through virality-scored video.
ScrollClaw system — core doctrine, format selection, pipeline routing, and anti-patterns. Loaded into every UGC conversation.
Assembly stage for UGC videos. Handles stitch mode, post mode, captions mode, or full-assemble mode when the user is explicitly working on finalizing an existing campaign video.
Animate first frames into A-roll talking head clips. Uses Sora 2 via fal.ai (primary) with Kling 3 auto-fallback when Sora is unavailable or sunset.
Generate the canonical first frame with Nano Banana 2. Composition, character, environment, and color — all locked before animation. The visual design gate.
| name | scrollclaw-broll |
| description | Generate B-roll environment and product shots with Kling 3 via fal.ai. Environment matching, cut timing, and visual-only clips that play under continuous voice. |
| metadata | {"openclaw":{"emoji":"🎞️","user-invocable":true,"triggers":["b-roll","kling video","environment shot","product shot","broll","b roll"]}} |
Kling 3 generates B-roll — environment shots, product close-ups, lifestyle moments. These are visual-only clips that play under the continuous voice track. Voice never cuts. B-roll swaps visuals only.
[B-ROLL] segments tagged (from /persona)/animate) — needed for environment matchingExtract a frame from the A-roll and use it as Kling's start image. This ensures B-roll looks like the same room — same floor, same lighting, same vibe. See references/orchestrator.md.
Generate context-specific first frames per scene. Don't use the podcast frame (headphones) for gym B-roll.
Cut from A-roll to B-roll at a script BEAT point — not mid-sentence. The viewer should see the face deliver the setup, then cut to B-roll for the payoff visual.
Example: If Sarah says "she finishes the whole bowl" → cut to dog finishing the bowl. Match the visual to the words. Leave 0.5-1s buffer before the cut so the face isn't visible in a non-talking state.
USE scripts/generate-broll.sh — do NOT construct Kling API calls manually.
# B-roll with environment-matched start frame (RECOMMENDED)
bash scripts/generate-broll.sh \
--provider fal \
--image workspace/campaigns/<slug>/frames/environment-frame.png \
--prompt-file workspace/campaigns/<slug>/broll-prompt.txt \
--output workspace/campaigns/<slug>/clips/b-roll-01.mp4 \
--log-file workspace/campaigns/<slug>/output-log.md \
--label b-roll-01 \
--seconds 5
# Faceless B-roll (no start frame needed)
bash scripts/generate-broll.sh \
--provider fal \
--prompt-file workspace/campaigns/<slug>/broll-prompt.txt \
--output workspace/campaigns/<slug>/clips/b-roll-02.mp4 \
--log-file workspace/campaigns/<slug>/output-log.md \
--label b-roll-02 \
--seconds 5
Read references/kling-api.md for Kling 3 endpoint details, field names, and queue workflow on fal.ai.
references/orchestrator.md) has the full A/B-roll split methodology| File | Purpose |
|---|---|
workspace/campaigns/<slug>/frames/environment-frame.png | Environment-matched start frame for Kling i2v |
workspace/campaigns/<slug>/clips/a-roll-*.mp4 | Source clips to extract environment frames from |
workspace/campaigns/<slug>/scripts/<format>-script.md | B-roll segments and visual cues |
| File | Notes |
|---|---|
workspace/campaigns/<slug>/clips/b-roll-01.mp4 | One file per B-roll segment |
workspace/campaigns/<slug>/output-log.md | Kling prompt, duration, provider (append-only) |
🎞️ B-Roll context loaded:
✓ Environment frame: workspace/campaigns/ridge-q1/frames/environment-frame.png
✓ A-roll clips: 3 found (workspace/campaigns/ridge-q1/clips/)
✓ Script: talking-head (B-roll segments: 2)
✓ Campaign: ridge-q1
[B-ROLL] script segments plus either an environment frame or usable A-roll clips for extraction/animate, /persona, and references/orchestrator.mdworkspace/campaigns/<slug>/clips/ and rows in output-log.md/assembleworkspace/campaigns/<slug>/clips/b-roll-<segment>.mp4 corresponding to a [B-ROLL] script segmentworkspace/campaigns/<slug>/output-log.mdB-roll done → run /assemble to stitch everything together with unified audio.