Skip to content

On a schedule

Publish an AI blog post and announce it on X

On your schedule, AI writes a blog post from your keyword list, publishes it on WordPress and announces it on X.

Runs
On a schedule
Apps
WordPress, X
AI
Yes, uses the built-in AI allowance
Access
WordPress Author+; tweet.write

Send this to your assistant

Create a ClickRuntime automation: every Tuesday and Thursday at 9am, take the next keyword from my list, write a helpful blog post about it, publish it on my WordPress site, and post the link on X.

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

Small businesses know a regular blog helps people find them in search, but writing two articles a week is out of reach when the owner is also running the business. The blog goes quiet after a few posts, and the X account with it.

Working through a keyword list on a fixed schedule keeps the blog growing and gives the X account something to share. The owner chooses the topics once and checks the articles as they come out.

What you get out of it

  • A blog that keeps growing

    New articles appear on schedule, which is what search engines and returning readers reward.

  • Topics you chose

    Each article targets a keyword from your list, so content stays focused on what your customers search for.

  • Announced as it goes live

    Every new article is shared on X with its link, bringing in readers from day one.

  • Time back for the business

    Hours of writing each week are replaced by a few minutes of checking, so the owner can focus on customers.

How it works

What happens, step by step

  1. On the days you chose, ClickRuntime takes the next keyword from your list.

  2. AI writes a blog post with a title, headings and a short summary for that keyword.

  3. The post is published on your WordPress site.

  4. A short post with the article link is published on X, and the keyword is marked as used.

Before it runs live

  • Connect WordPress
  • Connect X

What you get

RunsOn a schedule
Publish an AI blog post and announce it on Xtoday, 9:00Succeeded
X · @acmebooksClosing the month shouldn't take a week. Our 12-step checklist gets most small businesses done in two days: blog.example.com/monthly-close-checklist

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

  • Run it at a different time, more or less often, or only on weekdays
  • 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.
ai_blog_autopilot_plus_tweet.pyexample
from clickruntime import on_trigger, credentials, http, state, ai

SITE = "https://blog.example.com"
KEYWORDS = ["how to choose a bookkeeper", "monthly close checklist", "cash flow forecast template"]
SCHEMA = {"type": "object", "required": ["title", "html", "tweet"], "properties": {
    "title": {"type": "string"}, "html": {"type": "string"}, "tweet": {"type": "string"}}}

@on_trigger
def run(event):
    i = state.get("next") or 0
    if i >= len(KEYWORDS):
        return {"published": False, "reason": "keyword list used up"}
    post = ai.generate(f"Keyword: {KEYWORDS[i]}", json_schema=SCHEMA, max_output_tokens=2048,
                       system="Write a practical blog post: title, HTML body with H2 headings, and an X post under 220 characters announcing it.").json
    resp = http.post(f"{SITE}/wp-json/wp/v2/posts", auth=("editor", credentials.secret("WP_APP_PASSWORD")),
                     json={"title": post["title"], "content": post["html"], "status": "publish"})
    resp.raise_for_status()
    http.post("https://api.x.com/2/tweets", headers={"Authorization": "Bearer " + credentials.connection("x", "main")},
              json={"text": f"{post['tweet']}\n{resp.json()['link']}"}).raise_for_status()
    state.set("next", i + 1)
    return {"published": resp.json()["link"]}

FAQ

Common questions

Can I review articles before they go live?
Yes. Ask for posts to be saved as drafts instead; you publish them in WordPress and the X post follows.
How long are the articles?
Around 800 to 1,200 words by default, with headings. You can ask for shorter or longer posts in the prompt.
What happens when the keyword list runs out?
Publishing stops until you add more keywords, and no keyword is used twice.
What permissions does it need?
WordPress Author+; tweet.write. 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 runs (on a schedule). Checks that find nothing to do 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 “Publish an AI blog post and announce it on X” from your assistant

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