🎬 Automate blog content creation from topics to WordPress with AI, Google Drive & Sheets

⚑ 616 views · 🎬 Content Creation & Video

Description

Blog Post Content Creation (Multi-Topic with Brand Research, Google Drive, and WordPress)

Description

This workflow automates the full lifecycle of generating and publishing SEO-optimized blog posts from a list of topics. It reads topics (and optionally brands) from Google Sheets, performs brand research, generates a structured HTML article via AI, converts it into an HTML file for Google Drive, publishes a draft post on WordPress, and repeats this for every row in the sheet.

When the final topic has been processed, a single Slack message is sent to confirm completion and share links.

How It Works

1. Input from Google Sheets

A Google Sheets node reads rows containing at least:

A Split In Batches node iterates through the rows one by one so each topic is processed independently.

2. Configuration

The Configuration node maps each row’s values into:

These values are used consistently across brand research, content creation, file naming, and WordPress publishing.

3. Brand Research

A Language Model Chain node calls an OpenRouter model to gather background information about the brand and its services.

The brand context is used as input for better, on-brand content generation.

4. Content Creation

A second Language Model Chain node uses the brand research and the blog title or topic to generate a full-length, SEO-friendly blog article.

Output is clean HTML with:

5. HTML Processing

A Code node in JavaScript:

6. Upload to Google Drive

A Google Drive node uploads the generated HTML file to a specified folder.

Each topic creates its own HTML file, named after the blog title.

7. Publish to WordPress

An HTTP Request node calls the WordPress REST API to create a post.

The post content is the generated HTML, and the title comes from the Configuration node.
By default, the post is created with status draft (can be changed to publish if desired).

8. Loop Control and Slack Notification

After each topic is processed (Drive upload and WordPress draft), the workflow loops back to Split In Batches to process the next row.

When there are no rows left, an IF node detects that the loop has finished.

Only then is a single Slack message sent to:

Integrations Used

Ideal Use Case

Setup Instructions

Google Sheets

OpenRouter (LLM)

Google Drive

WordPress

Slack

Run the Workflow

πŸ”— Nodes Used

Google Sheets, HTTP Request, Slack, Google Drive, Basic LLM Chain, OpenRouter Chat Model

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup