Skip to main content

Generate SEO-optimized blog content with Google Gemini, RSS feeds and Telegram

Workflow preview

Workflow preview
100%
Generate SEO-optimized blog content with Google Gemini, RSS feeds and Telegram preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Workflow Objective This n8n workflow automates the entire content creation process by monitoring specified RSS feeds for new articles. It then leverages Google Gemini AI to generate comprehensive, ...

Best for

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

Tools used

n8n-nodes-base.merge, @n8n/n8n-nodes-langchain.googlegemini, n8n-nodes-base.code, n8n-nodes-base.set, n8n-nodes-base.s3, n8n-nodes-base.if, n8n-nodes-base.awsdynamodb, n8n-nodes-base.splitinbatches

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Generate SEO-optimized blog content with Google Gemini, RSS feeds and Telegram
Workflow name
Generate SEO-optimized blog content with Google Gemini, RSS feeds and Telegram

### Workflow Objective

This n8n workflow automates the entire content creation process by monitoring specified RSS feeds for new articles. It then leverages Google Gemini AI to generate comprehensive, SEO-optimized blog posts inspired by these articles, creates unique cover images, and distributes the final content as a JSON file to stakeholders via Telegram. The primary goal is to automate the end-to-end content pipeline, saving significant time and ensuring a consistent output of high-quality content.

Step-by-Step Breakdown

  1. Monitor News Sources (RSS Triggers):

    • The workflow is triggered periodically (e.g., hourly, weekly) by multiple RSS Feed nodes that monitor sources like "Search Engine Journal" and "Tech Crunch" for new publications.
  2. Prevent Duplicate Content (Deduplication):

    • For each new article fetched from the RSS feeds, the workflow checks an AWS DynamoDB database to see if the article's URL has been processed before.
    • If the link already exists in the database, the process for that item is halted, and a debug notification is sent to Telegram via the "Telegram Debugger" node. This prevents the generation of duplicate content.
  3. AI-Powered Content Generation (Gemini Content Generation):

    • If the article is new, its link is passed to a Google Gemini node.
    • Using a highly detailed and structured prompt, Gemini generates a complete blog post in a specific JSON format. This output includes a title, meta description, SEO-friendly slug, a descriptive prompt for generating a cover image, and the full markdown body of the article (including an introduction, subheadings, conclusion, FAQ section, etc.).
  4. Data Cleaning and Parsing (JSON Parser):

    • The raw text response from the AI is processed by a "Code" node. This custom script cleans the output—removing markdown code blocks, fixing potential syntax errors—and reliably parses it into a valid JSON object, ensuring the data is clean for subsequent steps.
  5. Image Generation and Cloud Storage:

    • The image_generation_prompt from the parsed JSON is sent to another Google Gemini node configured for image generation, creating a 1200x630 cover image for the blog post.
    • The newly created image is renamed using the slug.
    • Finally, the image is uploaded to a cloud storage service like 对象存储. If the upload fails, an error message is sent to Telegram.
  6. Final Data Assembly and Distribution:

    • The generated text content is merged with the URL of the uploaded image to create the final, complete blog post data object.
    • This entire data structure is converted into a JSON file, named using the format [slug].json.
    • In the final step, this JSON file is sent as a document to designated recipients User via the Telegram nodes.

Technologies and Services Used

  • Trigger: RSS Feed Reader
  • Artificial Intelligence: Google Gemini (for both text and image generation)
  • Database: AWS DynamoDB (for content deduplication)
  • Cloud Storage: 对象存储 (S3-compatible)
  • Notification & Distribution: Telegram
  • Data Processing: n8n's native nodes (Merge, If, Set, Code)

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 - Merge

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

Block 2 - Merge1

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

Block 3 - Gemini Content Generation

Type / Role
@n8n/n8n-nodes-langchain.googleGemini - googleGemini
Config choices
Version 1

Block 4 - Json Parser

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

Block 5 - Slug Selector

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

Block 6 - Generate Image

Type / Role
@n8n/n8n-nodes-langchain.googleGemini - googleGemini
Config choices
Version 1

Block 7 - Image Renamer

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

Block 8 - Upload Image to 对象存储 Storage

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

Block 9 - If Statement

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

Block 10 - If Statement2

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

Block 11 - Get an item

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

Block 12 - Loop Over Items1

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

Block 13 - Loop Over Items

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

Block 14 - Loop Over Items2

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

Block 15 - Create or update an item

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

Block 16 - Merge3

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

Block 17 - If

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

Block 18 - Last Content Detection

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

Block 19 - Telegram Debugger

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

Block 20 - Telegram Debugger1

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

Block 21 - Telegram Debugger2

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

Block 22 - Convert to File

Type / Role
n8n-nodes-base.convertToFile - convertToFile
Config choices
Version 1.1

Block 23 - RSS 1

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

Block 24 - RSS 2

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

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

3. Summary Table

Workflow Generate SEO-optimized blog content with Google Gemini, RSS feeds and Telegram
Complexity advanced
Nodes 27
Categories Content Creation, Multimodal AI
Author Baris Cem Ant
Published 08 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8363/8363.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 Generate SEO-optimized blog content with Google Gemini, RSS feeds and Telegram do?

Workflow Objective This n8n workflow automates the entire content creation process by monitoring specified RSS feeds for new articles. It then leverages Google Gemini AI to generate comprehensive, ...

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.