---
name: videofunnel
version: 2.0.0
description: Turn any existing sales video (MP4, Voomly, YouTube, Vimeo, or Wistia) into a validated, themeable, agent-controllable branching interactive video funnel using @videofunnel/core, @videofunnel/react (built on @ui-sdk/react), or the drop-in <video-funnel> embed.
---

# VideoFunnel Agent Skill

VideoFunnel lets you turn a single video you already host into a multi-path interactive funnel with timed overlays (choices, lead capture, proof, product, FAQ, CTA) and clean checkout handoffs—without uploading videos to a third-party SaaS.

Site & live playground: https://videofunnel.wynter.ai/

## Non-Negotiable Rules

1. **Never fabricate proof.** Do not invent testimonials, ratings, client names, results, prices, or deadlines. Use only facts and proof the user provides, or put `[bracket]` placeholders.
2. **Keep video hosting where the user already hosts it.** Accept MP4/WebM URLs, `share.voomly.com/v/<id>`, `youtube.com/watch?v=...` / `youtu.be/...`, `vimeo.com/<id>`, or `*.wistia.com/medias/<id>`. VideoFunnel normalizes every URL automatically.
3. **Validate every graph.** Every segment without a decision must set `nextDefault`. Every target must point to a real segment or outcome. Zero loops, zero dead ends, zero unreachable segments, and every cue timestamp `at` must sit inside `[0, segment.end - segment.start]`.
4. **Always include an escape hatch.** Every decision needs 2–4 concise choices (labels <= 28 characters) and should include a direct path to the offer for viewers who are already ready to buy.
5. **Respect human confirmation on actions.** Checkout CTAs and real lead form submissions carry `data-agent-confirm` via `@ui-sdk/react/agent` so agents can navigate and QA freely while humans approve irreversible actions.

## Workflow

1. **Gather real inputs:** offer & outcome (sale, lead, or booked call), audience, 2–4 real buyer objections, video link (MP4, Voomly, YouTube, Vimeo, or Wistia), and checkout/lead URL (`mock:` until real URL is provided).
2. **Slice one video into chapters:** map `[start, end)` timestamps in seconds for `intro`, each objection branch, and the `offer` chapter.
3. **Author `videofunnel/2` JSON:** define `media`, `segments`, `decisions`, `overlays`, optional `titles`, `content`, `templates`, `outcomes`, and optional `theme` (`cinema`, `daylight`, `editorial`, or `studio`).
4. **Validate and verify every path:** run `validateExperience(exp)` and `enumeratePaths(exp)` from `@videofunnel/core` so 100% of paths terminate on a valid outcome.
5. **Embed on the user's site:**
   - **React apps:** `npm install @videofunnel/react @videofunnel/core @ui-sdk/react @ui-sdk/core` and render `<VideoFunnel experience={exp} theme="cinema" onLeadSubmit={...} onOutcomeHandoff={...} />`.
   - **ClickFunnels / Webflow / WordPress / plain HTML:** drop `<script type="module" src="https://videofunnel.wynter.ai/embed.js"></script>` and `<video-funnel theme="cinema"><script type="application/json">{...}</script></video-funnel>`.

## Schema `videofunnel/2`

```json
{
  "schema": "videofunnel/2",
  "id": "my-branching-vsl",
  "version": 1,
  "title": "My Interactive VSL",
  "summary": "Pick what is holding you back and jump straight to the answer.",
  "theme": { "preset": "cinema" },
  "entrySegmentId": "intro",
  "media": [
    {
      "url": "https://share.voomly.com/v/YOUR_VOOMLY_ID",
      "provider": "voomly",
      "duration": 90
    }
  ],
  "segments": [
    { "id": "intro", "title": "The problem", "videoUrl": "https://share.voomly.com/v/YOUR_VOOMLY_ID", "start": 0, "end": 22 },
    { "id": "answer-a", "title": "How fast does it work?", "videoUrl": "https://share.voomly.com/v/YOUR_VOOMLY_ID", "start": 22, "end": 48, "nextDefault": "offer" },
    { "id": "answer-b", "title": "What is included?", "videoUrl": "https://share.voomly.com/v/YOUR_VOOMLY_ID", "start": 48, "end": 70, "nextDefault": "offer" },
    { "id": "offer", "title": "The offer", "videoUrl": "https://share.voomly.com/v/YOUR_VOOMLY_ID", "start": 70, "end": 90, "nextDefault": "checkout" }
  ],
  "decisions": [
    {
      "id": "objection",
      "trigger": { "segmentId": "intro", "at": 17 },
      "prompt": "What do you want to see first?",
      "choices": [
        { "id": "speed", "label": "How fast does it work?", "nextSegmentId": "answer-a", "attributes": { "topic": "speed" } },
        { "id": "included", "label": "What is included?", "nextSegmentId": "answer-b", "attributes": { "topic": "included" } },
        { "id": "skip", "label": "Skip straight to the offer", "nextSegmentId": "offer", "attributes": { "topic": "offer" } }
      ]
    }
  ],
  "overlays": [
    { "id": "optin", "trigger": { "segmentId": "offer", "at": 6 }, "type": "lead", "contentRef": "guide", "dismissible": true }
  ],
  "content": {
    "guide": { "title": "Want the checklist by email?", "body": "We will send the summary right to your inbox.", "field": "Email", "button": "Send it" }
  },
  "outcomes": [
    {
      "id": "checkout",
      "title": "Ready to get started?",
      "cta": "Go to checkout",
      "destination": "https://example.com/order",
      "disclosure": "Opens your order page with the viewer's chosen answers attached as vf_* query parameters.",
      "handoff": { "offer": "main" }
    }
  ]
}
```
