Skip to main content

How to make product tutorial videos with Windmill

This guide shows how to make tutorial videos about your product with an AI agent in Windmill. You plan a series and write each script by chatting with the agent. Windmill then records the voice, builds the screens, renders the video and uploads it to YouTube as private.

The tool​

The tool has four pieces, in one Windmill workspace: an AI agent and three scripts. The first script records the voice and builds the screens, the second renders the video, and the third uploads it to YouTube.

The look of the videos comes from a video kit, a GitHub repository that holds:

  • the guidelines to write and animate a tutorial,
  • the UI kit: the product's screens rebuilt in HTML,
  • the engine that plays the scenes,
  • four finished tutorials, as examples.

Here the product is Windmill itself. For your own product, fork the kit, replace its screens with yours, and set your docs, your code and your fork in the config script.

Each piece below comes with the prompt to build it in your own workspace. The whole project is on the Windmill Hub, ready to add to your workspace: Marketing product videos on the Hub. The runs shown in the embeds below are dry runs: no voice is recorded and no video is rendered, and the scripts return the steps they would go through.

An AI agent plans the series and writes each script with the team​

The team talks to an AI agent that remembers the conversation. Its seven tools are Windmill scripts:

  • read_guide, read_docs and read_code read the kit's guidelines, the product's docs and its code.
  • make_tutorial starts a video from its script.
  • video_status tells how far a video is, and gives its link.
  • revise_video fixes a finished video.
  • publish_to_youtube uploads a video to YouTube.

The agent suggests a list of tutorials, then writes each script line by line, with what should be on screen. It waits for the team's approval before it makes a video or uploads one.

Read more: AI agents.

Prompt

Create an AI agent that plans tutorial series from our docs, writes each script with me line by line, and never starts or publishes a video without my go.

A second agent builds the screens on the recorded voice​

When the team approves a script in the chat, the first agent calls make_tutorial, which starts this script in the background.

It records the narration with ElevenLabs in one take. Then a second agent (Claude, with the Agent SDK) builds the screens on that voice, from the screens in the kit and the product's code. It runs in an AI sandbox, on workers that have Chromium and their own tag. Before the render, it checks still frames of the video and that every click lands in the right place.

Read more: AI sandbox.

Prompt

Add a sandboxed script on the chromium worker tag that records the narration with ElevenLabs in one take, then runs a Claude agent that writes the tutorial's screens on that voice, from our rebuilt app screens and our code, and checks its stills and every click.

A script renders the video​

Step: write a tutorial
The agent writes the screens in HTML
the voice, recorded first
Step: render a tutorial
The script films them one after the other
MP4, with the voice and subtitles

There is no AI in this step. It films the scene in 1080p with headless Chromium and ffmpeg, adds the voice and writes the subtitles. The files go to the workspace object storage.

For a fix, the second agent changes the screens and the video is rendered again on the same voice.

Read more: Object storage.

Prompt

Render the scene in headless Chromium with ffmpeg on the recorded voice, and keep the MP4 and subtitles in workspace storage; a fix renders again on the same voice.

A script uploads the watched tutorial to YouTube​

Once the team has watched the tutorial, it goes to YouTube as private, with its subtitles, its thumbnail and its playlist. Making it public stays manual. The YouTube connection is a secret variable.

Read more: Variables and secrets.

Prompt

Upload a watched tutorial to YouTube as private, with its captions, thumbnail and playlist.

A day with the tool​

  • The PM asks for a series of 6 tutorials on audit logs. The agent reads the docs and suggests 6 titles.
  • The agent writes the first script, "Export audit logs to object storage", in 7 lines. The PM approves it.
  • About 20 minutes later, the 84-second tutorial is ready.
  • One screen goes by too fast. The agent fixes it on the same voice.
  • The PM watches it again and it goes to YouTube as private.