Skip to content

Every 15 minutes

Post your content calendar to LinkedIn and X on time

Posts you schedule in a content calendar sheet go out on LinkedIn and X at the set time, and the post links are written back.

Runs
Every 15 minutes
Apps
LinkedIn, X
AI
Not needed
Access
LinkedIn w_member_social; X tweet.write

Send this to your assistant

Create a ClickRuntime automation: every 15 minutes, check my content calendar sheet for due posts, publish each to LinkedIn and X, and write the post links into the row.

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 B2B marketing team plans a month of LinkedIn and X posts in a shared sheet, reviewed with the founders. Then someone has to log in and post each one at the right time, and posts are often late during busy weeks.

The calendar now publishes itself. Each row goes out on both networks at its time, and the links are written back, so the team and founders can see what's live without asking.

What you get out of it

  • Posts go out on time

    No one needs to be online to press publish.

  • Plan with the team, post automatically

    Review in the sheet, then let it run.

  • Links written back

    Each row shows where its posts went live.

  • Both networks from one row

    One line covers LinkedIn and X.

How it works

What happens, step by step

  1. Every 15 minutes, ClickRuntime reads your content calendar sheet.

  2. It picks rows whose time has come and that have no post links yet.

  3. Each one is posted to LinkedIn and X, shortened for X if needed.

  4. The links are written into the row, so nothing is posted twice.

Before it runs live

  • Connect LinkedIn
  • Connect X

What you get

RunsEvery 15 minutes
Post your content calendar to LinkedIn and X on timetoday, 9:00Succeeded
Google Sheets · CalendarTue 21 Oct 08:30 | Three signs your onboarding is too long | linkedin.com/feed/update/... | x.com/i/status/...

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
  • Add an AI step, for example to summarize, sort or draft a reply
  • 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.
scheduled_cross_posting_from_a_content_calendar.pyexample
from datetime import datetime
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from clickruntime import on_trigger, credentials, http, notify

AUTHOR, SHEET_ID = "urn:li:organization:12345", "your-spreadsheet-id"

@on_trigger
def run(event):
    values = build("sheets", "v4", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False).spreadsheets().values()
    rows, posted = values.get(spreadsheetId=SHEET_ID, range="Calendar!A2:E").execute().get("values", []), 0
    for i, r in enumerate(rows):
        when, li_text, x_text, li_url, x_url = (r + [""] * 5)[:5]
        if li_url or not when or datetime.fromisoformat(when) > datetime.now():
            continue
        li = http.post("https://api.linkedin.com/rest/posts", headers={"Authorization": f"Bearer {credentials.connection('linkedin', 'work')}", "LinkedIn-Version": "202409"},
                       json={"author": AUTHOR, "commentary": li_text, "visibility": "PUBLIC", "lifecycleState": "PUBLISHED", "distribution": {"feedDistribution": "MAIN_FEED"}})
        tw = http.post("https://api.twitter.com/2/tweets", json={"text": x_text or li_text[:277] + "..."},
                       headers={"Authorization": f"Bearer {credentials.connection('x', 'work')}"}).json()
        if "data" not in tw:
            notify.email_me("X post failed", f"Row {i + 2}: {tw}")
        links = [f"https://www.linkedin.com/feed/update/{li.headers.get('x-restli-id')}", f"https://x.com/i/status/{tw.get('data', {}).get('id', '')}"]
        values.update(spreadsheetId=SHEET_ID, range=f"Calendar!D{i + 2}:E{i + 2}", valueInputOption="RAW", body={"values": [links]}).execute()
        posted += 1
    return {"posted": posted}

FAQ

Common questions

What does the sheet need?
A date and time, LinkedIn text, optional X text and columns for the two links. If X text is blank, the LinkedIn text is shortened.
Can I edit a scheduled post?
Yes. Change the row before its time and the new text is posted.
What if a post fails?
The error is written to the row and you get an email, so you can fix it and it's retried on the next check.
What permissions does it need?
LinkedIn w_member_social; X tweet.write. Nothing else in your accounts is used.
Does it need AI?
No. It runs without AI, so it doesn't use your plan's AI allowance.
How many runs does it use?
One run each time it runs (every 15 minutes). 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 “Post your content calendar to LinkedIn and X on time” from your assistant

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