Turn a webinar replay into an evergreen video with a CTA and chapters
Turn a webinar recording, or a live session replay, into an evergreen video people watch on demand. Your agent cuts the dead air: the waiting room, "can you hear me", long pauses and the tech fumbles. It adds a call-to-action (CTA) card, chapter markers with a chapter list, and captions, which some people call subtitles.
Use invideo for this when the recording is long and every cut must stay reversible: the cuts are timeline edits on a branch, so you can put a section back in the editor.
The agent never publishes the replay or emails your list. You do that.
Quickest path
Set up your agent first with invideo for AI agents. Then give it this prompt.
Turn webinar.mp4 into an evergreen replay. Cut the waiting room, thesound checks and every pause longer than two seconds. Add a CTA cardfor the demo link at the end and after the offer, chapter markers,a chapter list for YouTube, and captions. Price the transcript first.In a chat app, you drag the recording into the project. In a terminal, the agent names the file and uploads it.
What you need
These are the inputs the agent asks for.
- The recording as an MP4 or MOV file, from Zoom, Teams, Webex or your webinar tool.
- The CTA: the words and the link to show, like "Book a demo at acme.com/demo".
- Where the CTA goes: at the end, after the offer, or both.
- What to keep from the Q and A, or all of it.
- The shape. Webinars are 16:9.
Steps
The agent works on a branch, so the main timeline stays clean until you approve.
Upload the recording
A webinar file is large, so the agent calls
start_uploadwith the file name, PUTs the bytes to theupload_url, then callsadd_mediawith theupload_id. Expected result: a sequence URL for the recording.Transcribe it
The agent prices
audio.transcripton the recording's sequence URL withdry_runand tells you the price. Then it starts it withmax_creditsset to that price, and calls again afterretry_after_sfor the words. It pages through the words withoffset. Expected result: every word with its time and speaker.Find the dead air
The agent runs
mediaaudio.contentfor the silence spans. It reads the transcript for the waiting room, the sound checks and the "give everyone a minute" lines. It lists the spans to cut with their times and shows you the list. Expected result: your yes, or your changes.Cut on a branch
The agent makes a 16:9 timeline with
new_timeline, creates a branch withtimeline_history, and places the recording withplace_mediaandlinked_audiotrue. It cuts each span withedit_time_rangeand modeclose_gap, from the last span to the first, so the earlier times stay true. Expected result: a newstate_tokenand a shorter timeline.Add chapters and the CTA
The agent adds a marker at each topic change with
add_marker, with anamefor the chapter. It adds the CTA as a text card withadd_text, with a background color and your brand colors in itsstyle. Expected result: markers on the timeline and a CTA clip on its own track.Add captions
The agent moves each transcript word earlier by the time cut before it, then adds the words with
add_captions. Expected result: a caption clip that matches the speech after the cuts.Check, then export
The agent runs
captureat each cut, each CTA and each chapter start, andcheck_timeline. It checks every cut edge against the transcript's word times, so no cut lands inside a word. Then it runsexportwithformatvideo andtarget_lufs, and runsaudio.waveformon the export card to see that no gap or click is left. Expected result: an export card with statuscompleted, and the chapter list in the chat.
The terminal version of the same job:
invideo project new --title "Webinar replay"invideo agent register <project-url> --name <name>export INVIDEO_AS=<name>invideo asset upload <project-url> ./webinar.mp4invideo media audio.transcript <sequence-url> --dry-runinvideo media audio.transcript <sequence-url> --max-credits <price>invideo media audio.content <sequence-url>invideo edit new <project-url> --name "Replay v1"invideo edit show <edit-url> --jsoninvideo branch new <edit-url> --name evergreen --token <state_token>invideo edit show <branch-url> --jsoninvideo edit change <branch-url> --timeline T1 --token <state_token> \ --operations @cut-list.jsoninvideo edit show <branch-url> --mode collection --collection markerinvideo edit capture <branch-url> --at 0,300,1200,2400 --out ./framesinvideo edit export <branch-url> --format video --quality 1080 \ --target-lufs -14 --jsoninvideo status <card-url> --waitinvideo notebook show <card-url> --out ./outWhere the values come from: <project-url> from invideo project new, and <edit-url> from invideo edit new. <name> is the name you choose in invideo agent register. <sequence-url> is the url that invideo asset upload returns for the recording. <price> is the dry run's estimated_credits. <state_token> comes from invideo edit show on the edit, and on the branch from invideo edit show <branch-url>. The main token is stale there. <branch-url> is the branch_url that invideo branch new returns. <card-url> is .sequences[0] of what the export returns. invideo status does not download; invideo notebook show saves the file as export.mp4.
The key edit is the ops file cut-list.json, a bare list. It cuts one span, marks a chapter and adds the CTA card. At 30 fps, frame 1800 is one minute.
[ { "op": "edit_time_range", "timeline": "T1", "start_f": 0, "end_f": 5400, "mode": "close_gap" }, { "op": "add_marker", "at_f": 9000, "name": "Pricing", "color": "#ffaa00" }, { "op": "add_text", "track": "V3", "start_f": 54000, "end_f": 54450, "text": "Book a demo: acme.com/demo", "style": { "font_size": 64, "color": "#ffffff", "background_color": "#1a56dbcc", "align": "center" } }]The agent sends the cuts in one edit_timeline call. They land all together, or none do.
The chapter list
The agent reads the markers with get_timeline mode collection and collection marker. It writes one line per marker: the time as minutes and seconds, then the name. YouTube reads chapters from a list like this in the description. The list starts at 00:00 and goes in order, and each chapter has a minimum length. See YouTube's video chapters help.
00:00 Welcome and agenda03:10 Why most onboarding fails11:45 The three-step fix24:30 Pricing31:05 Q and ACost and time
Edits and exports are free. Generation and transcripts cost credits. Paid stock costs a small credit charge, or one of your workspace's iStock licenses. Your agent runs a dry run first and tells you the price before it spends anything.
- Free: the upload, every cut, marker, CTA and caption edit,
captureandexport. audio.contentandaudio.waveform: the dry run shows the price before anything starts.- Costs credits:
audio.transcript, once per file. Later calls to follow it cost nothing.
The upload and transcript of a long webinar take a while. The cuts take a few minutes. See Credits for prices.
If something goes wrong
Most problems are times that moved after a cut.
| Symptom | Fix |
|---|---|
| A later cut lands in the wrong place | The cuts went first to last, so times moved. Read the timeline again and cut from the last span to the first. |
| Captions run ahead of the speech | The word times were not moved for the cuts before them. Recompute and replace the caption clip. |
| A word is cut in half | Move the span's edge to the gap between words from the transcript, then cut again. |
audio.transcript returns a status, not words | It is still running. Call again with the same file after retry_after_s. |
| The upload PUT fails | Call start_upload again for a new upload_url, and PUT once more. |
unavailable | The timeline is starting. Retry the same request in a few seconds. |
| CLI exit 3 | The edit changed since your read, or the token is the main timeline's. Run invideo edit show <branch-url> and rebuild. |
| The download folder is empty | invideo status does not download. Run invideo notebook show <card-url> --out ./out. |
| CLI exit 7 | Nothing ran. Run the same command again. |
Exit code 6, or status is held | A safety review, not a refusal. Wait, then run invideo status <url> --wait again. Do not resend. If it ends failed, change the input the review flagged. |
| Avoid: cutting on main | Instead: create a branch, so the full recording stays one click away. |
Prompts to try
Each prompt is a real variation of this job.
Cut this webinar to the 20-minute core talk only. Drop the Q and A.Add a CTA card every ten minutes and at the end.Keep the Q and A, but cut any question nobody answered and every pauseover three seconds. Give me the chapter list for YouTube.Make the evergreen replay, then a second branch with only the demosection and the CTA, for a short follow-up.When to use something else
invideo does not run the webinar, host the replay page, or send the follow-up emails. Use your webinar tool for the live session, and your video host or email tool to publish and send. A clickable button inside the player comes from your video host. In invideo, the CTA is text on screen.