An enterprise-grade, fully autonomous media agency system designed to identify trends, curate content, and generate viral short-form videos (Shorts/Reels/TikToks) using AI. The system reduces manual media production workflows by 90%, automating everything from content discovery to rendering.
Note: This project is currently under active development. Some agents and modules are continuously being evolved.
Instead of relying on monolithic scripts, this architecture utilizes a Multi-Agent approach. Different AI "Agents" communicate with each other, dividing labor efficiently:
- Trend Hunters: Actively monitor data sources (Google Trends, News APIs, Social Media) for emerging topics.
- Classifiers & Analysts: Filter out noise, predict match outcomes (for sports), and select actionable trends.
- Content Creators: Write viral hooks, design TTS (Text-To-Speech) plans, and structure scripts.
- Video Directors: Combine audio, generated imagery, and overlay data into a final rendered
.mp4.
/agents: Independent AI modules (Trend Classifier, Event Agent) that make strategic decisions./ingestion: Data collection pipes (Trend Fetchers, CSV Parsers, Web Scrapers)./intelligence: Core AI processing and language models usage (LLM Providers)./video_functions: The automated video production studio (Editing, Rendering, TTS overlay)./sports: Specialized autonomous pipelines dedicated to automated match predictions and sports news./tools: System diagnostic and smoke-test tools to ensure API reliability.
Ensure you have Python 3.10+ installed.
-
Clone the repository & Install requirements
git clone https://github.com/bederd/auto-shorts-generator.git cd auto-shorts-generator pip install -r requirements.txt -
Environment Variables Rename
.env.exampleto.envand fill in the required API keys (OpenAI, Gemini, Video rendering APIs, etc). -
Run a Smoke Test
python tools/run_trends_export_smoke_test.py