Skip to main content

Generate articles from Google Sheets to WordPress with web scraping and GPT-4 Mini

Workflow preview

Workflow preview
100%
Generate articles from Google Sheets to WordPress with web scraping and GPT-4 Mini preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Automated AI Article Generation from Google Sheets to WordPress Short Description Transform a Google Sheet into an automated content factory! This workflow reads article topics, scrapes sourc...

Best for

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

Tools used

n8n-nodes-base.splitinbatches, n8n-nodes-base.if, n8n-nodes-base.googlesheets, n8n-nodes-base.httprequest, n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.wordpress, 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 Automation for you.

Original n8n.io source

1.1 Workflow description

Title
Generate articles from Google Sheets to WordPress with web scraping and GPT-4 Mini
Workflow name
Generate articles from Google Sheets to WordPress with web scraping and GPT-4 Mini

πŸ€– Automated AI Article Generation from Google Sheets to WordPress

πŸ“ Short Description

Transform a Google Sheet into an automated content factory! This workflow reads article topics, scrapes source content, uses AI to create original articles, and publishes drafts to WordPress automatically. πŸš€

πŸ“– Full Description

This workflow automates the entire content creation pipeline by connecting Google Sheets, web scraping, AI content generation, and WordPress publishing. It's designed for content marketers, bloggers, and news publishers who need to scale their content production efficiently. πŸ’ͺ

The system monitors a Google Sheet for new article ideas, processes source URLs through a dual-AI system for summarization and content creation, then automatically generates WordPress drafts while tracking everything back to the spreadsheet. πŸ“Šβ†’πŸ€–β†’πŸŒ

πŸ‘₯ Who's It For

  • πŸ“ˆ Content marketing agencies managing multiple clients
  • ✍️ Bloggers looking to scale their content output
  • πŸ“° News publishers automating article aggregation
  • πŸ” SEO specialists creating keyword-optimized content
  • 🎯 Digital marketers running content campaigns

βš™οΈ How It Works

  1. πŸ“Š Sheet Monitoring: Watches Google Sheets for rows marked "New" in the Flow Status column
  2. πŸ” Content Processing: Fetches and analyzes source articles using dual AI agents
  3. πŸ€– Article Generation: Creates SEO-optimized articles with proper formatting and structure
  4. 🌐 WordPress Integration: Automatically publishes drafts to your WordPress site
  5. βœ… Status Tracking: Updates the sheet with progress and final draft links

πŸ› οΈ How to Set Up

πŸ“‹ Prerequisites

  • πŸ” Google Sheets API access (OAuth2)
  • 🧠 OpenAI API key
  • 🌐 WordPress REST API credentials
  • πŸ”— Source URLs for article inspiration

⚑ Configuration Steps

  1. πŸ”„ Clone the workflow into your n8n instance
  2. πŸ”— Connect credentials for Google Sheets, OpenAI, and WordPress
  3. πŸ“„ Update the Google Sheet ID in all Sheet nodes to point to your document
  4. πŸ“Š Configure the sheet columns to match: Topic, Source, Flow Status, Publish Status, Publish Link
  5. πŸ§ͺ Test with one row marked as "New" in your sheet

πŸ“‹ Requirements

🧩 n8n Nodes Used

  • πŸ“Š Google Sheets (read/update operations)
  • 🌐 HTTP Request (web scraping)
  • πŸ€– OpenAI/LangChain (AI content processing)
  • 🌐 WordPress (draft creation)
  • πŸ’» Code node (content formatting)
  • βš–οΈ If node (error handling)
  • πŸ”„ SplitInBatches (item processing)

☁️ External Services

  • πŸ“Š Google Sheets with specific column structure
  • 🧠 OpenAI API access
  • 🌐 WordPress installation with REST API enabled

🎨 How to Customize the Workflow

✍️ Content Style Adjustments

Modify the "Article Creator" AI node's system prompt to change:

  • 🎭 Writing tone and style
  • πŸ” SEO keyword density
  • πŸ“‘ Article structure and headings
  • πŸ’¬ Call-to-action format

πŸ” Source Processing

Adjust the "Article Summarizer" node to:

  • πŸ•ΈοΈ Handle different website structures
  • πŸ“ Extract specific content elements
  • πŸ“‹ Modify markdown output format

πŸ“€ Publishing Options

Customize the "Create a Draft" WordPress node to:

  • πŸ“ Change post status from "draft" to "publish"
  • πŸ‘₯ Assign different authors or categories
  • 🏷️ Add custom fields or tags

⚠️ Error Handling

Modify the conditional logic in the "If" node to handle different failure scenarios or add additional validation steps.


ℹ️ Note: This workflow uses community nodes (LangChain/OpenAI) and requires a self-hosted n8n instance.

✨ Workflow features comprehensive error handling, real-time status tracking, and batch processing for efficient content pipeline management.

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 - Loop Over Items

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

Block 2 - If

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

Block 3 - Get New Articles

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

Block 4 - Update Processing

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

Block 5 - Fetch HTML

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

Block 6 - Update Error

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

Block 7 - Sticky Note

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

Block 8 - Article Creator

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

Block 9 - Article Summarizer

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

Block 10 - Sticky Note1

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

Block 11 - Sticky Note2

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

Block 12 - Create a Draft

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

Block 13 - Format Article

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

Block 14 - Update Draft Details

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

Block 15 - Sticky Note3

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

Block 16 - Webhook

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2.1

3. Summary Table

Workflow Generate articles from Google Sheets to WordPress with web scraping and GPT-4 Mini
Complexity advanced
Nodes 16
Categories Content Creation, Multimodal AI
Author Automation for you
Published 25 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8921/8921.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 articles from Google Sheets to WordPress with web scraping and GPT-4 Mini do?

Automated AI Article Generation from Google Sheets to WordPress Short Description Transform a Google Sheet into an automated content factory! This workflow reads article topics, scrapes sourc...

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.