Daily
Publish your sheet content plan to X
Posts planned in your Google Sheet are written up by AI and published on X on the day you scheduled them.
- Runs
- Daily
- Apps
- Google Sheets, X
- AI
- Yes, uses the built-in AI allowance
- Access
- Sheets edit; X tweet.write
Send this to your assistant
Create a ClickRuntime automation: every day at 10am, check my Content Plan sheet for rows due today, write an X post from each brief, publish it and mark the row Posted with the link.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A small marketing team plans its social content in a shared sheet: dates, themes, product launches. The plan is good, but someone still has to log in and post every day, and when that person is off sick or busy with a launch, the calendar slips and the plan stops meaning anything.
Letting the sheet drive the posting keeps the plan and what actually happens the same. The team discusses and edits rows together, and the posts go out on the planned days whoever is around.
What you get out of it
The plan is what gets posted
Posts go out on the dates in the sheet, so the calendar is something you can rely on, not just a wish list.
Briefs become finished posts
A row only needs a short brief. AI turns it into a post that fits X's length and your tone, so planning stays quick.
One shared view for the team
Everyone edits the same sheet they already use, and the Posted column shows at a glance what went out and when.
Posting doesn't depend on one person
Holidays and busy weeks no longer stop your account. The schedule keeps running from the sheet.
How it works
What happens, step by step
Every morning ClickRuntime reads your content sheet and finds rows due today that are not yet posted.
AI turns each brief into a post that fits X's length limit.
The post is published on your X account.
The row is marked Posted with a link, so it is never posted twice.
Before it runs live
- Connect your Google Sheets account and pick the spreadsheets it may use
- 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
- 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 Google Sheets and X steps into one automation
Under the hood
The code that runs this automation
from datetime import date
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from clickruntime import on_trigger, credentials, http, ai
SHEET_ID = "your-spreadsheet-id"
@on_trigger
def run(event):
sheets = build("sheets", "v4", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False).spreadsheets()
rows = sheets.values().get(spreadsheetId=SHEET_ID, range="Plan!A2:C").execute().get("values", [])
x = {"Authorization": "Bearer " + credentials.connection("x", "main")}
posted = 0
for n, row in enumerate(rows, start=2):
if len(row) < 2 or row[0] != date.today().isoformat() or (len(row) > 2 and row[2]):
continue
text = ai.generate(f"Brief: {row[1]}", system="Write one X post under 260 characters, at most one hashtag.",
max_output_tokens=120).text.strip()[:280]
resp = http.post("https://api.x.com/2/tweets", headers=x, json={"text": text})
resp.raise_for_status()
link = f"https://x.com/i/status/{resp.json()['data']['id']}"
sheets.values().update(spreadsheetId=SHEET_ID, range=f"Plan!C{n}", valueInputOption="RAW",
body={"values": [[f"Posted {link}"]]}).execute()
posted += 1
return {"posted": posted}FAQ
Common questions
What columns does the sheet need?
Can I write the exact text myself?
Can it also post to other networks?
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
Post a daily themed update on X
Each day a post about today's occasion, local weather or top news goes out on X, with a history kept in your sheet.
See how it worksPost to X from a spreadsheet queue
Write posts in a sheet whenever you like, and they go out on X one at a time, every few hours.
See how it worksTrack your X post performance weekly
Every week your posts' views, likes and reposts are saved to a sheet, and you get an email with the highlights.
See how it worksKeep exploring
Set up “Publish your sheet content plan to X” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.