DEV Community

Kjetil Furås
Kjetil Furås

Posted on • Originally published at notipo.com

How to Publish WordPress Posts with OpenClaw (AI Agent Automation)

AI agents are getting good at writing. The missing piece is publishing — getting the generated content from the agent into WordPress with proper formatting, images, and SEO metadata. Most solutions require you to string together Notion APIs, WordPress APIs, image uploads, and SEO plugins yourself. Notipo handles the entire pipeline with a single API call.

This guide shows how to use OpenClaw, the open-source AI agent framework, to publish WordPress blog posts through Notipo. The same approach works with any AI agent or HTTP client — Claude Code, n8n, Make, custom scripts, or anything that can send a POST request.

Why Use Notipo as Your Publishing Engine

Without Notipo, an AI agent that wants to publish to WordPress needs to handle: Notion API authentication and page creation, markdown-to-Gutenberg block conversion, downloading and re-uploading images, generating a featured image, setting SEO metadata across different plugins, and managing post statuses. That's dozens of API calls and edge cases.

With Notipo, the agent sends one POST request with a title and body. Notipo creates the Notion page, converts the markdown, uploads images, generates a featured image, sets SEO metadata, and publishes to WordPress. The agent doesn't need Notion or WordPress credentials — just a Notipo API key.

The API Endpoint

Everything goes through POST /api/posts/create:

curl -X POST https://notipo.com/api/posts/create \
  -H "X-API-Key: your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "10 Productivity Hacks for Remote Developers",
    "body": "## Introduction\n\nRemote work is here to stay.",
    "category": "Productivity",
    "tags": ["remote-work", "productivity"],
    "seoKeyword": "productivity hacks remote developers",
    "slug": "productivity-hacks-remote-developers",
    "publish": true
  }'
Enter fullscreen mode Exit fullscreen mode

What Notipo Does With That Request

  1. Creates a Notion page with the title and markdown body converted to Notion blocks
  2. Inserts inline Unsplash images after specified headings (Pro plan)
  3. Triggers the sync pipeline — Gutenberg block conversion, image downloads, WordPress media uploads
  4. Generates a 1200×628 featured image with the category background and title overlay
  5. Applies SEO metadata — focus keyword, title, description — to Rank Math, Yoast, SEOPress, or AIOSEO
  6. Creates a WordPress draft or publishes live, depending on the publish flag

The agent gets back a jobId immediately. Processing happens in the background.

Using Claude Code

Claude Code can publish to WordPress through Notipo using a simple curl command. Since Claude Code has shell access, it can call the Notipo API directly. Set your API key as an environment variable and Claude Code can publish posts as part of any workflow.

Using n8n with AI Agents

n8n's AI Agent node can generate content using OpenAI, Claude, or any LLM, then send it to Notipo in one HTTP request. The workflow is four nodes:

  1. Trigger — schedule, webhook, or manual
  2. HTTP Request — fetch categories and tags from Notipo
  3. AI Agent — generate title, body, SEO keyword, category, tags
  4. HTTP Request — POST /api/posts/create

Checking Job Status

curl https://notipo.com/api/jobs?limit=1 \
  -H "X-API-Key: your-api-key"

# Response includes:
# - status: COMPLETED or FAILED
# - result.wpUrl: the live WordPress URL
Enter fullscreen mode Exit fullscreen mode

For most use cases, fire-and-forget is fine — Notipo sends failure notifications to your configured webhook.

Getting Started

Sign up for Notipo (free, 7-day Pro trial), connect your Notion database and WordPress site, then grab your API key from Settings → Account. Point your AI agent at POST /api/posts/create and you're publishing.


Originally published at notipo.com/blog/openclaw-wordpress-publishing

Top comments (0)