Back to Trending
RepositoryPython
ChaitanyaEswarRajeshJakki

ChaitanyaEswarRajeshJakki/gemini-youtube-automation

A fully autonomous AI Agent/Python pipeline that utilizes Large Language Models (LLMs) like Gemini to generate content, produce videos, and automatically upload educational videos to YouTube.

391stars
202forks
0issues
5views

Featured achievements

The project's latest awards

3
TINIX TRENDING·Topic: moviepy

#3 Repository of the week

3
TINIX TRENDING·Topic: video-automation

#3 Repository of the week

5
TINIX TRENDING·Topic: ai-video-generator

#5 Repository of the week

🤖 Gemini YouTube Automation

A fully autonomous AI bot that writes, produces, and uploads YouTube lessons daily — zero human input required.

Daily Pipeline Python 3.11 Gemini 2.5 Stars Last Commit License

📺 Watch the Generated Videos on YouTube


Demo

Demo — AI-generated lesson video

Watch on YouTube


What It Does

Every day at 7:00 AM UTC, this bot runs entirely on GitHub Actions and:

  1. Reads the content plan to pick the next pending lesson
  2. Writes a full multi-slide script using Gemini 2.5 Flash
  3. Generates narration audio (gTTS) and fetches Pexels background imagery
  4. Renders a professional slide-based video (1920×1080) with background music
  5. Renders a vertical YouTube Short (1080×1920) from the same lesson
  6. Creates a custom thumbnail for each format
  7. Uploads both videos to YouTube with titles, descriptions, and hashtags
  8. Updates content_plan.json and commits it back to the repo

No local machine. No manual steps. Every video in the channel was made by this pipeline.


How It Works

GitHub Actions Scheduler (7 AM UTC)
          │
          ▼
  ┌───────────────────┐
  │  content_plan.json │  ◄── picks next "pending" lesson
  └────────┬──────────┘
           │
           ▼
  ┌─────────────────────────────────┐
  │  Gemini 2.5 Flash               │
  │  • 7–8 slide lesson script      │
  │  • 1-sentence YouTube Short     │
  │  • hashtags + metadata          │
  └────────┬────────────────────────┘
           │
           ▼
  ┌──────────────────────────────────────┐
  │  Video Renderer (MoviePy + PIL)      │
  │  • gTTS narration per slide          │
  │  • Pexels background images          │
  │  • Background music mix              │
  │  • Long-form (16:9) + Short (9:16)   │
  └────────┬─────────────────────────────┘
           │
           ▼
  ┌────────────────────────┐
  │  YouTube Data API v3   │  ◄── uploads with thumbnails
  └────────┬───────────────┘
           │
           ▼
  ┌────────────────────────┐
  │  git commit + push     │  ◄── marks lesson "complete"
  └────────────────────────┘

Features

  • Zero-touch operation — fully autonomous, runs on a cron schedule
  • Dual-format output — long-form lesson video AND a YouTube Short per day
  • AI-generated curriculum — Gemini creates and extends the course plan automatically
  • Dynamic visuals — Pexels stock imagery matched to each slide topic
  • Professional audio — per-slide narration with soft background music
  • Custom thumbnails — auto-generated for every video
  • Self-updating repo — content plan committed back after each successful run
  • GitHub Actions native — no server, no hosting cost, just free CI runners

Tech Stack

ComponentTechnology
AI Script GenerationGoogle Gemini 2.5 Flash
Text-to-SpeechgTTS
Video RenderingMoviePy + FFmpeg
Image GenerationPillow (PIL) + ImageMagick
Stock FootagePexels API
YouTube UploadYouTube Data API v3
AutomationGitHub Actions

Setup

1. Clone the repo

git clone https://github.com/ChaitanyaEswarRajeshJakki/gemini-youtube-automation.git
cd gemini-youtube-automation

2. Install dependencies

pip install -r requirements.txt

3. Configure GitHub Secrets

Go to Settings → Secrets and variables → Actions and add:

SecretDescription
GOOGLE_API_KEYGemini API key from Google AI Studio
PEXELS_API_KEYPexels API key
CLIENT_SECRET_B64YouTube OAuth client_secrets.json encoded in base64
CREDENTIALS_B64YouTube OAuth credentials.json encoded in base64

4. Run locally

python main.py

Content Progress

The bot is currently producing the "AI for Developers" series — a beginner-friendly course that takes developers from zero to advanced AI.

Topics covered include: Generative AI, LLMs, Prompt Engineering, RAG, Vector Databases, LangGraph, Fine-tuning, Computer Vision, and more.

Track progress live in content_plan.json.


Daily Production Infographic

Daily Report Infographic


Star History

Star History Chart


Contributing

Contributions are welcome. Open an issue or submit a pull request.

License

MIT License. See LICENSE for details.

Similar Projects

Discover other similar projects and AI models.

RepositoryPython
harry0703/MoneyPrinterTurbo

利用 AI 大模型和自动化工作流,根据主题或关键词一键生成高清短视频。Generate HD short videos from a topic or keyword with an automated AI workflow.

147.3k
Dec 1, 2026
RepositoryPython
Significant-Gravitas/AutoGPT

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

188.2k
Nov 29, 2026
RepositoryPython
langgenius/dify

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

162.3k
Dec 2, 2026
RepositoryPython
unslothai/unsloth

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

80.6k
Dec 2, 2026
RepositoryPython
langchain-ai/langchain

The agent engineering platform.

150.1k
Nov 29, 2026
RepositoryGo
mudler/LocalAI

LocalAI is the open-source AI engine. Run any model - LLMs, vision, voice, image, video - on any hardware. No GPU required.

50.6k
Nov 30, 2026
RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

487.0k
Dec 2, 2026
RepositoryJavaScript
affaan-m/ECC

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

315.1k
Dec 1, 2026
RepositoryPython
browser-use/browser-use

Browser Use: open source browser agent infrastructure

122.6k
Dec 2, 2026