AI-Powered Documents, Presentations and Videos: Behind the Production of the Le Cursos Channel

•0•0Comment iconComment iconComment iconComment icon

Code-generated slides, transcription, editing, subtitles, thumbnails and publishing: the real video-lesson pipeline, what AI handles, what a person checks, and how a sync error became a rule

Writer image

Translated byEditorial

Edit Article

In Lesson 4link outside website, the project worked with data: finding information backed by sources, downloading official series by code, comparing periods on a consistent basis, and checking every number. The underlying idea was the same as always: AI builds the program once, the code runs it repeatedly, and the person makes the decisions and checks the results.

In this lesson, the project produces content. Reports, presentations, manuals, and videos account for a huge share of any manager's work. They are also where many people use AI in the most expensive way: ask for text in a chat, copy it, paste it into PowerPoint, make adjustments by hand, and start over the following week. I'll take you inside the production process for my YouTube channel, Le Cursos, where slides, documents, and videos are produced by programs written with Claude Code. You'll see what AI does, what the code does, what I still do by hand, and which mistakes became rules along the way.

1. Slides generated by code

1.1 The presentation as a program

You can build a PowerPoint presentation by hand, slide by slide, or generate it with a program. In my project, each Financial Management lesson has a Python program that builds the entire deck using a library called python-pptx. The program specifies: a cover with this title, then a slide with these three cards, then a chart with these numbers.

The visual identity lives in a separate file shared by all the decks: brand colors, fonts, the footer with the logo, and small functions for building a card, a section divider, or a chart. When I change the accent color in that file and run the programs again, every deck uses the new color. Doing that by hand would mean hours of opening files one by one.

The project's CLAUDE.md stores the conventions: 16:9 format, Arial font, a minimum of 14 points for body text, the palette (brand blue, navy for the cover, amber for money, green for correct answers, red for trick questions), and no decorative bands. Every rule is there because, at some point, a deck came out differently from what I wanted.

1.2 The speaker notes are the script

One project rule stands out as the most useful to me: every slide has speaker notes, and those notes are the recording script. When I record a video lesson, the slides appear on screen, and what I'll say for each one is written in the notes, generated along with the deck.

That changes how the work is divided. The agent builds the deck and script from the lesson content published on the website (the source of truth) and the core textbook. I read through it, correct anything that's wrong or doesn't sound like me, and record. Decks made for video follow their own format, with a hook before the title, one idea per slide, and large text. Those rules are also set out in a guide within the project.

1.3 How to check a deck

Generation isn't the final step. The program might put too much text in a card, overflow a text box, or cut off a word. That's why the project includes a review stage: convert the deck to PDF, then to images, and inspect it slide by slide. The agent can do this and examine the images itself, but I have the final say on whether it "looks good".

In my project, what happens when I change the accent color in the visual identity file and run the programs again?

Loading icon

Correct answer: every deck uses the new color, without editing slides one by one. That's the advantage of treating a presentation as a program: the rule lives in one place and applies to all of them.

2. Documents generated by scripts

2.1 The course syllabus and manual

The same logic applies to documents. This course's syllabus, in FGV's official format, is generated by a script: it starts with another course's Word document (including the template's logos, header, and formatting), replaces only the text, and saves a new file. It then converts it to PDF with LibreOffice, without opening a window. The AI Assessment Manual, which you'll start using in Lesson 6link outside website, is also generated by a script, using the python-docx library, and converted to PDF in the same way.

Why not write directly in Word? Three reasons. First, when the content changes (and syllabuses change every semester), I ask the agent to make the change, it updates the text in the script, and the document is generated again with the formatting intact. Second, the official template is always followed because the script starts from it. Third, the text lives in a file tracked by git, so I can see what changed from one version to the next.

2.2 When generating with code makes sense

Not every document needs a script. A one-off email, meeting minutes, a piece of text you'll write once: create it directly, with or without the agent's help. Generating with code makes sense when a document recurs (a monthly report, a standard proposal, a contract with variable fields), follows a strict template (an official form, a visual identity), or depends on data (tables and figures that change). It's the same rule about tokens from Lesson 2link outside website: the more often something repeats, the greater the payoff.

3. The video pipeline

3.1 One person records; code handles the rest

