graph TD
A[Start Subagent 5: Video Creation] --> B[Receive Final Lesson Text]
B --> C{Need Script Format?}
C -->|Yes| D[Generate Voice-Over Script]
C -->|No| E[Use Lesson Text As-Is]
D --> F[Convert to MP3 Voice-Over]
E --> F
F --> G[Generate Text Slide Video]
G --> H{Add Images?}
H -->|Yes| I[Overlay Images on Video]
H -->|No| J[Skip Image Overlay]
I --> K[Store Module Video]
J --> K
K --> L{More Modules?}
L -->|Yes| B
L -->|No| M[Concatenate All Module Videos]
M --> N[Output Final Course Video MP4]
N --> O[End Subagent 5]