Skip to main content

YouTube thumbnail generator with OpenAI & Apify

Workflow preview

Workflow preview
100%
YouTube thumbnail generator with OpenAI & Apify preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This n8n workflow automatically generates a custom YouTube thumbnail using OpenAI’s DALL·E based on a YouTube video’s transcript and title. It uses Apify actors to extract vide...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.set, n8n-nodes-base.stickynote, n8n-nodes-base.formtrigger, n8n-nodes-base.httprequest, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.editimage

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Robert Breen.

Original n8n.io source

1.1 Workflow description

Title
YouTube thumbnail generator with OpenAI & Apify
Workflow name
YouTube thumbnail generator with OpenAI & Apify

This n8n workflow automatically generates a custom YouTube thumbnail using OpenAI’s DALL·E based on a YouTube video’s transcript and title. It uses Apify actors to extract video metadata and transcript, then processes the data into a prompt for DALL·E and creates a high-resolution image for use as a thumbnail.


✅ Key Features

  • 📥 Form Trigger: Accepts a YouTube URL from the user.
  • 🧠 GPT-4o Prompt Creation: Summarizes transcript and title into a descriptive DALL·E prompt.
  • 🎨 DALL·E Image Generation: Produces a clean, minimalist YouTube thumbnail with OpenAI’s image model.
  • 🪄 Automatic Image Resizing: Resizes final image to YouTube specs (1280x720).
  • 🔍 Apify Integration: Uses two Apify actors:
    • Youtube-Transcript-Scraper to extract transcript
    • youtube-scraper to get video metadata like title, channel, etc.

🧰 What You'll Need

  • OpenAI API Key
  • Apify Account & API Token
  • YouTube video URL
  • n8n instance (cloud or self-hosted)

🔧 Step-by-Step Setup

1️⃣ Form & Parameter Assignment
  • Node: Form Trigger
  • How it works: Collects the YouTube URL via a form embedded in your n8n instance.
  • API Required: None
  • Additional Node: Set
    • Converts the single input URL into the format Apify expects: an array of { url } objects.
2️⃣ Apify Actors for Data Extraction
  • Node: HTTP Request (Query Metadata)
    • URL: https://api.apify.com/v2/acts/streamers~youtube-scraper/run-sync-get-dataset-items
    • Payload: JSON with startUrls array and filtering options like maxResults, isHD, etc.
  • Node: HTTP Request (Query Transcript)
    • URL: https://api.apify.com/v2/acts/topaz_sharingan~Youtube-Transcript-Scraper/run-sync-get-dataset-items
    • Payload: startUrls array
  • API Required: Apify API Token (via HTTP Query Auth)
  • Notes: You must have an Apify account and actor credits to use these actors.
3️⃣ OpenAI GPT-4o & DALL·E Generation
  • Node: OpenAI (Prompt Creator)
    • Uses the transcript and title to generate a DALL·E-compatible visual prompt.
  • Node: OpenAI (Image Generator)
    • Resource: image
    • Model: DALL·E (default with GPT-4o key)
  • API Required: OpenAI API Key
  • Prompt Strategy:
Create a minimalist YouTube thumbnail in an illustration style. The background should be a very simple, uncluttered setting with soft, ambient lighting that subtly reflects the essence of the transcript. The overall mood should be professional and non-cluttered, ensuring that the text overlay stands out without distraction. Do not include any text.
4️⃣ Resize for YouTube Format
  • Node: Edit Image
  • Purpose: Resize final image to 1280x720 with ignoreAspectRatio set to true.
  • No API required — this runs entirely in n8n.

👤 Created By

Robert Breen
Automation Consultant | AI Workflow Designer | n8n Expert
📧 [email protected]
🌐 ynteractive.com
🔗 LinkedIn


🏷️ Tags

openai dalle youtube thumbnail generator apify ai automation image generation illustration prompt engineering gpt-4o

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Assign parameters

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 2 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Get URL

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.2

Block 8 - Query Metadata

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 9 - Query Transcript

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 10 - Image Prompt Generator

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 11 - Create Image

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 12 - Resize Image

Type / Role
n8n-nodes-base.editImage - editImage
Config choices
Version 1

3. Summary Table

Workflow YouTube thumbnail generator with OpenAI & Apify
Complexity intermediate
Nodes 12
Categories Content Creation, Multimodal AI
Author Robert Breen
Published 04 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6985/6985.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does YouTube thumbnail generator with OpenAI & Apify do?

This n8n workflow automatically generates a custom YouTube thumbnail using OpenAI’s DALL·E based on a YouTube video’s transcript and title. It uses Apify actors to extract vide...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.