Now for the larger example. On the Le Cursos channel, I record, and code and Claude handle the rest of production: editing, vertical clips (Shorts), thumbnails, captions, publication details, scheduling, and promotion. There's no video editor and no editing software with a timeline: everything runs on Python and ffmpeg, a command-line tool that cuts and joins video.

There are 22 scripts, totaling 7,046 lines of code. The process has handled 13 long-form videos for the channel: Financial Management lessons AF01 to AF10 and the first three videos in the "Opinion on Brazil" series (O01 to O03).

3.2 The stages

1. Recording. I record in OBS, a recording application, and the raw file goes into a recordings folder.

2. Synchronization. A program measures whether the voice and picture are in sync and, if not, corrects the timing by adjusting only the picture. This stage grew out of a mistake I'll describe in section 4.

3. Transcription. Whisper, a transcription model that runs on my computer, turns speech into text with a timestamp for every word. In Lesson 2link outside website, you saw the time it invented a sentence.

4. Decisions. This is where the language model comes in. Claude reads the transcript and records the video decisions in a configuration file: where to cut, what opening hook to use, which image or on-screen text appears at each point, the chapters, title, description, and which excerpts become Shorts. For lessons recorded with just a camera, it also searches for news stories and takes screenshots with the relevant passage highlighted. This file already has 1,542 lines: it records every decision for every video.

5. Review. Before rendering, a program assembles just the edited audio and uses Whisper to listen to every edit point. If a cut leaves a stray syllable or a repeated sentence, it flags it with "!!". This takes about 15 seconds.

