Skip to main content

Generate monthly AI SEO content with Gemini for WordPress, LinkedIn and socials

Workflow preview

Workflow preview
100%
Generate monthly AI SEO content with Gemini for WordPress, LinkedIn and socials preview
Open on n8n.io

1. Workflow Overview

Monthly AI SEO Content Engine: 34 Assets to WordPress, LinkedIn & Socials Summary This workflow is an end to end, enterprise grade content engine. It automates the entire lifecycle of a brand's con...

Best for

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

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.formtrigger, n8n-nodes-base.code, n8n-nodes-base.converttofile, n8n-nodes-base.googledrive, n8n-nodes-base.httprequest, n8n-nodes-base.merge, n8n-nodes-base.if

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Tricore Infotech Pvt Ltd.

Original n8n.io source

1.1 Workflow description

Title
Generate monthly AI SEO content with Gemini for WordPress, LinkedIn and socials
Workflow name
Generate monthly AI SEO content with Gemini for WordPress, LinkedIn and socials

Monthly AI SEO Content Engine: 34 Assets to WordPress, LinkedIn & Socials

Summary

This workflow is an end-to-end, enterprise-grade content engine. It automates the entire lifecycle of a brand's content marketing: capturing business context via an n8n Form Trigger to generate a master strategy document, using real-time analytics to write 34 targeted assets, packaging them into a styled .docx file for review, and automatically generating images to publish the content across WordPress, LinkedIn, Facebook, and Instagram.

Key features

  • Automated Brand Strategy: Uses an n8n Form Trigger to capture business details and generates a 16-section master Markdown strategy document saved to Google Drive.
  • Data-Driven Content Planning: Integrates Google Analytics 4 (GA4) and localized Google Trends to identify content gaps (high-bounce pages) and rising topics to inform the content plan.
  • High-Volume AI Generation: Leverages native n8n Google Gemini nodes to write 34 distinct assets per run: 6 SEO blogs, 12 LinkedIn posts, 8 educational social posts, 4 newsletters, and 4 long-form guides.
  • Native Document Assembly: Bypasses basic text outputs by dynamically assembling the generated content into a professionally styled, downloadable Microsoft Word (.docx) package with a generated table of contents.
  • AI Image Generation: Uses Google Gemini 2.5 Flash Image to generate custom, photorealistic featured images and social media graphics for every post natively within the flow.
  • Omnichannel Publishing: Parses the finalized .docx file, extracts the targeted content, and schedules it automatically to WordPress, LinkedIn, Facebook Pages, and Instagram Business with clamped timestamp validation.
  • Automated Error Logging & Alerts: Built-in error trapping that sends a detailed summary to your Gmail if any API fails, or if prerequisite files are missing before publishing begins.

How it works

This template is divided into three distinct pipelines that run sequentially:

1. Pipeline A: Strategy Generation

  • Trigger: An n8n Form Trigger collects the company name, mission, audience, and core services.
  • Process: The native Google Gemini node generates a strict JSON strategy object, which a Code node formats into a comprehensive Markdown document.
  • Storage: The Google Drive node saves this context document directly to the root of your Google Drive.

2. Pipeline B: Content Generation & Assembly

  • Trigger: Triggered manually via the Pipeline B trigger, or swap in a Schedule Trigger to run monthly.
  • Context Gathering: Fetches the Markdown strategy from Drive, pulls the last 30 days of GA4 data, and fetches current Google Trends via RSS.
  • Generation: Google Gemini is prompted in stages: first to build a Content Plan JSON, then to write the batches of blogs, social posts, and guides.
  • Assembly: A robust Code node compiles the raw text into a valid, styled .zip/.docx file and uploads it to the root of your Google Drive.
  • Notification: A Gmail node sends the team an email notification with a direct link to the finalized .docx package.

3. Pipeline C: Multi-Platform Publishing

  • Trigger: Schedule Trigger set to run on the 1st of each month — adjust the time to run after Pipeline B completes.
  • Extraction: Searches Google Drive for the latest .docx package, unzips it, and extracts the raw XML text. (If missing, it safely aborts and alerts you).
  • Processing: Code nodes split the text into individual arrays for Blogs, LinkedIn, and Social posts, safely clamping publish dates to prevent API scheduling errors.
  • Media & Publishing: * Generates an image for each asset using Gemini 2.5 Flash Image.
  • Uploads blog images to WordPress Media and creates a future-dated WordPress post.
  • Publishes text and images natively to LinkedIn, Facebook, and Instagram (via AWS S3 temporary hosting).

