Post

Using YouTube and Gemini to Create Blog Content

Learn how to automate your content creation workflow by using Google Gemini AI to summarize YouTube videos and generate formatted Markdown for Jekyll blogs.

Using YouTube and Gemini to Create Blog Content

I was recently using Google’s Gemini AI to get quick summaries of videos posted on YouTube. It proved to be a much more effective way to extract the main content message and key takeaways without having to view the whole video from start to finish.

Here is a breakdown of how I developed a simple prompt workflow to completely automate my content creation process for this blog.

Step 1: The Basic AI Video Summary

I initially achieved the video analysis with this straightforward prompt:

“Summarise this Youtube video: https://www.youtube.com/watch?v=0123456789”

This worked perfectly for extracting the knowledge, but I wanted to make the output more visually engaging for my readers.

Step 2: Embedding the YouTube Video Player

I thought it would be nice to see the actual video panel that Gemini displays at the bottom of its own summary interface. To bring that functionality to my website, I added this follow-up prompt:

“Ok, this summary has a nice video panel at the end. Is there a markdown way that I can use in a blog post to recreate that video player so users can ‘Watch the full video here: https://www.youtube.com/watch?v=0123456789’?”

There was a solution for that which gave me a nicely formatted post page using an HTML embed code.

Step 3: Automating the Jekyll Markdown Workflow

After repeating these separate prompts a few times for different YouTube videos, I realized I could consolidate the workflow. I pushed the AI a bit further by asking it to write the actual code for my website:

“Ok, pushing it a bit. That summary that you just produced and the youtube.html element you provided, is there any chance you can generate the Markdown sequence to reproduce that on a Jekyll-based website? Of course, there need to be references to accredit the sources and technology used to produce the summary.”

The Final 1-Prompt Solution

By combining these steps, that sequence allowed me to streamline my entire process. Now, I simply use a single master prompt:

“And the same (including Markdown formatting) for this Youtube video: https://www.youtube.com/watch?v=0123456789”

This results in a 1-prompt Markdown script for a YouTube video summary that is fully formatted, accurately accredited, and completely ready to be published as a new Jekyll blog post.

This post is licensed under CC BY 4.0 by the author.