6. Rendering. The editing program, which has 1,306 lines, assembles everything in reusable segments (I'll explain in section 4).

7. Shorts. Another program generates the vertical clips with word-by-word captions.

8. Finishing touches. The YouTube publication details, two thumbnails for A/B testing, the promotional Instagram story, and its caption.

9. Publishing. A program enters the details and schedules the video through the YouTube API.

Notice the division of work from Lesson 2link outside website: the language model comes in at stage 4, which requires judgment about text. The other stages are code: they run repeatedly without spending tokens. If I change a decision, the code rebuilds the affected part.

3.3 What I still do

An honest list of what remains my responsibility:

Record. Watch and approve the result. Upload the video file to YouTube Studio, because the API application hasn't passed YouTube's audit, and without that approval, a video uploaded through the API would be locked as private. Manually handle a few things in Studio that the API doesn't cover: the second thumbnail for the A/B test, the end screen, the pinned comment, and the "related video" for Shorts. Post the story. Renew the API login, which expires roughly every 7 days. And publish the lesson article on the website: I run that script myself because the agent is blocked from accessing the website's database.

The agent handles video scheduling, with my authorization recorded in its memory. Deleting a video still requires my confirmation. That's a management decision about autonomy, the subject of Lesson 7link outside website.

In the Le Cursos video pipeline, at which stage does the language model (Claude) do its main work?

Loading icon

Correct answer: during decisions: it reads the transcript and specifies cuts, the hook, on-screen visuals, chapters, and publication details. This requires judgment about text, which is where the model is useful. Rendering is pure code, I do the recording, and I also handle the upload to Studio.

4. Mistakes that became rules

4.1 Synchronization: 0.43 seconds and a second mistake within the first

On 22/11/2026, video O03 was finished, but it had a problem: OBS had recorded the camera 0.43 seconds behind the voice. The video was rendered that way, and I only noticed when I watched it. What I said was: "it looks like the audio is delayed or something".

The synchronization program was created that same day. It compares mouth movements with voice volume and calculates the delay. Before trusting it, we tested it in a simple, clever way: deliberately delaying the audio by 300 milliseconds and checking whether the program detected the delay. The rule was added to CLAUDE.md: "Always check audio synchronization". It was also carried over to the sister project at Cards Realm and the skill I distribute (section 6).

There was a second mistake within the first: the first correction calculated the delay in frames at 60 frames per second, but the recording was at 30. The result was 0.87 seconds instead of 0.43. The program now reads the frame rate from the file itself rather than assuming it. The lesson: the fix needs checking too.

4.2 Rendering in segments

On 17/11/2026, after several rounds of adjustments to a video, I wrote to the agent: "you're making too many mistakes and spending too much time rendering… could you edit it bit by bit and then put it together?". A full render took about 25 minutes, and every little mistake meant rendering the whole thing again.

Two things came out of that. First, checking edit points before rendering (the 15 seconds in stage 5), which catches most errors before spending machine time. Second, rendering in segments: the video is divided into parts that are saved, and an adjustment rebuilds only the part that changed. For one Cards Realm video, reassembling it without changes took just 2 minutes.

Notice that the complaint was about management (time and rework), and the response was a process change, not "try to be more careful".

4.3 Breathing and the owner's preferences

On 9/11/2026, I asked: "note this down and always remove this audio," referring to the sound of breathing near the microphone. That became a default in the editing software. On 17/11/2026, I added more preferences, all documented: only 1 or 2 Shorts per video (previously 3 or 4), no poll midway through the video, and no "coming up" preview at the start. These are product decisions only the owner can make, and the agent could not have guessed them.

What was the lesson from the "second error" in the sync fix?

Loading icon

Answer: fixes need checking too: it assumed 60 frames per second for a recording shot at 30. The calculated delay was 0,87 s instead of 0,43 s. The software now reads the file's frame rate rather than assuming it.

5. The channel's numbers

5.1 Where the channel stands

As of 24/11/2026, the Le Cursos channel had 1.960 subscribers, 46.823 views and 90 videos (the 90 include older videos and videos from other courses, such as Statistics). Lesson AF07 already had 3.016 views on 18/11/2026. The best-performing Short up to that point, "R$ 400 a month for everyone?", taken from video O03, received 897 views in about 13 hours.

These are small-channel numbers, and that is why I am sharing them: the point of this lesson is not that AI makes a channel take off. It is that one person can maintain a regular production schedule, with quality checks, because repetitive work has been turned into code.

5.2 Retention and the hook

On 22/10/2026, a retention analysis tool showed that, on average, people watched 5% to 18% of each video, with the biggest drop-off in the first 30 to 40 seconds. Viewers brought in through paid promotion left quickly: on AF04, retention at 30 seconds was 25%, with zero subscribers gained from those views.

That led to the opening hook rule: each video starts with the strongest excerpt from the talk, before the title. Notice the progression: measured data became a written production rule, and the rule became a step recorded in the decisions file. In Lesson 12link outside website, we will discuss how to measure whether a change like this actually worked.

6. The skill: adapting the process for others

6.1 From my project to a tool anyone can use

In Claude Code, a skill is a package of instructions and programs that teaches the agent how to do a particular kind of work. I took the video pipeline and adapted it into a skill called videoaula-youtube for other people to use. It contains 29 files, also distributed in a 375 KB .zip dated 22/11/2026.

To make it work with any channel, everything specific to me was removed from the code. The channel name and branding go in a user configuration file, with the decisions for each video in a separate file. There are two recording formats, "camera and slides" and "camera only". In the first conversation, the skill instructs the agent to ask users how they record, what branding they use and whether they will publish through the API, rather than make assumptions. There is also a document explaining the reasoning behind each decision, based on retention data from a real channel.

The lesson about sync has already been incorporated into the skill: its instructions warn that a 0,43-second delay was once spotted only in the finished video, and require a sync check before editing.

6.2 Generalizing requires maintenance

The honest caveat, once again: the skill still describes replying to comments and making 3 to 4 vertical clips, two things my project dropped on 17/11/2026. My project's CLAUDE.md says that any change to the video process that applies to everyone must also be incorporated into the skill. The rule exists; it is not always followed.

It is the same lesson as in Lesson 3link outside website: documenting and sharing knowledge is ongoing work. A company turning one department's process into a standard for others faces exactly this challenge.

7. Common mistakes

"Using AI for documents means asking for text in a chat and pasting it into Word." For recurring work, a script that generates the document from a template and data is better. The text changes; the formatting stays.

"If the software generated it, it is ready." Software can overflow text boxes, cut off words and get the sync wrong. Checking the output (converting it to images and inspecting them, listening to the edit points) is part of the process, not an optional extra.

"AI will do everything; the person just presses a button." In my pipeline, I record, approve, handle some tasks in Studio, renew the login and publish the article. And the preferences (how many Shorts, no poll midway through) are mine.

"Once it is fixed, the job is done." The sync fix introduced a second error. Every fix needs testing, preferably with a case where you know the answer, such as the deliberately introduced 300-millisecond delay.

8. Bringing it all together

Slides generated with code: the visual identity in one place, conventions in CLAUDE.md, and speaker notes as the script.

Documents generated by script: the official template is followed, the content changes without reformatting, and the text stays in the version history. This is worthwhile for recurring documents, strict templates or data-driven content.

The video pipeline: the language model makes decisions about the text; the code cuts, joins, captions and publishes; the person records, checks and approves.

Every error becomes a rule: the 0,43 s sync issue, the faulty fix involving 30 × 60 frames, rendering in chunks and breathing noise, each documented with a date and a reason.

Generalizing is a management task: the skill makes the process available to others, and keeping it up to date is ongoing work.

The next lesson begins the management module: how much AI your company already has, using the AI Trianglelink outside website.

Claude Code activity (20 minutes)

1. Choose a one- or two-page text of your own (you can use texto.txt from Lesson 2link outside website) and put it in the "ia-gestao" folder.

2. Ask: "Write a Python program using the python-pptx library that generates a 5-slide presentation from texto.txt: a title slide, three slides covering the main ideas and a concluding slide. Each slide should have no more than 4 bullet points and speaker notes explaining what to say. Run the program."

3. Open the generated presentation and check: does the text fit in the boxes? Are these really the main ideas in your text? Do the notes work as a script? Note what needs changing and ask for corrections.

4. Now change a style rule. Ask: "Record the style rules for this project's presentations in CLAUDE.md: Arial font, a minimum of 18 points for body text, dark blue titles and no more than 3 bullet points per slide (with today's date and the reason). Update the program to follow these rules and generate the presentation again."

5. Check that the new rules have been applied to every slide. Notice that you did not edit a single slide by hand.

6. Ask for a commit with the message "presentation generated with code, with style rules in CLAUDE.md".

Class discussion exercise

Think of a document or presentation that your company (or a department you know) produces every month, such as a report for the board or a results presentation. Discuss: (a) which parts stay the same and which change? (b) Which parts could a program generate, and which require human judgment? (c) What mandatory "review step" would be needed before sending it, and who would be responsible?

Exercises

1) In the Le Cursos slide project, the speaker notes for each slide serve as:

