Generate Articles from Google Sheets to WordPress with Web Scraping and GPT-4 Mini

Go to Workflow
0 views
Built by Automation for you Automation for you
Created on June 05, 2026

Description

πŸ€– 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

πŸ“Š Sheet Monitoring: Watches Google Sheets for rows marked "New" in the Flow Status column
πŸ” Content Processing: Fetches and analyzes source articles using dual AI agents
πŸ€– Article Generation: Creates SEO-optimized articles with proper formatting and structure
🌐 WordPress Integration: Automatically publishes drafts to your WordPress site
βœ… 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
πŸ”„ Clone the workflow into your n8n instance
πŸ”— Connect credentials for Google Sheets, OpenAI, and WordPress
πŸ“„ Update the Google Sheet ID in all Sheet nodes to point to your document
πŸ“Š Configure the sheet columns to match: Topic, Source, Flow Status, Publish Status, Publish Link
πŸ§ͺ 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.

Nodes Used (5)

Code
n8n-nodes-base.code
Google Sheets
n8n-nodes-base.googleSheets
HTTP Request
n8n-nodes-base.httpRequest
OpenAI
@n8n/n8n-nodes-langchain.openAi
Wordpress
n8n-nodes-base.wordpress