Skip to content

The moment it happens

Turn one topic into posts for Facebook and LinkedIn

Send a topic and get two posts written for each audience, published on your Facebook Page and LinkedIn, with the links emailed to you.

Runs
The moment it happens
Apps
Facebook Pages, LinkedIn
AI
Yes, uses the built-in AI allowance
Access
pages_manage_posts, pages_read_engagement; LinkedIn w_member_social / w_organization_social

Send this to your assistant

Create a ClickRuntime automation: when I send a topic to my trigger link, write a friendly Facebook post and a professional LinkedIn post about it, publish both, and email me the links.

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 physiotherapy clinic owner has plenty to say, about recovery tips, new services and team news, but writing two versions of every post for two audiences means most ideas never get posted.

Now they send a one-line topic from their phone. A friendly post for patients goes on the Facebook Page, a more professional one for referring doctors goes on LinkedIn, and the links arrive by email.

What you get out of it

  • Ideas get published

    A one-line topic is all it takes, so good ideas don't sit in a notes app.

  • Right tone for each audience

    Customers and professional contacts each get a post written for them.

  • Links in your inbox

    The email confirms both posts went out and lets you check them.

  • Consistent presence on both

    Both channels stay active without double the effort.

How it works

What happens, step by step

  1. You send a topic, and optionally an image link, to your trigger link.

  2. AI writes a friendly Facebook post and a more professional LinkedIn post about it.

  3. Both are published, to your Facebook Page and your LinkedIn profile or company page.

  4. You get an email with the links to both posts.

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
Turn one topic into posts for Facebook and LinkedInjust nowSucceeded
Email · PostedPosted: Desk stretches. Facebook: facebook.com/1234_5678. LinkedIn: linkedin.com/feed/update/urn:li:share:7...

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.
one_topic_ai_posts_on_my_facebook_page_and_linkedin.pyexample
from clickruntime import on_event, credentials, http, ai, notify

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

@on_event
def handle(event):
    topic = (event.json or {}).get("topic", "")
    posts = ai.generate(f"Topic: {topic}. Write a friendly Facebook post and a professional LinkedIn post.", max_output_tokens=600,
                        json_schema={"type": "object", "properties": {"facebook": {"type": "string"}, "linkedin": {"type": "string"}}}).json
    fb = http.post(f"https://graph.facebook.com/v21.0/{PAGE_ID}/feed",
                   data={"message": posts["facebook"], "access_token": credentials.connection("facebook", "work")}).json()
    li = http.post("https://api.linkedin.com/rest/posts",
                   headers={"Authorization": f"Bearer {credentials.connection('linkedin', 'work')}", "LinkedIn-Version": "202409",
                            "X-Restli-Protocol-Version": "2.0.0"},
                   json={"author": AUTHOR, "commentary": posts["linkedin"], "visibility": "PUBLIC", "lifecycleState": "PUBLISHED",
                         "distribution": {"feedDistribution": "MAIN_FEED"}})
    li_id = li.headers.get("x-restli-id", "")
    notify.email_me(f"Posted: {topic[:80]}", f"Facebook: https://facebook.com/{fb['id']}\nLinkedIn: https://www.linkedin.com/feed/update/{li_id}")
    return {"facebook": fb["id"], "linkedin": li_id}

FAQ

Common questions

How do I send a topic?
From a shortcut on your phone, a form or any tool that can call a link. Copy the trigger link from your ClickRuntime dashboard.
Can I include an image?
Yes. Send an image URL with the topic and it's attached to both posts.
Can I review the posts first?
Ask for an approval version: the drafts are emailed to you and only posted once you approve.
What permissions does it need?
pages_manage_posts, pages_read_engagement; LinkedIn w_member_social / w_organization_social. 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 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 “Turn one topic into posts for Facebook and LinkedIn” from your assistant

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