Publish SEO WordPress blog posts from Google Sheets with OpenAI gpt-4o-mini

Go to Workflow
0 views
Built by Distribution Engine Distribution Engine
Created on August 07, 2026

Description

Quick overview
This workflow runs every 25 minutes to pull a keyword from Google Sheets, generate a Japanese SEO-ready WordPress post with OpenAI, publish it to WordPress, and then write the title, category, URL, and processing timestamps back to the same Google Sheet.

How it works
Runs every 25 minutes on a schedule.
Retrieves the next keyword/topic from a Google Sheets document and sheet named “Keywords”.
Sends the keyword to OpenAI (gpt-4o-mini) to generate a Japanese SEO article as JSON with title, slug, category ID, meta description, and WordPress-ready HTML.
Creates and publishes a new WordPress post using the generated title, slug, category ID, and HTML content.
Appends or updates the matching Google Sheets row (by Keyword) with publish status, post URL, category, and processed/published timestamps.

Setup
Create Google Sheets OAuth credentials in n8n and replace YOUR_GOOGLE_SHEET_ID with your spreadsheet ID.
Ensure your spreadsheet has a sheet named “Keywords” (or update the sheet name) and includes columns like Keyword, Title, Category, Status, PostURL, PublishedDate, Processed, and ProcessedDate.
Add an OpenAI API credential in n8n and choose a model with access equivalent to gpt-4o-mini.
Add WordPress API credentials in n8n and make sure the WordPress REST API is enabled and the target site allows creating posts and assigning categories by ID.

Nodes Used (3)

Google Sheets
n8n-nodes-base.googleSheets
OpenAI
@n8n/n8n-nodes-langchain.openAi
Wordpress
n8n-nodes-base.wordpress