Nodes used

  • n8n Form Trigger
  • Schedule Trigger
  • Code (Heavy JavaScript for data merging, XML parsing, and DOCX assembly)
  • Google Gemini (Langchain Native Nodes for Text and Image)
  • Google Drive
  • Google Analytics
  • Gmail
  • LinkedIn
  • Facebook Graph API
  • AWS S3 (Temporary public storage for Instagram image ingestion)
  • Compression, Set, If, Merge, HTTP Request (WordPress API)

Setup instructions

  1. Credentials Setup: You will need active credentials for Google Drive, Google Analytics (OAuth2), Gmail, LinkedIn, Facebook Graph API, AWS S3, and a Google Gemini API key. Your LinkedIn credential must have the openid scope enabled to fetch the user URN dynamically.
  2. Run Pipeline A: Run the n8n Form Trigger manually, fill out your company details, and let it generate your initial Markdown strategy file in the root of your Google Drive.
  3. Configure Pipeline B: Open the Config: Pipeline B node and enter your GA4 Property ID, notification email address, the direct Drive link to the generated Markdown file, and your preferred Google Trends geographic/language codes.
  4. Configure Pipeline C: Open the Config: Pipeline C node and enter your WordPress domain, Facebook Page ID, Instagram Business ID, your S3 bucket details (used to temporarily host images for Instagram), and a notification email address.
  5. WordPress Auth: Ensure your WordPress site has Application Passwords enabled to use Basic Auth for the Upload to WP Media node.
  6. Activate: Turn the workflow on. Pipeline B and C will run automatically on their schedules.

Requirements

  • n8n version 1.60+ (Required for the node types and versions used in this template).
  • AWS S3 bucket with public-read access (Required to host image URLs temporarily so Instagram's Graph API can fetch them).
  • Google Gemini API credentials (Budget for ~100k-150k output tokens per monthly run).
  • Google Workspace (Analytics, Drive, Gmail).
  • WordPress site with Basic Auth enabled.
  • LinkedIn account, Facebook Page, and Instagram Business account.

Customization ideas

  • Adjust Output Volume: Modify the JSON prompt in the Build Content Plan Prompt node to generate weekly content (e.g., 2 blogs, 4 social posts) instead of massive monthly batches.
  • Change the Tone: Update the "Brand Voice" restrictions in the n8n Form Trigger or tweak the system prompts in the Code nodes to match a specific industry style (e.g., highly technical vs. casual).
  • Add Human-in-the-Loop: Replace the direct link between Pipeline B and C with a Wait node that pauses publishing until a manager clicks an approval webhook link sent via email.

Use cases

  • Marketing Agencies: Scaling monthly content deliverables for multiple clients while ensuring the AI strictly adheres to different brand guidelines.
  • SEO Consultants: Automating high-volume, keyword-targeted blog clusters backed by Google Analytics gap data.
  • Lean Startups: Maintaining a massive omnichannel social media and blog presence without hiring a dedicated content team.

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 - 📋 Template · Overview

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

Block 2 - Company Data Form

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

Block 3 - Build Prompt

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

Block 4 - Parse Response

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

Block 5 - Format to Markdown

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

Block 6 - Export MD File

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

Block 7 - Save to Drive

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

Block 8 - Fetch GA Data

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

Block 9 - Fetch Trending Topics

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

Block 10 - Merge Data Sources

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

Block 11 - Compress Brand Context

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

Block 12 - Build Content Plan Prompt

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

Block 13 - Validate Content Plan

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

Block 14 - Build Batch Prompt

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

Block 15 - Build Guides Prompt

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

Block 16 - Parse Content Sections

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

Block 17 - Extract Guides

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

Block 18 - Merge Content Output

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

Block 19 - Build DOCX

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

Block 20 - Upload to Drive

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

Block 21 - Search Drive for DOCX

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

Block 22 - Has DOCX Files?

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

Block 23 - Download DOCX

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

Block 24 - Prepare DOCX Archive

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

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

3. Summary Table

Workflow Generate monthly AI SEO content with Gemini for WordPress, LinkedIn and socials
Complexity advanced
Nodes 72
Categories Content Creation, Multimodal AI
Author Tricore Infotech Pvt Ltd
Published 27 Apr 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15327/15327.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 monthly AI SEO content with Gemini for WordPress, LinkedIn and socials do?

Monthly AI SEO Content Engine: 34 Assets to WordPress, LinkedIn & Socials Summary This workflow is an end to end, enterprise grade content engine. It automates the entire lifecycle of a brand's con...

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.