← All N8N workflows
AI & researchCodeForm TriggerHTTP RequestIfMerge

Write a WordPress post with AI (starting from a few keywords)

Configured with Form Trigger, HTTP Request, Open Ai, Respond To Webhook, and additional nodes. Review the connections and setup before adapting this template.

Workflow preview
TriggerFormForm TriggerTransformSettingsEdit FieldsRoutingCheck data consistencyIfTransformSplit out chaptersSplit OutTransformMerge chapters titleand textMergeCodeFinal article textCodeIntegrationPost on WordpressWordpressWeb / APIUpload mediaHTTP RequestWeb / APISet image ID for thepostHTTP RequestWeb / APIRespond: SuccessRespond To WebhookWeb / APIRespond: ErrorRespond To WebhookAI & modelsGenerate featured imageOpen AiIntegrationWikipediaTool WikipediaAI & modelsCreate post title andstructureOpen AiAI & modelsCreate chapters textOpen Ai

Node categories in this workflow

  • Trigger
  • Transform
  • Routing
  • Code
  • Integration
  • 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
FormTriggerForm TriggerSee node parameters
SettingsTransformEdit FieldsSee node parameters
Check data consistencyRoutingIfSee node parameters
Split out chaptersTransformSplit OutSee node parameters
Merge chapters title and textTransformMergeSee node parameters
Final article textCodeCodeSee node parameters
Post on WordpressIntegrationWordpressSee node parameters
Upload mediaWeb / APIHTTP RequestPOST
Set image ID for the postWeb / APIHTTP RequestPOST
Respond: SuccessWeb / APIRespond To WebhookSee node parameters
Respond: ErrorWeb / APIRespond To WebhookSee node parameters
Generate featured imageAI & modelsOpen Aiimage
WikipediaIntegrationTool WikipediaSee node parameters
Create post title and structureAI & modelsOpen AiSee node parameters
Create chapters textAI & 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

  • openAiApi
  • wordpressApi

Workflow notes

Sticky Note3

Checks that the data returned by OpenAI is correct

Sticky Note9

The article is posted as a draft on WordPress

Sticky Note11

The image is generated with Dall-E, uploaded to WordPress, and then connected to the post as its featured image

Sticky Note12

Starting from the given keywords, generates the article title, subtitle, chapters, and image prompt

Sticky Note13

The user triggers the post creation

Sticky Note14

Final confirmation to the user

Sticky Note6

User is notified to try again since some data is missing

Sticky Note7

Wikipedia is used to write the article

Sticky Note15

Set the URL of your WordPress here

Sticky Note17

Splits out chapter contents from the previous node

Sticky Note18

Writes the text for each chapter

Sticky Note22

Merges the content and prepare it before sending it to WordPress

Write a WordPress post with AI (starting from a few keywords)

Write a WordPress post with AI (starting from a few keywords)

Purpose and structure

This folder contains the Write a WordPress post with AI (starting from a few keywords) workflow. Its executable nodes use code, formTrigger, httpRequest, if, merge, openAi, respondToWebhook, set, splitOut, toolWikipedia, 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

Form

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/Splitout/1753_Splitout_Code_Automation_Webhook.json MIT; preserve source notices.

Canvas section labels

These name areas of the original canvas; they do not include explanatory instructions.

  • Data check
  • Draft on WordPress
  • Featured image
  • Article structure
  • User form
  • User feedback
  • Settings
  • Chapters split
  • Chapters text
  • Content preparation

More in AI & research