Build Your Own App - AI Reel Generator 🎓
Welcome to the future of software development!
In this 2-hour interactive workshop, you will learn how to transition from syntax-heavy coding to orchestrating intelligent AI agents using natural language.
Workshop Agenda
- 01. Welcome to Vibe Coding
- 02. API Orchestration Analogy
- 03. Prompting with COSTAR
- 04. Prompt Evaluator Sandbox
- 05. Folder Anatomy of our App
- 06. Interactive Assessment Quiz
- 07. Wrap Up & Homework
Welcome to the Vibe Coding Era 🚀
Software development is shifting. Instead of writing code line-by-line, we are now orchestrating autonomous AI agents to build entire functional apps from scratch.
Classical Coding
- Spending hours memorizing syntax
- Finding a missing bracket or semicolon
- Slow, incremental development cycles
- Focus on writing code logic
Vibe Coding (Orchestrating)
- Communicating in descriptive prompts
- Focusing on UI, system flow, & UX
- Rapid prototyping in minutes
- Directing AI agents (e.g. Antigravity)
💡 Learning to code is no longer about syntax; it is about system design and describing what you want clearly.
API Orchestration: The Restaurant Analogy 🍽️
Click each node on the map to see how our app uses different APIs to build the video:
The Customer (Frontend App)
This is the glassmorphic webpage where the user enters script themes, selects visual layouts, and clicks "Generate". It acts as the customer placing the order. It has no video compiling capacity; it just displays the gorgeous preview output.
Prompt Engineering & The COSTAR Framework 📝
A prompt is how we program an AI. The COSTAR framework ensures your prompts provide clear, structured instructions so the AI builds exactly what you need. Hover over each card below to see the details!
Bad Example (Vague)
"Write a python script to crop videos and overlay subtitles."
- ❌ No Context [C]: AI doesn't know who it is or why it's coding.
- ❌ No Objective [O]: Missing resolution parameters (9:16 vs 16:9).
- ❌ No Response Format [R]: Might write code, explanations, or print mock statements.
- ❌ Prone to bugs: High chance of code hallucination.
Good Example (COSTAR)
"[C] You are a senior video developer. [O] Write a Python script using FFmpeg to crop 16:9 landscape videos into 9:16 portrait. [S] Use clean, async code. [T] Direct instructions. [A] Students learning AI. [R] Output code inside a JSON schema: {'files': [{'name': str, 'code': str}]}."
- ✅ Context [C]: Establishes the agent's expert role ("senior video developer").
- ✅ Objective [O] & Style [S]: Specifies constraints (FFmpeg) and dimensions (16:9 to 9:16).
- ✅ Response [R]: Demands structured JSON so backends can parse it programmatically.
Interactive Prompt Evaluator (COSTAR) ✍️
Write or edit the agent prompt below. Press Evaluate Prompt to see if it satisfies the COSTAR framework guidelines!
Anatomy of our Video App 📁
How the application files distribute the system roles. Click each layer to reveal details:
Click a file directory to explore
Select one of the file layers on the left to learn its purpose, tech constraints, and role in the video compilation pipeline.
Core Libraries & Technology Stack 📚
Click any library card to flip it and explore its core purpose and system role!
Receives script generation inputs, serves static files, coordinates requests, and exposes server endpoints.
Connects to Gemini 1.5 Flash. Segments scripts into scenes and visual stock keywords using structured JSON.
Enforces strict schema models on LLM outputs. Guarantees type safety and prevents JSON parsing crashes.
Communicates with Microsoft Edge speech services to generate realistic, free narration voiceover tracks.
Analyzes narration audio files to return precise millisecond start/end timestamps for kinetic caption highlight syncing.
Queries Pexels stock video directory and downloads matching B-roll footage directly to backend folders.
Loads credentials (like Gemini API keys) from local `.env` files into environment maps safely.
Trims clips, scales to portrait (9:16), sidechains background audio loops, and burns highlight subtitles.
Interactive Quiz & Self-Assessment 🧠
Question 1: What is "Vibe Coding"?
Your Workshop Takeaways & Tools 🏆
Congratulations! You've learned how to leverage AI orchestration, structure system prompts, and host containerized applications. Click the links below to access your guides and APIs:
Thank You! 🎓
You are now ready to orchestrate AI agents, design structured prompts, and build application systems of your own!
Remember: the best way to master Vibe Coding is to practice. Log into Google AI Studio, grab a free API key, set up your Hugging Face Space, and start building!