Skip to main content

Create blog posts from YouTube videos with Mistral AI & Gemini image generation

Workflow preview

Workflow preview
100%
Create blog posts from YouTube videos with Mistral AI & Gemini image generation preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Description This template automates the process of creating blog posts from YouTube videos using Mistral AI for text generation and Gemini for image generation. It provides a seamless workflow that...

Best for

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

Tools used

@n8n/n8n-nodes-langchain.agent, n8n-nodes-base.splitout, n8n-nodes-base.merge, n8n-nodes-base.aggregate, n8n-nodes-base.editimage, n8n-nodes-base.httprequest, n8n-nodes-base.rssfeedreadtrigger, n8n-nodes-base.code

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Create blog posts from YouTube videos with Mistral AI & Gemini image generation
Workflow name
Create blog posts from YouTube videos with Mistral AI & Gemini image generation

Description

This template automates the process of creating blog posts from YouTube videos using Mistral AI for text generation and Gemini for image generation. It provides a seamless workflow that transforms YouTube content into ready-to-publish articles complete with engaging visuals.

⚠️ Disclaimer: This template can only be used on self-hosted n8n instances. It also relies on community nodes, which must be installed before running the workflow.

Workflow Overview

YouTube Data Extraction – Retrieves video details (title, description, and transcript).

Content Summarization – Mistral AI rewrites and structures the transcript into a blog-ready format.

Image Generation – Gemini creates relevant, high-quality images to complement the article.

Post Assembly – The workflow automatically combines the generated text and visuals into a structured blog post.

Features

Extract video details and transcripts directly from YouTube.

Summarize and rewrite content into blog posts using Mistral AI.

Generate relevant images with Gemini for engaging visuals.

Automatically structure blog posts for publishing.

Requirements

Before using this template, ensure you have:

An active self-hosted n8n instance.

API keys for OpenRouter (Mistral AI) and Gemini.

The required community nodes installed.

Access to public or unlisted YouTube videos.

Setup Instructions

Import the template into your self-hosted n8n instance.

Configure the API credentials:

Add your OpenRouter API key.

Add your Gemini API key.

Replace placeholder domains or webhook URLs with your own.

Run the workflow with a sample YouTube video URL.

Review the generated blog post and images.

Customization

Content length: Adjust prompt settings in the Mistral AI node.

Tone of voice: Modify prompts for formal, casual, or technical style.

Image style: Update Gemini requests to change the look and feel.

Publishing: Connect to your CMS (e.g., WordPress, Ghost) for direct publishing.

How YouTube is Involved

The workflow starts with a YouTube video URL, extracts metadata and transcripts, and then transforms this raw content into a complete blog post enriched with AI-generated images.

WorkFlow:

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 - Table of Contents

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.7

Block 2 - Split Out1

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

Block 3 - Generate the Content

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.7

Block 4 - Merge

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3

Block 5 - Aggregate1

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

Block 6 - Content Editor

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.7

Block 7 - Resize Image

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

Block 8 - Upload Image To WP

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

Block 9 - Set Featured Image

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

Block 10 - Check Youtube Channel

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

Block 11 - Get Transcript

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

Block 12 - Clean Data

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 13 - Search in Tavily

Type / Role
@tavily/n8n-nodes-tavily.tavilyTool - tavilyTool
Config choices
Version 1

Block 14 - Search intent and style

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.1

Block 15 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 16 - EEAT

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.1

Block 17 - Structured Output Parser1

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 18 - Create the Sections

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.7

Block 19 - Schedule Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 20 - Get row(s) in sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 21 - Generate Blog Metadata

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.1

Block 22 - Structured Output Parser2

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 23 - Generate Image Prompt + Alt Text

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.1

Block 24 - Structured Output Parser3

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Showing the first 24 of 56 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Create blog posts from YouTube videos with Mistral AI & Gemini image generation
Complexity advanced
Nodes 56
Categories Content Creation, Multimodal AI
Author Zakwan
Published 02 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8190/8190.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 Create blog posts from YouTube videos with Mistral AI & Gemini image generation do?

Description This template automates the process of creating blog posts from YouTube videos using Mistral AI for text generation and Gemini for image generation. It provides a seamless workflow that...

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.