Skip to main content

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

Workflow preview

Workflow preview
100%
Create SEO blog drafts in WordPress from trending topics with Perplexity and HuggingFace preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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 ...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.code, n8n-nodes-base.wordpress, n8n-nodes-base.httprequest, n8n-nodes-base.perplexity, n8n-nodes-base.googlesheets, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Nayankumar Thakor.

Original n8n.io source

1.1 Workflow description

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

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

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

Setup steps

  1. Add credentials for Perplexity AI, Google Sheets, WordPress, and HuggingFace
  2. Create a Google Sheet with columns: Topic, is_generated, title, content, keywords, meta_description
  3. Replace YOUR_GOOGLE_SHEET_ID in the Google Sheets nodes with your sheet ID
  4. Replace your-site.com with your WordPress site URL
  5. Replace YOUR_TOKEN_HERE with your HuggingFace API token
  6. 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.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - When clicking 'Execute workflow'

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 2 - Parse Content from string to JSON

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 3 - Create a post

Type / Role
n8n-nodes-base.wordpress - wordpress
Config choices
Version 1

Block 4 - Update name and extension of image

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 5 - Upload image to WP media Library

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 6 - Assign image to an article as a Featured image

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 7 - Find top trending topics

Type / Role
n8n-nodes-base.perplexity - perplexity
Config choices
Version 1

Block 8 - Select a clean trending topic

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 9 - Add topic to Google Sheets

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 10 - Get most recent topics from Google Sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 11 - Generate content and image prompt using Perplexity AI

Type / Role
n8n-nodes-base.perplexity - perplexity
Config choices
Version 1

Block 12 - Update Google Sheet with generated content

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 13 - Generate featured image using HuggingFace FLUX

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 14 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Create SEO blog drafts in WordPress from trending topics with Perplexity and HuggingFace
Complexity advanced
Nodes 18
Categories Content Creation, Multimodal AI
Author Nayankumar Thakor
Published 02 Jan 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/12386/12386.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Create SEO blog drafts in WordPress from trending topics with Perplexity and HuggingFace do?

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 ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.