How I Auto-Generate YouTube Thumbnails with n8n & Google Nano Banana 2 | n8n Course Tutorial

Опубликовано: 16 Март 2026
на канале: GenAI Unplugged
300
8

Stop spending 40-45 minutes in Canva every time you upload a YouTube video. This full walkthrough shows you how to build an n8n AI automation workflow that generates on-brand YouTube thumbnails using Google Nano Banana Pro / Google Gemini AI - completely hands-free.

Every time you upload a video, the workflow fetches the transcript, cleans up ASR errors, uses AI to generate a thumbnail prompt based on your brand guidelines, composites your avatar onto the image, and uploads the final thumbnail to Google Drive - all automatically.

🎯 WHAT YOU'LL LEARN
• How to connect n8n to the YouTube Data API to fetch video metadata and transcripts
• How to automatically clean and fix ASR transcript errors (like n8n being misread as 'NAT' or 'a10')
• How to use an LLM Chain node in n8n with Google Nano Banana Pro 2 to generate titles, descriptions, tags, and hashtags
• How to build a full AI image generation pipeline inside n8n using Gemini
• How to handle base64 image encoding and convert it to a usable binary file
• How to upload the generated thumbnail directly to Google Drive
• How to track thumbnail generation status in Google Sheets to avoid duplicates
• How to set up HTTP bearer auth and basic auth for external APIs inside n8n

🛠️ TOOLS USED IN THIS WORKFLOW
• n8n (self-hosted on Oracle Cloud)
• Google Gemini / Google Nano Banana Pro / Google Nano Banana 2 (LLM + Gemini image generation)
• YouTube Data API v3
• Google Sheets (input tracking and duplicate filtering)
• Google Drive (thumbnail storage)
• HTTP Request node (custom Gemini API calls)

📋 PREREQUISITES
• n8n instance (cloud or self-hosted)
• Google Cloud account with Gemini API enabled
• YouTube Data API credentials
• Google Sheets and Google Drive connected to n8n
• A brand avatar image hosted or stored accessibly

💰 COST BREAKDOWN
• n8n: Free (self-hosted) or from $20/month (cloud)
• Gemini API: Pay-per-use - image generation cost is minimal per thumbnail
• YouTube Data API: Free (10,000 units/day on free tier)
• Google Sheets and Drive: Free

🤖 HOW THE WORKFLOW WORKS
1. Paste your YouTube video ID into a Google Sheet (upload as Unlisted first)
2. n8n fetches the video metadata and transcript via the YouTube API
3. AI node cleans the ASR text and fixes common speech recognition errors
4. An AI agent generates a detailed thumbnail prompt using your brand guidelines and visual context
5. Google Nano Banana 2 composites the thumbnail using your avatar as a reference image - it places your avatar consistently rather than generating a new person
6. The base64 image response is converted to a binary file
7. The final thumbnail is uploaded to a Google Drive folder
8. Google Sheets status is updated to 'thumbnail created'

⚡ PRO TIPS FROM THIS VIDEO
• Upload videos as Unlisted first to grab the video ID before going public
• Use a Set node to inject a hardcoded image prompt during testing - makes iteration much faster
• Gemini acts as a compositor, not a pure generator - it uses your avatar reference images to ensure consistent branding across all thumbnails
• Use Google Sheets filtering before the YouTube API call to skip videos that already have a thumbnail generated

📺 CHAPTERS:
0:00 The 45-Minute Canva Problem
1:02 Full Workflow Overview
5:12 Google Sheets & Trigger Setup
7:15 YouTube API Node Configuration
10:23 HTTP Auth & API Credentials
13:26 ASR Transcript Cleanup Node
15:27 AI Metadata Generation with Google Nano Banana 2
19:40 AI Agent & Thumbnail Prompt Builder
24:50 Fetching Avatar & Reference Images
29:05 Google Nano Banana Image Generation via HTTP
33:25 Base64 Conversion & Google Drive Upload
37:29 Results, Live Demo & Recap

📥 Helpful Links:
🛠️ Get the AI System from this video → https://store.genaiunplugged.com/
▶️ Watch the Full n8n Zero to Hero Course Playlist → https://tinyurl.com/3rw3x6hy
🌐 Subscribe to GenAI Unplugged Substack → https://genaiunplugged.substack.com/
🤝 Let's connect on LinkedIn →   / dheerajsharma14  
📚 Browse all my courses → https://genaiunplugged.com/

🙌 Like this video? Here's what to do next:
✅ Hit thumbs up to support the channel
✅ Subscribe for weekly n8n automation tutorials & lessons
✅ Drop a comment: What workflow would you like me to build next?

#aiautomation #n8ntutorial #youtubethumbnail