Demo Video: Brief to Captioned Product Demo
workflowTurns a product brief into a captioned demo video: scripted recording of the live web app, HTML motion graphics, one cut, checked frame by frame.
usage
echo "<your request>" | octomind workflow demo-video reads your request from stdin. add --dry-run to validate and print the plan without
running any steps.
pipeline
-
Plan a product demo video for the brief below. Work under ./video-out/<slug>/. Write beats.md: one row per beat with its start and end time, what the viewer sees, the on-screen text or narration line, and its source, ex…
-
Record every beat marked `screen` from the live app. Read beats.md and script.md at the paths the plan below names; they hold each beat's page, actions and required state. If no beat is marked `screen`, reply `No screen…
-
Build every beat marked `motion` as an HTML motion graphic at the plan's aspect ratio and frame rate. Read beats.md and script.md at the paths the plan below names, and use their copy and numbers exactly. Look at still …
-
Cut the recordings and motion clips below into one video in the beat order of beats.md (its path is in the plan), at the plan's aspect ratio. Trim dead time using the steps files. Add narration only if the brief asks fo…
- 5 polish loop
- finish producer
Prepare the master cut under ./video-out/<slug>/cuts/ for review. On a later round you receive the reviewer's findings: fix exactly those, re-recording or re-rendering a beat when a cut cannot repair it, and change noth…
- review producer
You are an independent reviewer in a fresh session. You did not make this video. Open every frame in the review folder named below, read probe.txt, and check them against the plan. Judge from the frames and the file, ne…
-
The review loop is finished. Report the result of this demo video in under 150 words: the path of the master cut, its size, frame rate and duration, the beats it contains, and what the person should check before publish…
definition
# Title: Demo Video: Brief to Captioned Product Demo
#
# Public workflow: turn a product brief into a captioned demo video made in a
# browser, with no paid generation step. The plan marks each beat as recorded
# from the live app or built as an HTML motion graphic. The recording and the
# motion beats are made one after the other, because a screen recording runs in
# real time and drops frames while another render loads the machine. The cut is
# then checked by a read-only reviewer against exported frames, in a fix and
# review loop.
#
# Operates on the current directory, under ./video-out/<slug>/. The app must be
# reachable from this machine. A flow behind a login needs a session file the
# person saved beforehand with `npx playwright open --save-storage=<file> <url>`. Nothing is uploaded.
#
# Note: chains several agent runs — token/time-heavy by design.
name = "demo-video"
description = "Turns a product brief into a captioned demo video: scripted recording of the live web app, HTML motion graphics, one cut, checked frame by frame."
# ── 1. Plan ──────────────────────────────────────────────────────────────────
[[steps]]
name = "plan"
role = "producer"
skills = ["video-script-writing", "video-storyboarding"]
session = "fresh"
prompt = """
Plan a product demo video for the brief below. Work under ./video-out/<slug>/.
Write beats.md: one row per beat with its start and end time, what the viewer
sees, the on-screen text or narration line, and its source, exactly one of:
- screen: recorded from the live app. Give the page, the actions in order and the state the app must be in.
- motion: an HTML motion graphic (title, stat reveal, transition, end card). Give the copy and the numbers.
Write script.md with the final wording per beat. State the aspect ratio, the
target length, the app URL, and whether a saved browser session file is needed.
Use only product facts the brief gives; mark anything you assumed.
End with the path of beats.md and a one-line summary per beat.
<brief>
{{input}}
</brief>
"""
# ── 2. Record the live app ───────────────────────────────────────────────────
[[steps]]
name = "capture"
role = "producer"
skills = ["video-screen-recording"]
session = "fresh"
prompt = """
Record every beat marked `screen` from the live app. Read beats.md and script.md
at the paths the plan below names; they hold each beat's page, actions and
required state. If no beat is marked `screen`, reply `No screen beats.` and do
nothing else.
In the browser: open the app, walk each flow once with the browser tools to
learn the steps and a role-and-name locator for each control, then write one
scenario file with a step per beat and no chapter cards: the cut adds its own
titles and captions, so the take needs the step times only. Run the file,
save the returned step times, and look at frames taken at each step. Hide banners and mask personal
data. A flow behind a login needs the saved session file the brief names. If a
page asks for a login that no session file covers, a CAPTCHA or a payment, stop
and report which page.
End with the path of each recording and its steps file, the measured size,
frame rate and duration, and any beat you could not record with the reason.
<brief>
{{input}}
</brief>
<plan>
{{plan}}
</plan>
"""
# ── 3. Build the motion beats ────────────────────────────────────────────────
[[steps]]
name = "motion"
role = "producer"
skills = ["video-motion-graphics"]
session = "fresh"
prompt = """
Build every beat marked `motion` as an HTML motion graphic at the plan's aspect
ratio and frame rate. Read beats.md and script.md at the paths the plan below
names, and use their copy and numbers exactly. Look at still frames before the
full render. If no beat is marked `motion`, reply `No motion beats.` and do
nothing else.
End with the path of each rendered clip and its size, frame rate and duration.
<brief>
{{input}}
</brief>
<plan>
{{plan}}
</plan>
"""
# ── 4. Cut ───────────────────────────────────────────────────────────────────
[[steps]]
name = "assemble"
role = "producer"
skills = ["video-editing", "video-captions"]
session = "fresh"
prompt = """
Cut the recordings and motion clips below into one video in the beat order of
beats.md (its path is in the plan), at the plan's aspect ratio. Trim dead time
using the steps files.
Add narration only if the brief asks for it and a voice tool is available;
otherwise burn the script's on-screen lines as captions timed to the beats.
Save the master under ./video-out/<slug>/cuts/.
<brief>
{{input}}
</brief>
<plan>
{{plan}}
</plan>
<recordings>
{{capture}}
</recordings>
<motion_clips>
{{motion}}
</motion_clips>
"""
# ── 5. Fix ⇄ review loop ─────────────────────────────────────────────────────
[[steps]]
name = "polish"
loop = true
max_iterations = 3
exit_when = { output = "review", matches = '(?m)^REVIEW-PASS' }
[[steps.run]]
name = "finish"
role = "producer"
skills = ["video-editing", "video-captions"]
session = "continue"
prompt = """
Prepare the master cut under ./video-out/<slug>/cuts/ for review. On a later
round you receive the reviewer's findings: fix exactly those, re-recording or
re-rendering a beat when a cut cannot repair it, and change nothing else.
Then export the review set to ./video-out/<slug>/review/: one frame from the
middle of each beat and one from its first second, named by beat number, plus
probe.txt with the container, codec, pixel format, size, frame rate and duration
of the master.
End with the path of the master and of the review folder.
<plan>
{{plan}}
</plan>
"""
[[steps.run]]
name = "review"
role = "producer"
session = "fresh"
readonly = true
prompt = """
You are an independent reviewer in a fresh session. You did not make this video.
Open every frame in the review folder named below, read probe.txt, and check
them against the plan. Judge from the frames and the file, never from the
maker's report.
<plan>
{{plan}}
</plan>
<maker_report>
{{finish}}
</maker_report>
Rubric, in order:
1. The file matches the plan: aspect ratio, length within 10%, H.264 video in MP4.
2. Every beat of the plan is present, in order, and shows what the plan says.
3. Text is sharp and readable at phone size; no text is cut off, overlapping or outside the frame.
4. No personal data, cookie banner, scrollbar, error dialog or loading state is visible.
5. Captions match the script and sit clear of the platform interface areas.
6. The first beat states what the product does.
List each failing item with the beat number and the exact fix. If every item
passes, do not invent new criteria. End with exactly one line: REVIEW-PASS or
REVIEW-FAIL. Nothing after it.
"""
# ── 6. Deliver ───────────────────────────────────────────────────────────────
[[steps]]
name = "deliver"
role = "producer"
session = "fresh"
readonly = true
prompt = """
The review loop is finished. Report the result of this demo video in under 150
words: the path of the master cut, its size, frame rate and duration, the beats
it contains, and what the person should check before publishing. If the final
review does not end in `REVIEW-PASS`, start with one line — `Unverified: the
reviewer still flagged items:` — followed by the remaining findings as a short
list. Nothing was uploaded.
<maker_report>
{{finish}}
</maker_report>
<final_review>
{{review}}
</final_review>
"""