Skip to content

On a schedule

Publish a scheduled blog post and share it on Facebook

On your schedule, the next topic on your list becomes a WordPress post and is shared on your Facebook Page with a caption and link.

Runs
On a schedule
Apps
Facebook Pages, WordPress
AI
Yes, uses the built-in AI allowance
Access
WordPress write (Author+); pages_manage_posts

Send this to your assistant

Create a ClickRuntime automation: every Monday, take the next topic from my list, have AI write an SEO blog post, publish it to WordPress and share it on my Facebook Page.

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 family-owned pet supply shop wants a blog post every week to help with search and to give its Facebook followers something useful to read. The owners have a list of topics, from puppy training to winter paw care, but writing and sharing a post every week does not fit around running the shop.

This automation handles the routine. Every Monday it takes the next topic, AI writes the article, it is published on WordPress, and a caption with the link goes out on the shop's Facebook Page. If the owners prefer to check each one first, the post can be saved as a draft and emailed to them instead.

What you get out of it

  • A blog and Page that stay active

    A new article and Facebook post every week, without anyone setting aside the time. Consistency builds both search traffic and followers.

  • Followers go to your site

    Each Facebook post links to your website, where your products are.

  • Topics you chose

    Every post comes from your own list, in the order you set.

  • Draft mode for peace of mind

    Switch to drafts and an email arrives for review; nothing is shared on Facebook until you publish.

How it works

What happens, step by step

  1. On your schedule, ClickRuntime takes the next unused topic from your list.

  2. AI writes a blog post with a title, excerpt and headings, plus a short Facebook caption.

  3. The post is published on WordPress.

  4. The caption and link are posted on your Facebook Page, and the topic is marked as used.

Before it runs live

  • Connect Facebook Pages
  • Connect WordPress

What you get

RunsOn a schedule
Publish a scheduled blog post and share it on Facebooktoday, 9:00Succeeded
Facebook · Northwind Pet SupplySnow and road salt are hard on paws. Here's our simple winter routine to keep your dog's feet healthy.

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 Facebook Pages and 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.
ai_blog_on_autopilot_announced_on_facebook.pyexample
from clickruntime import on_trigger, credentials, http, state, ai, notify

PAGE_ID = "your-page-id"
TOPICS = ["Winter paw care for dogs", "Choosing the right cat litter", "Puppy training: the first week"]
SCHEMA = {"type": "object", "properties": {k: {"type": "string"} for k in ["title", "excerpt", "body_html", "caption"]}, "required": ["title", "excerpt", "body_html", "caption"]}
WP = "https://blog.example.com/wp-json/wp/v2"

def wp(method, path, **kw):
    r = http.request(method, f"{WP}/{path}", auth=(credentials.secret("WP_USER"), credentials.secret("WP_APP_PASSWORD")), **kw)
    r.raise_for_status()
    return r.json()
def post_to_page(message, link):
    r = http.post(f"https://graph.facebook.com/v21.0/{PAGE_ID}/feed", data={"message": message, "link": link, "access_token": credentials.secret("FACEBOOK_PAGE_TOKEN")})
    r.raise_for_status()
    return r.json()["id"]

@on_trigger
def run(event):
    used = state.get("used") or 0
    if used >= len(TOPICS):
        notify.email_me("Blog topic list is empty", "Add more topics to keep the weekly post going.")
        return {"posted": False}
    art = ai.generate(f"Write a 900-word SEO blog post (HTML body, H2 headings) for pet owners on '{TOPICS[used]}', plus a friendly 1-2 sentence Facebook caption.",
                      json_schema=SCHEMA, max_output_tokens=2048).json
    post = wp("POST", "posts", json={"title": art["title"], "excerpt": art["excerpt"], "content": art["body_html"], "status": "publish"})
    post_to_page(art["caption"], post["link"])
    state.set("used", used + 1)
    return {"posted": post["link"]}

FAQ

Common questions

Can I review before it is published?
Yes. In draft mode the post is saved for review and emailed to you, and is only shared on Facebook after you publish it.
How often can it post?
Weekly is the default, but daily or twice a week work too. Choose a pace you are comfortable reviewing.
What happens when the topic list runs out?
Nothing is posted and you get an email asking for more topics.
What permissions does it need?
WordPress write (Author+); pages_manage_posts. 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 a scheduled blog post and share it on Facebook” from your assistant

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