Skip to main content

Automate SEO blog creation from trends using Gemini AI, Apify, and Google Docs

Workflow preview

Workflow preview
100%
Automate SEO blog creation from trends using Gemini AI, Apify, and Google Docs preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Automate SEO Blog Creation with Apify + Google Docs + KIE AI’s Nano Banana API Who’s it for For content creators, SEO specialists, and digital marketers who want to automatically generate SEO optim...

Best for

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

Tools used

n8n-nodes-base.scheduletrigger, n8n-nodes-base.httprequest, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatgooglegemini, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.code, n8n-nodes-base.if, n8n-nodes-base.set

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Automate SEO blog creation from trends using Gemini AI, Apify, and Google Docs
Workflow name
Automate SEO blog creation from trends using Gemini AI, Apify, and Google Docs

Automate SEO Blog Creation with Apify + Google Docs + KIE AI’s Nano Banana API

Who’s it for

For content creators, SEO specialists, and digital marketers who want to automatically generate SEO-optimized blog posts from trending topics — no manual writing or formatting required.

How it works / What it does

This workflow turns trending searches into fully structured blog posts using AI:

  1. Fetch trending topics from India (or any country) using Apify’s Google Trends scraper.
  2. Generate a SEO-optimized blog post with title, meta description, headings, and long-form content using Gemini AI.
  3. Refine the System Message (optional) with Gemini AI for better readability and engagement.
  4. Create a custom blog image using KIE AI’s Nano Banana API based on the blog title.
  5. Automatically insert all content and images into a Google Doc, ready for publishing.

How to set up

  1. Add your Apify API token in the Google Trends node.
  2. Configure Google Docs OAuth2 credentials for the document update node.
  3. Add your KIE AI Nano Banana API token for image generation.
  4. Schedule the Daily Trigger to your preferred time (default is 8 AM).

Requirements

  1. Apify API token (for trending search scraping)
  2. Google account with Docs access
  3. KIE AI Nano Banana API token

How to customize the workflow

  1. Change country or timeframe for trending searches.
  2. Update the AI prompt for tone, length, or style of the blog.
  3. Change the Google Doc ID to insert content into a different document.
  4. Adjust image generation settings (size, style) in the KIE AI node.

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 - Daily Trigger 8AM

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

Block 2 - Fetch Google Trends

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

Block 3 - Generate SEO Blog Content

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

Block 4 - Refine Content with Gemini AI

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

Block 5 - Parse Blog Output

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

Block 6 - Format output for Google Docs

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

Block 7 - Update Google Doc

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

Block 8 - Generate Blog Image

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

Block 9 - Check Image Generation Status

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

Block 10 - Is Image Ready?

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

Block 11 - Prepare Image URL for Insert

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

Block 12 - Download Image

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

Block 13 - Wait 5 Second Before Recheck

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

Block 14 - Sticky Note

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

Block 15 - Sticky Note1

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

Block 16 - Sticky Note2

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

Block 17 - Sticky Note - Update Google Doc

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

Block 18 - Sticky Note - Generate Blog Image

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

Block 19 - Sticky Note - Check Image Status

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

Block 20 - Sticky Note - Is Image Ready?

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

Block 21 - Sticky Note - Wait 5 Seconds

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

Block 22 - Sticky Note - Prepare Image URL

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

Block 23 - Sticky Note - Download Image

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

3. Summary Table

Workflow Automate SEO blog creation from trends using Gemini AI, Apify, and Google Docs
Complexity advanced
Nodes 23
Categories Content Creation, Multimodal AI
Author Parth Pansuriya
Published 12 Nov 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10754/10754.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 Automate SEO blog creation from trends using Gemini AI, Apify, and Google Docs do?

Automate SEO Blog Creation with Apify + Google Docs + KIE AI’s Nano Banana API Who’s it for For content creators, SEO specialists, and digital marketers who want to automatically generate SEO optim...

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.