Skip to content

The moment it happens

Create or update posts from a link

Anything you send to your own link becomes a WordPress draft, or updates the existing post with the same slug.

Runs
The moment it happens
Apps
WordPress
AI
Not needed
Access
read+write

Send this to your assistant

Create a ClickRuntime automation: give me a link I can send a title, slug and body to. Create a WordPress draft from it, or update the post if that slug already exists.

Paste it into your assistant. It tells you what it will send or change before it runs live.

First time? Adding ClickRuntime to your assistant takes about two minutes.

Why use it

Why teams use this automation

A lot of content starts somewhere other than the WordPress editor. A form builder collects a testimonial, a newsletter tool finishes a send, a teammate drops notes into a shared doc, and someone then has to copy it across, format it and hit publish. The copy-paste step gets skipped, or it gets done twice and leaves two near-identical posts.

This one gives you a trigger link. Whatever system you point at it sends a title, content and slug, and the moment the request arrives, the automation looks for an existing post with that slug. If it finds one it updates it, and if not it creates a new post.

Developers and no-code builders use it to connect any tool that can send a webhook to WordPress without writing a plugin.

What you get out of it

  • Any tool can publish to the site

    Forms, scripts, spreadsheets and other apps that can call a URL can now create posts, which means your content workflow is not limited to what a plugin supports. That makes WordPress a destination for the whole stack, not only for people who log in.

  • No duplicate posts from re-sends

    Looking the post up by slug first means a retried request or a corrected version updates the existing article instead of creating a second copy for search engines to compare.

  • Corrections go live without logging in

    Fixing a price or typo in the source system can push the change to the live post in seconds, so the site never lags behind the record you actually maintain.

  • Instant, not on a timer

    The post is written when the request arrives, so an event such as an approved press release or a new case study appears on the site immediately. Time-sensitive content such as a release note or event update goes live while it is still news.

  • A clear trail of what arrived

    Each call is a run you can inspect, so if a post looks wrong you can check what was received rather than guessing which tool sent bad data. Having that record shortens debugging from a guessing game to reading what was sent.

How it works

What happens, step by step

  1. When you send a title and content to your automation's link, ClickRuntime starts straight away.

  2. It checks WordPress for an existing post with the same slug.

  3. If there is one, it updates that post. If not, it creates a new draft.

Before it runs live

  • Connect WordPress
  • Paste your automation's link into the other app's webhook settings

What you get

RunsThe moment it happens
Create or update posts from a linkjust nowSucceeded
WordPress · PostsCreated draft #815 "Autumn release notes" (slug: autumn-release-notes)

Build your own

Need it to work differently?

This template is a starting point. Copy the prompt and change it, or describe a different automation from scratch, with your own conditions, more apps or an AI step. Your assistant writes it, tests it and runs it on ClickRuntime.
  • Your own rules

    Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.

  • Any number of apps

    One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.

  • AI where it helps

    Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.

  • On a schedule or on each event

    Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.

Changes you can ask for

  • Act only on the items that match your own rules, and skip the rest
  • Add an AI step, for example to summarize, sort or draft a reply
  • Add another app, for example also send it to Slack
  • Combine it with other WordPress steps into one automation

Under the hood

The code that runs this automation

This is the Python script that runs each time the automation starts. Your AI assistant writes it for you when you send the prompt, and you allow each step in your assistant. To change how the automation works, describe the change to your assistant and it updates the script for you. For every function it can use, see the script reference.
create_or_update_a_post_from_a_trigger_link.pyexample
from clickruntime import on_event, credentials, http

SITE = "https://blog.example.com"

def wp(method, path, **kw):
    resp = http.request(method, f"{SITE}/wp-json/wp/v2/{path}", **kw,
                        auth=("admin", credentials.secret("WP_APP_PASSWORD")))
    resp.raise_for_status()
    return resp.json()

@on_event
def handle(event):
    body = event.json or {}
    fields = {"title": body["title"], "slug": body["slug"], "content": body.get("body", "")}
    existing = wp("GET", "posts", params={"slug": body["slug"], "status": "any", "context": "edit"})
    if existing:
        post = wp("POST", f"posts/{existing[0]['id']}", json=fields)
        return {"updated": post["id"]}
    post = wp("POST", "posts", json={**fields, "status": "draft"})
    return {"created": post["id"]}

FAQ

Common questions

What does the sending system need to include?
At minimum a title, the content and a slug, which is the unique part of the post URL. Other fields such as status, category or excerpt can be added if you tell your AI assistant what the sending tool is able to provide.
Can I protect the link so nobody else can post?
The trigger link is a unique address that only your connected tool knows, and you can ask for a shared secret check on top of it. Treat the link like a password and rotate it if it is ever exposed.
Will it publish immediately or save a draft?
That is a setting in how the post is created. Draft is a common choice when content comes from outside sources, and publish suits trusted sources such as your own forms. Either can be set when you configure it.
What permissions does it need?
read+write. Nothing else in your accounts is used.
Does it need AI?
No. It runs without AI, so it doesn't use your plan's AI allowance.
How many runs does it use?
One run for each event the app sends.
Can I change how it works?
Yes. Describe the change to your AI assistant, for example a different schedule, channel or filter. It updates the automation, tests it and tells you what changed.

Set up “Create or update posts from a link” from your assistant

Copy the prompt above, or connect your assistant first. Free plan, no credit card.