Vigyata.AI
Is this your channel?

I used AI to recommend my YouTube videos to people ft. Google Gemini

1.3K views· 80 likes· 13:22· Jan 31, 2024

🛍️ Products Mentioned (2)

🟢 Work with my creative marketing agency / collaborations 👉 hello@mensoi.com 🟢 Turning tech into stories that stick 👉 www.mensoi.com Check our Google AI studio ► https://ai.google.dev/tutorials/ai-studio_quickstart Follow me on Twitter ► https://www.twitter.com/developerfilip Check me out on GitHub ► https://github.com/FilipGrebowski In this video, I'm pulling back the curtain on how I creatively 'hijack' the recommended slots on YouTube. It's all about smartly using Google's powerful tools - like the YouTube Data API v3 and Google Studio AI - to give my videos a turbo boost in visibility. But here's the twist: I'm using these tools to weave in my own videos with catchy calls to action right at the crucial ending moments of a video. This isn't just about getting more eyes on my content; it's a deep dive into the art of engaging viewers using the language models of Google Gemini and clever coding tricks. MUSIC BY ► @epidemicsound #developer #gemini #GooglePartner

About This Video

In this video I pull back the curtain on a slightly sneaky idea: what if I could “hijack” YouTube’s recommended slots with a bit of coding magic? YouTube is insanely competitive (500+ hours uploaded every minute), and the algorithm is basically the puppet master. So I built a Google Chrome extension that curates a little overlay at the end of any video you’re watching—then nudges you toward one of my videos with a bespoke call to action generated by Google Gemini. I break the build into four steps: (1) create the Chrome extension (an index.html + manifest, then load it unpacked), (2) fetch data using YouTube Data API v3—both my own videos (20 popular ones, then I randomly pick 6) and the current video’s details, (3) send the current video’s title into Gemini Pro via the Gemini API to generate a one-line CTA that creatively links that video’s “genre” to web dev/programming, and (4) inject an HTML overlay into the YouTube player to display the CTA + the recommendations. Along the way I show the Cloud Console setup (enable the API, create an API key), how I extract the YouTube video ID, and how the prompt engineering makes Gemini do the “creative bridge” work. Also: please don’t hardcode your API keys—use environment variables. Always.

Frequently Asked Questions

🎬 More from Developer Filip