Skip to main content

WordPress SEO publisher with Anthropic AI, Google Docs & media auto

Workflow preview

Workflow preview
100%
WordPress SEO publisher with Anthropic AI, Google Docs & media auto preview
Open on n8n.io

Important notice

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

1. Workflow Overview

What this workflow does This workflow turns a spreadsheet row into a fully formatted, media rich WordPress article. It pulls the outline and brand context from Google Sheets/Docs, drafts the art...

Best for

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

Tools used

@n8n/n8n-nodes-langchain.agent, n8n-nodes-base.googlesheets, n8n-nodes-base.googledocs, @n8n/n8n-nodes-langchain.lmchatanthropic, @n8n/n8n-nodes-langchain.lmchatgooglegemini, n8n-nodes-base.webhook, n8n-nodes-base.httprequesttool, @n8n/n8n-nodes-langchain.chainllm

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
WordPress SEO publisher with Anthropic AI, Google Docs & media auto
Workflow name
WordPress SEO publisher with Anthropic AI, Google Docs & media auto

📄 What this workflow does

This workflow turns a spreadsheet row into a fully formatted, media-rich WordPress article. It pulls the outline and brand context from Google Sheets/Docs, drafts the article with Anthropic or Gemini, enriches it with internal links, converts it to WordPress-ready HTML, uploads images to the WordPress Media Library, and updates your Google Sheet with links and statuses. Optionally, it can create WooCommerce products (kept disabled by default).

👤 Who is this for

  • Content & SEO teams who publish long-form articles at scale.
  • E-commerce teams creating product blogs/landing pages with galleries.
  • Agencies and freelancers who want a repeatable, trackable content pipeline.
  • Founders/marketers who want “brief → draft → images → publish” in one click.

✅ Requirements

  • Google Sheets (content tracker with columns like Title, Query, Outline Link, Image Links, Status).
  • Google Docs (for outline sources and saving final content).
  • Anthropic &/or Gemini API access (drafting + transformations).
  • WordPress site with REST API enabled (Basic/App Password auth) to upload media (and optionally create posts/products).
  • SerpAPI key (for Google Images cover search) — optional; can be removed.
  • (Optional) Perplexity API if you want the “read official docs once” tool for specs.

⚙️ How to set up

  • Connect Google Sheets and select your tracking sheet/tab.
  • Connect Google Docs (for reading the outline and saving the final article).
  • Add Anthropic and/or Gemini credentials in n8n.
  • Add WordPress credentials (REST API) in the HTTP Request nodes used for media upload (and product/post creation if enabled).
  • (Optional) Add SerpAPI key for the image-cover search node.
  • (Optional) Add Perplexity key in the Sonar node if you’ll parse official docs/specs.
  • Publish/enable the Webhook (or your trigger), then test with a sample row (Status Writing = “Run”).

🔁 How it works

  1. Trigger → Get Info (Sheets): Picks the next row marked to run and sets “Processing.”
  2. Fetch Outline (Docs): Opens the outline link from the sheet.
  3. Content Outline Generator & On-page (Anthropic/Gemini): Writes the article using brand context, E-E-A-T rules, and (optionally) reads official docs once via Perplexity Sonar.
  4. Previous Posts → Aggregate → Add Internal Links (Gemini): Loads summaries/keywords of prior posts and injects at least 5 high-relevance internal links into the draft.
  5. HTML Version: Converts the draft to strict WordPress-ready HTML (H1–H4, justified paragraphs, links, lists, blockquotes).
  6. Post image to WordPress (sub-flow)
  • Image Covers (SerpAPI): Finds a cover image by query.
  • Google Sheets + Code: Parses Image Links and Product Image columns; converts Google Drive shares into direct downloads.
  • Split & HTTP Requests: Downloads each image and uploads to WordPress Media Library.
  • Aggregate + Code: Builds an HTML gallery snippet from uploaded URLs.
  1. Update Google Doc: Inserts the final article content into a Google Doc and stores the link.
  2. Merge → Update Status to Sheet: Writes back Content Final, Outline Link, statuses (Draft/Complete), and any media links.
  3. (Optional) Create WooCommerce Product: Disabled by default—enable if you want automatic product creation using the article HTML and gallery.

💡 About Margin AI

Margin AI is an AI-services agency that acts as your AI Service Companion. We design intelligent, human-centric automation solutions—turning your team’s best practices into scalable workflows and tools. Industries like marketing, sales, and operations benefit from our tailored AI consulting, automation tools, and chatbot development.

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 - Content Outline Generator & On-page

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.7

Block 2 - Get Info

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

Block 3 - Fetch Outline

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

Block 4 - Create Docs: Save Content

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

Block 5 - Anthropic Chat Model1

Type / Role
@n8n/n8n-nodes-langchain.lmChatAnthropic - lmChatAnthropic
Config choices
Version 1.3

Block 6 - Google Gemini Chat Model4

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 7 - Webhook1

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

Block 8 - Perplexity_Sonar_Pro1

Type / Role
n8n-nodes-base.httpRequestTool - httpRequestTool
Config choices
Version 4.2

Block 9 - Update to Sheet

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

Block 10 - Update Google Doc

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

Block 11 - Update Status to Sheet

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

Block 12 - HTML Version

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.6

Block 13 - Add Internal Links

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.6

Block 14 - Aggregate4

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

Block 15 - Previous Posts1

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

Block 16 - Image Covers1

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

Block 17 - HTTP Request4

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

Block 18 - HTTP Request6

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

Block 19 - Code3

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

Block 20 - Split Out2

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

Block 21 - Aggregate5

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

Block 22 - Code4

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

Block 23 - Merge1

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.1

Block 24 - Aggregate6

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

Showing the first 24 of 41 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow WordPress SEO publisher with Anthropic AI, Google Docs & media auto
Complexity advanced
Nodes 41
Categories Content Creation, Multimodal AI
Author Cong Nguyen
Published 04 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8253/8253.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 WordPress SEO publisher with Anthropic AI, Google Docs & media auto do?

What this workflow does This workflow turns a spreadsheet row into a fully formatted, media rich WordPress article. It pulls the outline and brand context from Google Sheets/Docs, drafts the art...

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.