Make a training explainer from a document, without an avatar
Turn a document into a training explainer video: a policy, an SOP, a handbook chapter, a compliance memo. Your agent reads it, writes a short script, voices it, covers it with stock or generated b-roll and text slides, and adds captions. No avatar and no presenter on camera.
Use invideo for this when you want the script, the voice and every shot on one editable timeline, so a reviewer can ask for a change and the agent fixes that one part.
Quickest path
Set up your agent first with invideo for AI agents. Then give it this prompt.
Read handbook-ch3.pdf and make a short training explainer in invideo.Write the script first and show it to me. Then voice it with a clearnarrator, add stock b-roll and a text slide for each key rule, and addcaptions. No avatar. Show me frames before you export.In a chat app, you attach the document to the chat. In a terminal, the agent reads the file from the folder you name.
What you need
The document is the source. The rest are choices.
- The document: PDF, DOCX, a web page you saved, or text you paste.
- The length you want, and who watches it.
- A voice style. The agent sends you voice previews from
search_library. - Brand colors and a font, if you have them. A font file comes in with
add_media. - The shape: 16:9 for an LMS or a meeting screen, 9:16 for phones.
Steps
The agent writes, you approve, then it spends.
Read the document and write the script
The agent reads the document and writes a script in short scenes, each with one line of narration and one key rule to show. It sees your approval or your changes.
Voice the script
- The agent runs
find_modelswith "narration voice", picks one, and reads its inputs withget_model. A good pick isseed_tts_2_0. Your agent can search for others withfind_models. It picks a voice withsearch_libraryinseed_tts_2_0_voices, the library for that model. - It calls
generatewith the script asprompt, thevoice_idanddry_run: true, and tells you the price. - For a price of 1 credit or more it waits for your yes. Then it calls
generatewithmax_creditsset to that price and anidempotency_key. It gets a thread URL and, when the result lands, a sequence URL. It reads that URL withreadand never callsgenerateagain to check.
- The agent runs
Find b-roll
The agent searches
search_libraryinstock_videofor each scene and sends you the previews. Where stock has nothing that fits, it generates the shot.- It runs
find_modelswith the shot in words, and reads its pick withget_model. A good pick isseedance_2_5.r2v. Your agent can search for others withfind_models. - It calls
generatewith aprompt,generate_audiofalse anddry_run: true, and tells you the price. - For a price of 1 credit or more it waits for your yes. Then it calls
generatewithmax_creditsset to that price and anidempotency_key. It reads the shot's sequence URL withread.
It sees stock ids and sequence URLs.
- It runs
Build the timeline
The agent makes a timeline with
new_timelineand a branch withtimeline_history. It places the voice on an audio track and the b-roll on a video track withinsert_mediaorplace_media, adding stock withadd_mediaandstock. It sees a newstate_token.Add text slides
For each key rule, the agent adds a text clip with
add_textover the b-roll, styled with your font and colors. It sees the text clips inget_timeline.Add captions
The agent prices
audio.transcriptwithdry_runon the voice's sequence URL and tells you the price. For a price of 1 credit or more it waits for your yes. Then it starts the transcript withmax_creditsset to that price, and calls again afterretry_after_sfor the words. Then it sendsadd_captions. It sees a caption clip.Check, then export
The agent calls
captureat each scene change andcheck_timeline, thenexportwith formatvideo. It sees an export card with statuscompleted.
The terminal version:
invideo project new --title "Handbook chapter 3"invideo library search <project-url> --library stock_video \ --query "office team meeting"invideo library search <project-url> --library seed_tts_2_0_voices \ --query "calm female trainer"invideo gen models <project-url> --query "narration voice"invideo gen model <project-url> --model seed_tts_2_0invideo gen run <page-url> --model seed_tts_2_0 --dry-run \ -i prompt=@script.txt -i voice_id=<voice-id>invideo gen run <page-url> --model seed_tts_2_0 \ --max-credits <price> --idempotency-key handbook-3-voice \ -i prompt=@script.txt -i voice_id=<voice-id>invideo status <thread-url> --waitinvideo notebook show <thread-url>invideo media audio.transcript <voice-sequence-url> --dry-runinvideo media audio.transcript <voice-sequence-url> \ --max-credits <price>invideo edit new <project-url> --name "Chapter 3 v1"invideo asset add <edit-url> --stock <stock-id>invideo edit show <edit-url> --jsoninvideo branch new <edit-url> --name chapter-3 --token <state_token>invideo edit show <branch-url> --jsoninvideo edit change <branch-url> --timeline T1 --token <state_token> \ --operations @scenes.jsoninvideo edit capture <branch-url> --at 3,20,45,80 --out ./framesinvideo edit check <branch-url>invideo edit export <branch-url> --format video --quality 1080 --jsoninvideo status <card-url> --waitinvideo notebook show <card-url> --out ./outWhere each value comes from:
<project-url>comes frominvideo project new, and<edit-url>frominvideo edit new.<voice-id>comes from theseed_tts_2_0_voicessearch. It works only withseed_tts_2_0.<page-url>is a notebook page of the project, listed byinvideo notebook show <project-url>.<price>is each dry run's.estimated_credits.<thread-url>is theurlthe paidgen runreturns.<voice-sequence-url>is the voice file thatnotebook showon it lists.<stock-id>comes from thestock_videosearch.<branch-url>is thebranch_urlthatinvideo branch newreturns.<state_token>comes frominvideo edit showon the URL the next command runs on:<edit-url>forbranch new, then<branch-url>, read again before each change.<card-url>is.sequences[0]of the export answer.invideo statuswaits but saves nothing.invideo notebook showsaves the video as./out/export.mp4, and the agent renames it.
The file behind @scenes.json is the bare list of ops that --operations @scenes.json takes. It holds one text slide for one rule. start_f and end_f are frames at the timeline's frame rate.
[ { "op": "add_text", "track": "V2", "start_f": 360, "end_f": 540, "text": "Report every spill at once", "style": { "font_size": 72, "font_weight": 700, "color": "#ffffff", "background_color": "#1a1a1acc", "align": "center" } }]Cost 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.
- Costs credits: the voice, the transcript for captions, each stock clip you add, and each generated shot.
- Free: searching stock, every edit,
captureand each export.
Generated shots cost the most. Stock is cheaper, and text slides are free. A short explainer takes under an hour. See Credits for prices.
If something goes wrong
Most problems come from the script or the shots.
| Symptom | Fix |
|---|---|
get_model or generate refuses the model as not found | Models retire. Run find_models with the job in words, use the best match, and tell the person which model you used. |
generate refuses the voice: "voice_ids are model-specific" | The voice comes from another model's library. Search seed_tts_2_0_voices for seed_tts_2_0. |
invideo status --wait ends and the folder is empty | status does not download. Run invideo notebook show <card-url> --out <dir>. |
| The script misses a rule | Ask the agent to list every rule in the document first, then map each to a scene. |
| Stock looks generic | Search with concrete words from the scene. Or generate the shot, after a dry run. |
| A generated shot has sound you do not want | Set generate_audio to false, or mute its audio clip with set_audio_muted. |
| Text is hard to read on busy b-roll | Add a background_color to the text style, or blur the b-roll with the gaussian_blur effect through add_effect, or darken it with edit_grade. |
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. |
| CLI exit 5 | Credits ran out. Stop and tell the person. |
| Avoid: say done after the last edit | Instead: capture and check_timeline first. |
Prompts to try
Each prompt is a real variation of this job.
Turn our new expense policy into a short explainer. Text slides only,no b-roll, our brand colors, and captions.Make a short safety explainer from sop-forklift.docx. Use stockwarehouse footage. Vertical for phones.Read this onboarding page and make a short explainer for each section.Use the same voice and style for all of them.When to use something else
If you want a talking presenter, use an avatar tool such as HeyGen or Synthesia, then bring the clip in for captions and b-roll. invideo does not check that the script is legally correct. Your policy owner reviews the script before the agent voices it.