Built an on-demand topic discovery pipeline for my YouTube channel using the WAT Framework.
🟢 What it does when triggered:
→ Pulls trending content from YouTube Data API + Google Search (Serper)
→ Feeds everything into Gemini 2.5 Flash to curate 5 psychology topics — each with a story angle, video hook, and "why it resonates"
→ Generates a styled HTML infographic per topic (inline CSS, Gmail-native — no image hosting needed) → Sends a compiled email via Gmail API
⚫ Smart feature:
- Topics history file tracks every past suggestion — Gemini is explicitly told to avoid repeats on each run
📚Stack: Python · Gemini 2.5 Flash · YouTube Data API · Serper · Gmail OAuth
The WAT pattern is surprisingly robust when one step fails, you fix and rerun just that script. No black boxes.