Every 3 hours
Post 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.
- Runs
- Every 3 hours
- Apps
- Google Sheets, X
- AI
- Optional
- Access
- Sheets edit; X tweet.write
Send this to your assistant
Create a ClickRuntime automation: every 3 hours between 8am and 8pm, post the next unposted row from my Tweets sheet to X and mark it Posted with the post ID.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
Ideas for posts come in bursts: five on a train journey, none for a week. Posting them all at once floods followers, and saving them in a notes app means they are forgotten. People who want a steady presence on X need a buffer.
A sheet works as that buffer. You add posts whenever they come to you, and they go out one at a time at a pace your followers will actually read.
What you get out of it
Write in batches, post steadily
Add ten posts in one sitting and they are spread out over days, so your account stays active without daily effort.
A queue anyone can edit
A shared sheet lets a colleague add or reorder posts without needing your X login.
Clear record of what went out
Each row is stamped with the post ID once it is published, so the sheet shows exactly what is live.
Optional polish
Rows marked as ideas can be expanded by AI into a full post, while finished text is posted exactly as you wrote it.
How it works
What happens, step by step
Every 3 hours during the day, ClickRuntime reads your sheet and finds the first row not yet posted.
If the row is marked as an idea, AI writes a post from it; otherwise your text is used as it is.
The post is published on X.
The row is marked with the post ID, so it is never posted again.
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 datetime, timezone
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):
if not 8 <= datetime.now(timezone.utc).hour < 20:
return {"posted": False}
sheets = build("sheets", "v4", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False).spreadsheets()
rows = sheets.values().get(spreadsheetId=SHEET_ID, range="Queue!A2:C").execute().get("values", [])
n = next((i for i, r in enumerate(rows) if r and r[0] and len(r) < 3), None)
if n is None:
return {"posted": False}
text = rows[n][0]
if len(rows[n]) > 1 and rows[n][1].lower() == "idea":
text = ai.generate(f"Turn this idea into one X post under 260 characters: {text}", max_output_tokens=100).text.strip()
resp = http.post("https://api.x.com/2/tweets", headers={"Authorization": "Bearer " + credentials.connection("x", "main")},
json={"text": text[:280]})
resp.raise_for_status()
sheets.values().update(spreadsheetId=SHEET_ID, range=f"Queue!C{n + 2}", valueInputOption="RAW",
body={"values": [[resp.json()["data"]["id"]]]}).execute()
return {"posted": True}FAQ
Common questions
How do I change the posting times?
Will it change my wording?
What happens when the queue is empty?
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
Track 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 worksPublish 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.
See how it worksPost 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 worksKeep exploring
Set up “Post to X from a spreadsheet queue” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.