Skip to content

Every 15 minutes

Share each new blog post on Facebook and X

When you publish an article, it's shared on your Facebook Page and X within half an hour, with a caption for each.

Runs
Every 15 minutes
Apps
Facebook Pages, X
AI
Optional
Access
pages_manage_posts; tweet.write

Send this to your assistant

Create a ClickRuntime automation: every 30 minutes, check my blog feed for new articles, write a caption for Facebook and a short one for X, share both, and remember which articles were shared.

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 nonprofit publishes stories from its projects on its blog, but sharing them on social media depends on a volunteer who isn't always around. Some stories are shared twice, some never.

New articles are now shared automatically within half an hour, once on each network, with captions that fit each platform.

What you get out of it

  • Every story reaches supporters

    Nothing published goes unshared.

  • Captions that fit

    A fuller caption on Facebook, a short one for X.

  • Never shared twice

    Each article is remembered once it's been posted.

  • No volunteer rota needed

    Sharing doesn't depend on who's around.

How it works

What happens, step by step

  1. Every 30 minutes, ClickRuntime checks your blog's feed for new articles.

  2. It skips articles already shared.

  3. It writes a caption for each network, using AI if you've turned it on, or the title otherwise.

  4. The article is shared on your Facebook Page and X, and remembered as done.

Before it runs live

  • Connect Facebook Pages
  • Connect X

What you get

RunsEvery 15 minutes
Share each new blog post on Facebook and Xtoday, 9:00Succeeded
X · @northwindtrustClean water reached 40 more homes in Kisumu this month. Read Amina's story: northwind-trust.example/blog/kisumu

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 Facebook Pages 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.
share_each_new_blog_post_to_facebook_and_x.pyexample
import feedparser
from clickruntime import on_trigger, credentials, http, ai, state, report_fetched

PAGE_ID = "1234567890"

@on_trigger
def run(event):
    shared = state.get("shared") or []
    new = [e for e in feedparser.parse("https://northwind-trust.example/blog/feed").entries if e.link not in shared]
    report_fetched(len(new))
    if not new:
        return {"summary": "No new articles"}
    for e in new:
        try:
            caption = ai.generate(f"Short social caption for: {e.title}", max_output_tokens=80).text.strip()
        except (ai.AINotIncluded, ai.AILimitReached):
            caption = e.title
        http.post(f"https://graph.facebook.com/v21.0/{PAGE_ID}/feed",
                  data={"message": caption, "link": e.link, "access_token": credentials.connection("facebook", "work")})
        http.post("https://api.twitter.com/2/tweets", json={"text": f"{caption[:250]} {e.link}"},
                  headers={"Authorization": f"Bearer {credentials.connection('x', 'work')}"})
        shared.append(e.link)
    state.set("shared", shared[-300:])
    return {"shared": len(new)}

FAQ

Common questions

Does it need AI for captions?
No. Without AI, the article title and excerpt are used. With AI, captions are written to suit each network.
Will it share old articles on the first run?
No. Articles already in the feed are noted on the first run and only new ones are shared.
Can I delay posts to a better time?
Yes. Set posting hours in the prompt, and articles published overnight are shared in the morning.
What permissions does it need?
pages_manage_posts; tweet.write. Nothing else in your accounts is used.
Does it need AI?
No, but you can ask for an AI step (for example a summary). It then uses ClickRuntime's built-in 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 “Share each new blog post on Facebook and X” from your assistant

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