A) a space for student comments.

B) a record of the channel's passwords.

C) a copy of the bibliography.

D) a place to store the program's code.

E) a script for recording the video lesson.

2) Generating a document by script from an official template is particularly worthwhile when the document:

A) will be written only once and never revised.

B) is a short personal email.

C) recurs, follows a strict template or relies on changing data.

D) has no formatting at all.

E) must be handwritten by law.

3) In the Le Cursos video pipeline, the pre-render review step:

A) assembles just the edited voice track and checks each edit point with Whisper, marking anything that seems wrong with "!!", in about 15 seconds.

B) publishes the video directly to YouTube.

C) replaces the recording.

D) rebuilds the entire video from scratch in about 25 minutes.

E) chooses the video's title on its own, without documenting it.

4) Which statement about audio sync in video O03 is correct?

A) The problem was spotted before rendering by an automated check that was already in place.

B) The first fix worked immediately, without any errors.

C) The problem was a 30-second delay.

D) The sync software was tested by deliberately delaying the audio by 300 milliseconds, and the rule was incorporated into other projects and the skill.

E) The solution was to stop recording with a camera.

5) (True or false) "In the Le Cursos pipeline, AI handles every step, including uploading the video to YouTube Studio, setting up the end screen and publishing the article on the website."

( ) True ( ) False

6) (True or false) "The videoaula-youtube skill adapts the video process for other people, without the author's data, and in the first conversation asks users how they record, what branding they use and whether they will publish through the API."

( ) True ( ) False

Answer key

1) E — Every slide has notes, and those notes are what I say during the recording. The agent generates the deck and script together; I read, revise and record.

2) C — A script is worthwhile when there is repetition, a strict template or variable data. For a one-off text, writing it directly is simpler.

3) A — Checking the edit points takes about 15 seconds and catches most errors before time is spent rendering. The 25 minutes referred to the old full render.

4) D — The software was validated using a known delay introduced deliberately. The problem was spotted only in the finished video, and the first fix made the mistake of assuming 60 frames per second for a recording shot at 30.

5) False — Uploading the MP4 to Studio, setting up the end screen, pinning the comment and publishing the article on the website are still my tasks. Scheduling was delegated to the agent with written authorization.

6) True — The channel and branding are stored in a user configuration file, and the skill instructs the agent to ask rather than assume.

What did you think of this article?

0%
User score (0)

Share this article!