Skip to content

The moment it happens

Turn one topic into a LinkedIn post and an X post

Send a topic and get a professional LinkedIn post and a short X post, both published, with the links emailed to you.

Runs
The moment it happens
Apps
LinkedIn, X
AI
Yes, uses the built-in AI allowance
Access
LinkedIn w_member_social; X tweet.write

Send this to your assistant

Create a ClickRuntime automation: when I send a topic to my trigger link, write a LinkedIn post and a short X 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 developer advocate has something worth sharing most days but posting it twice, once at length for LinkedIn and once in a few words for X, is the part that never happens.

Now a one-line topic sent from a phone shortcut becomes two posts, each in the right shape, published within a minute. The links arrive by email so they can check both.

What you get out of it

  • Share ideas while they're fresh

    A quick message is all it takes to post.

  • Each network gets the right format

    Longer and more professional for LinkedIn, short and sharp for X.

  • Confirmation by email

    Links to both posts arrive straight away.

  • Consistent on both

    Neither network gets forgotten.

How it works

What happens, step by step

  1. You send a topic to your trigger link.

  2. AI writes a LinkedIn post and a short X post about it.

  3. Both are published, to LinkedIn and X.

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

Before it runs live

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

What you get

RunsThe moment it happens
Turn one topic into a LinkedIn post and an X postjust nowSucceeded
Email · PostedPosted: API versioning. LinkedIn: linkedin.com/feed/update/urn:li:share:7... X: x.com/i/status/18...

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

AUTHOR = "urn:li:person:abc123"

@on_event
def handle(event):
    topic = (event.json or {}).get("topic", "")
    posts = ai.generate(f"Topic: {topic}. Write a LinkedIn post (professional, under 1200 chars) and an X post (under 260 chars).",
                        max_output_tokens=600, json_schema={"type": "object",
                        "properties": {"linkedin": {"type": "string"}, "x": {"type": "string"}}}).json
    li = http.post("https://api.linkedin.com/rest/posts",
                   headers={"Authorization": f"Bearer {credentials.connection('linkedin', 'work')}", "LinkedIn-Version": "202409"},
                   json={"author": AUTHOR, "commentary": posts["linkedin"], "visibility": "PUBLIC", "lifecycleState": "PUBLISHED",
                         "distribution": {"feedDistribution": "MAIN_FEED"}})
    tw = http.post("https://api.twitter.com/2/tweets", json={"text": posts["x"]},
                   headers={"Authorization": f"Bearer {credentials.connection('x', 'work')}"}).json()
    links = f"LinkedIn: https://www.linkedin.com/feed/update/{li.headers.get('x-restli-id')}\nX: https://x.com/i/status/{tw['data']['id']}"
    notify.email_me(f"Posted: {topic[:80]}", links)
    return {"x": tw["data"]["id"]}

FAQ

Common questions

How do I send a topic?
From a phone shortcut, a form or any tool that can call the trigger link in your ClickRuntime dashboard.
Can I review before posting?
Yes. Ask for the version that emails drafts first and posts after you approve.
Can I add hashtags?
Yes. Name the hashtags you use, and they're added where they suit each network.
What permissions does it need?
LinkedIn w_member_social; X 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 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 a LinkedIn post and an X post” from your assistant

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