← All N8N workflows
AI & researchCodeGoogle SheetsHTTP RequestManual TriggerOpen Ai

Automated Content Generation & Publishing - Wordpress

Configured with Google Sheets, HTTP Request, Open Ai, Schedule Trigger, and additional nodes. Review the connections and setup before adapting this template.

Workflow preview
IntegrationCreate posts onWordpressWordpressCodeProcessing DelayCodeWaitRandom WaitWaitData storeSave to SheetGoogle SheetsTrigger1. Auto StartSchedule TriggerTrigger2. When clicking ‘Testworkflow’Manual TriggerTrigger3. Schedule Your PostsSchedule TriggerWeb / APIAutomated ImageRetrieval from PexelsHTTP RequestAI & modelsGenerate AI ContentOpen Ai

Node categories in this workflow

  • Integration
  • Code
  • Wait
  • Data store
  • Trigger
  • Web / API
  • AI & models

Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.

Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.

How it works

The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.

Workflow node names, types, and operations
NodeCategoryTypeOperation
Create posts on WordpressIntegrationWordpressSee node parameters
Processing DelayCodeCodeSee node parameters
Random WaitWaitWaitSee node parameters
Save to SheetData storeGoogle Sheetsappend
1. Auto StartTriggerSchedule TriggerSee node parameters
2. When clicking ‘Test workflow’TriggerManual TriggerSee node parameters
3. Schedule Your PostsTriggerSchedule TriggerSee node parameters
Automated Image Retrieval from PexelsWeb / APIHTTP RequestSee node parameters
Generate AI ContentAI & modelsOpen AiSee node parameters

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.

Requirements

An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.

Credential types declared in the source

  • googleSheetsOAuth2Api
  • openAiApi
  • wordpressApi

Workflow notes

Automated Article Scheduling

Automated Article Scheduling

1. Fast Bulk Article Generation Quickly create multiple AI-generated articles. Efficiently streamline content creation. Reduces manual effort while maintaining quality.

2. Workflow Testing Before Execution Manually test the workflow for debugging. Ensure each step runs as expected. Optimize before full automation.

3. Automated & Randomized Publishing Schedule posts at predefined intervals. Introduce random delays for a natural posting pattern. Prevents overly predictable publishing behavior.

AI Content Generating

AI Content Generating

**Automatic Content & Keyword Generation

  • Use your own prompt to start
  • ChatGPT generates full-length articles with structured headings.
  • Extracts relevant image search keywords for visual enhancement.
  • To implement this, add the following prompt (green note) below your workflow:
**Final JSON Format

(YOUR PROMPT)

Image Search Keywords (For Visual Alignment)

  • Automatically generates 3-5 English keywords for image searches based on the article content.
  • Keywords should be specific objects, locations, or atmospheres rather than abstract concepts.

Article Formatting Requirements

1️⃣ Title (H1): Ensure unique and trend-driven headlines. 2️⃣ H2 / H3 Subheadings: Structure content in an SEO-optimized format. 3️⃣ Article Structure (Enhanced Readability)

** Introduction **

  • Go straight to the point, avoiding excessive background.
  • Use question hooks or market trend data to engage readers.

** Core Content **

  • Include at least three knowledge points to ensure depth.
  • Balance short and long sentences for better flow.

** Conclusion **

  • Avoid generic AI-style summaries; instead, provide insights or actionable takeaways.
  • Optionally include a CTA (Call to Action).

** HTML Formatting ** Ensure the article is properly structured in HTML format:

  • Headings: Use , , appropriately.
  • Paragraphs: Enclose text within .
  • Emphasized Words: Use to highlight key terms.
  • Lists: Use and for bullet points.

Ensure a clean, well-structured output instead of plain text.

**Final JSON Format

Ensure the output follows this structure:

{ "title": "{Generate an H1 title that aligns with market trends, ensures high click-through rates, and follows keyword strategy}", "content": "{Generate a complete HTML article including H1, H2, H3 headings, paragraphs, lists, etc.}", "keywords": ["{Image search keyword 1}", "{Image search keyword 2}", "{Image search keyword 3}", "{Image search keyword 4}", "{Image search keyword 5}"] }

Google Sheet Setting

Google Sheet Setting

You need to set up these in your sheet column

  • title
  • content
  • image search keyword

Mapping "Values to Send"

  • {{ $json.message.content.title }}
  • {{ $json.message.content.content }}
  • {{ $json.message.content.keywords.join("+") }}
Introduction: WordPress automatically publishes posts and inserts the first image

Introduction: WordPress automatically publishes posts and inserts the first image

It is highly recommended to install the Featured Image from URL (FIFU) plugin and enable:

Auto > Set Featured Media Automatically from Content. before you generate contents.

Sticky Note5

Add your API credential

Automated Content Generation & Publishing - Wordpress

Automated Content Generation & Publishing - Wordpress

Purpose and structure

This folder contains the Automated Content Generation & Publishing - Wordpress workflow. Its executable nodes use code, googleSheets, httpRequest, manualTrigger, openAi, scheduleTrigger, wait, wordpress. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.

Setup

Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.

Entry points

  1. Auto Start, 2. When clicking ‘Test workflow’, 3. Schedule Your Posts

Verification

Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.

Attribution

https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Wait/1771_Wait_Code_Automate_Webhook.json MIT; preserve source notices.

More in AI & research