Skip to content

Every 15 minutes

Announce new WordPress posts on X

Each new post on your WordPress blog is announced on X with an AI-written post and the link.

Runs
Every 15 minutes
Apps
WordPress, X
AI
Yes, uses the built-in AI allowance
Access
WordPress read; tweet.write, users.read, offline.access

Send this to your assistant

Create a ClickRuntime automation: every 15 minutes, check my WordPress blog for new published posts and announce each one on X with a short, catchy post and the link.

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

Bloggers and small businesses put hours into each WordPress article, then forget to share it on X. Readers who would have enjoyed it never hear about it, and traffic depends on search alone.

Announcing every post on X as soon as it is published closes that gap. Your followers get each article on day one, without anyone having to remember.

What you get out of it

  • Every article gets announced

    No article is left unshared, so each one gets the readers X can bring.

  • A post written for X

    AI writes a short hook rather than repeating the title, which gives followers a reason to click.

  • Within minutes of publishing

    Announcements go out within 15 minutes, while the article is newest.

  • Nothing posted twice

    The latest announced post is remembered, so edits and updates to old articles are not re-announced.

How it works

What happens, step by step

  1. Every 15 minutes ClickRuntime checks your WordPress blog for posts published since the last one it announced.

  2. AI writes a short post for each new article that fits X's length limit.

  3. The post is published on X with the article link.

  4. The newest article is remembered, so nothing is announced twice.

Before it runs live

  • Connect WordPress
  • Connect X

What you get

RunsEvery 15 minutes
Announce new WordPress posts on Xtoday, 9:00Succeeded
X · @northwindblogWe tried four-day weeks in support for six months. Response times went down, not up. Here's what we changed: blog.example.com/four-day-support

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
  • Change what the AI looks for, or how it writes the result
  • Add another app, for example also send it to Slack
  • Combine it with other WordPress and X 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.
tweet_new_wordpress_posts.pyexample
import html
from clickruntime import on_trigger, report_fetched, credentials, http, state, ai

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

@on_trigger
def run(event):
    last = state.get("last_id") or 0
    posts = http.get(f"{SITE}/wp-json/wp/v2/posts", params={"per_page": 10, "orderby": "id", "order": "desc"}).json()
    new = [p for p in posts if p["id"] > last] if last else []
    report_fetched(len(new))
    if not last and posts:
        state.set("last_id", posts[0]["id"])
    if not new:
        return {"posted": 0}
    for p in reversed(new):
        title = html.unescape(p["title"]["rendered"])
        text = ai.generate(f"Write an X post under 230 characters announcing this blog post: {title}\n{p['excerpt']['rendered'][:800]}",
                           max_output_tokens=90).text.strip()
        http.post("https://api.x.com/2/tweets", headers={"Authorization": "Bearer " + credentials.connection("x", "main")},
                  json={"text": f"{text}\n{p['link']}"}).raise_for_status()
    state.set("last_id", new[0]["id"])
    return {"posted": len(new)}

FAQ

Common questions

Does it need my WordPress password?
No. Published posts are public, so reading them needs no login.
Will scheduled posts be announced early?
No. Only posts with a published status are announced, at the first check after they go live.
Can it include the featured image?
Yes. X shows a preview card with the featured image when your site sets the usual social tags, which most SEO plugins do.
What permissions does it need?
WordPress read; tweet.write, users.read, offline.access. Nothing else in your accounts is used.
Does it need AI?
Yes. It uses ClickRuntime's built-in AI, so you don't need an OpenAI or Anthropic key. Every plan includes a monthly AI allowance.
How many runs does it use?
One run each time it checks. Checks that find nothing new and stop right away aren't counted.
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 “Announce new WordPress posts on X” from your assistant

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