Create SEO blog drafts in WordPress from trending topics with Perplexity and HuggingFace

Go to Workflow
2 views
Built by Nayankumar Thakor Nayankumar Thakor
Created on June 13, 2026

Description

Automatically discover trending developer and security topics, generate SEO-optimized blog posts, and publish them to WordPress as drafts — complete with AI-generated featured images.

How it works
Discover trends — Perplexity AI identifies the hottest topic from the last 24-48 hours
Queue topics — Topics are saved to Google Sheets for tracking and management
Generate content — Perplexity creates complete blog posts with titles, sections, keywords, and meta descriptions
Create draft — Content is published as a WordPress draft for your review
Generate image — HuggingFace FLUX creates a featured image based on the content
Attach media — The image is uploaded to WordPress and assigned to the post

Setup steps
Add credentials for Perplexity AI, Google Sheets, WordPress, and HuggingFace
Create a Google Sheet with columns: Topic, is_generated, title, content, keywords, meta_description
Replace YOUR_GOOGLE_SHEET_ID in the Google Sheets nodes with your sheet ID
Replace your-site.com with your WordPress site URL
Replace YOUR_TOKEN_HERE with your HuggingFace API token
Update the authorId in the WordPress node to match your author

Tools used
Perplexity AI** — Trend discovery and content generation
Google Sheets** — Topic queue and workflow tracking
WordPress REST API** — Post creation and media uploads
HuggingFace FLUX** — AI image generation

Ideal for developers, content marketers, and agencies who want automated content pipelines with editorial control.

Nodes Used (5)

Code
n8n-nodes-base.code
Google Sheets
n8n-nodes-base.googleSheets
HTTP Request
n8n-nodes-base.httpRequest
Perplexity
n8n-nodes-base.perplexity
Wordpress
n8n-nodes-base.wordpress