apicard
Regular Member
- Jul 8, 2024
- 210
- 137
There’s a tool called n8n — think Zapier, but self-hosted and fully scriptable. It runs either free on your own VPS or ~$20–30/month on their cloud. I used it to build a workflow where two AI agents auto-generate SEO content for your WordPress blog.
What’s smart about it:
— Installation:
Step1. You download the .json template file from github repo: https://github.com/apicardcom/n8n-templates/blob/main/auto-wp-ai-poster.json

Step2. You go to your n8n and create a new workflow -> then you click import from a file and choose the .json template file from github.

Now lets configure and connect it to our wordpress, but before that, please read this in order to understand what this tool for and why it may become a money printing machine in right hands.

This isn’t some half-done Zapier flow — this thing writes, formats, uploads images, publishes, and tracks usage — all in one shot. Good for PBN-style setups, parasite SEO, niche sites, whatever.
This is a post example that AI creates and posts on automate ( 1 post is about 0.01$ cost via OpenAI API, you can try gpt 4o it will be less than 0.0001$ per post but post quality will decrease for about 15-20% )

What’s smart about it:
- It scans all your WP categories (even new ones you add later)
- Tracks what’s already been posted using a Postgres table
- Then writes full-length articles for the least-used category
- Includes GPT-generated title, content, cover image, and internal links
— Installation:
Step1. You download the .json template file from github repo: https://github.com/apicardcom/n8n-templates/blob/main/auto-wp-ai-poster.json

Step2. You go to your n8n and create a new workflow -> then you click import from a file and choose the .json template file from github.

Now lets configure and connect it to our wordpress, but before that, please read this in order to understand what this tool for and why it may become a money printing machine in right hands.

This isn’t some half-done Zapier flow — this thing writes, formats, uploads images, publishes, and tracks usage — all in one shot. Good for PBN-style setups, parasite SEO, niche sites, whatever.
What It Actually Does:
- Picks the least-used WordPress category (categories are taken auto from your WP, you can exclude not needed ones) (Postgres tracked)
- Scrapes last 10 published titles for that category (no dupes)
- GPT-4.1 (newest and smartest writer) generates unique expert-level titles
- Then writes full article in WordPress native HTML blocks + in AI Agent node you can configure any recomendations for yoast seo match or structure/design of your WP.
(Tip: For best results, copy your best blog post in raw HTML and send it - along with the existing AI prompt - to ChatGPT. Ask it to generate a new prompt that mimics your unique style and formatting.) - Auto-generates a cover image and uploads it
(Free image placeholder using placehold.co - no need to spend $ on image generation - https://placehold.co/1200x675/FF0000/FFFFFF.png?text=Best%20Mobile%20Apps&font=montserrat or font and colors for your setup) - Publishes directly via /wp-json/wp/v2/posts
- Saves everything back to DB for usage tracking
— Why You’d Use It (Black Hat SEO case)
- Set & forget auto-posting for mass content networks
- Easy to plug into SERP scrapers or expired domain farms
- Works with cloaking, noindex setups, internal link feeders
- Avoids reusing categories and headlines like a brain-dead bot
- Control everything via n8n’s visual editor
— Stack
- n8n (free, https://www.blackhatworld.com/seo/guide-the-most-underrated-way-to-automate-money-in-2025-post-2-self-hosted-n8n-guide.1710134/#post-19212251 or cloud)
- OpenAI API Platform
- PostgreSQL (for content tracking)
- WordPress REST API (with media upload)
- DB creation (simple SQL included)
- 3 credentials in n8n
- 1 line to set your WP domain
This is a post example that AI creates and posts on automate ( 1 post is about 0.01$ cost via OpenAI API, you can try gpt 4o it will be less than 0.0001$ per post but post quality will decrease for about 15-20% )

