Skip to content

The moment it happens

Share each new article on Facebook and LinkedIn

Every new article on your site is announced on your Facebook Page and LinkedIn with a short introduction.

Runs
The moment it happens
Apps
Facebook Pages, LinkedIn
AI
Optional
Access
pages_manage_posts; LinkedIn w_member_social

Send this to your assistant

Create a ClickRuntime automation: when my website publishes a new article, write a short intro for it and share the link on my Facebook Page and LinkedIn.

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 consultancy publishes thoughtful articles on its website, but they're shared inconsistently: sometimes on LinkedIn, rarely on Facebook, often days late. Good writing gets few readers.

Each new article is now announced on both networks as soon as it's published, with a short intro that tells people why it's worth reading.

What you get out of it

  • Every article gets readers

    No piece is published to silence because someone forgot to share it.

  • Shared at the right moment

    Announcements go out as soon as the article is live.

  • A reason to click

    A short intro outperforms a bare link.

  • Never shared twice

    Each article address is remembered, so updates to an old post don't trigger a second share.

How it works

What happens, step by step

  1. Your website tells ClickRuntime that a new article has been published.

  2. It checks that this article hasn't been shared before.

  3. AI writes a short intro, unless the article already has an excerpt.

  4. The link is shared on your Facebook Page and LinkedIn.

Before it runs live

  • Connect Facebook Pages
  • Connect LinkedIn
  • Paste your automation's link into the other app's webhook settings

What you get

RunsThe moment it happens
Share each new article on Facebook and LinkedInjust nowSucceeded
LinkedIn · Northwind AdvisoryMost pricing reviews start with costs. Ours start with customers. Here's why that changes the answer.

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 LinkedIn 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_new_blog_posts_on_facebook_and_linkedin.pyexample
from clickruntime import on_event, credentials, http, ai, state

PAGE_ID, AUTHOR = "1234567890", "urn:li:organization:12345"

@on_event
def handle(event):
    post = event.json or {}
    url = post.get("url")
    if not url or state.get(f"shared:{url}"):
        return {"skipped": True}
    intro = post.get("excerpt") or ai.generate(f"Two-sentence intro inviting people to read: {post.get('title')}",
                                               max_output_tokens=100).text.strip()
    http.post(f"https://graph.facebook.com/v21.0/{PAGE_ID}/feed",
              data={"message": intro, "link": url, "access_token": credentials.connection("facebook", "work")})
    http.post("https://api.linkedin.com/rest/posts",
              headers={"Authorization": f"Bearer {credentials.connection('linkedin', 'work')}", "LinkedIn-Version": "202409"},
              json={"author": AUTHOR, "commentary": intro, "visibility": "PUBLIC", "lifecycleState": "PUBLISHED",
                    "distribution": {"feedDistribution": "MAIN_FEED"},
                    "content": {"article": {"source": url, "title": post.get("title", "")}}})
    state.set(f"shared:{url}", True)
    return {"shared": url}

FAQ

Common questions

How does it know an article was published?
Your website or blog tool calls the trigger link when a post goes live. Most site builders can send a webhook on publish.
Can I write the intro myself?
Yes. If the article has an excerpt, it's used instead of a written intro.
What if I update an old article?
It's recognised by its address and not shared again.
What permissions does it need?
pages_manage_posts; LinkedIn w_member_social. 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 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 “Share each new article on Facebook and LinkedIn” from your assistant

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