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.
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
Every 15 minutes, ClickRuntime reads your content calendar sheet.
It picks rows whose time has come and that have no post links yet.
Each one is posted to LinkedIn and X, shortened for X if needed.
The links are written into the row, so nothing is posted twice.
Before it runs live
- Connect LinkedIn
- Connect X
What you get
Build your own
Need it to work differently?
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
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?
Can I edit a scheduled post?
What if a post fails?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Share the day's top story in your field on LinkedIn and X
Each day a trending story in your field is picked and shared on LinkedIn and X with a short take, never the same story twice.
See how it worksForward your Telegram channel posts to LinkedIn and X
Posts in your Telegram channel are reposted to LinkedIn and X, and tags in the post decide which networks they go to.
See how it worksTurn 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.
See how it worksKeep exploring
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.