Daily
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.
- 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 morning at 8am, check my Calendar sheet for today's occasion and the local weather, write a friendly X post for our café, publish it and log it in the sheet.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
Local businesses like cafés, gyms and shops do well on social media when they post about what is happening today: a holiday, a heatwave, a local event. It shows they are open and paying attention. But thinking of something to post every morning, before opening, rarely happens.
A sheet of occasions plus today's weather is enough for a timely post each day. The owner fills in the calendar once a month, and the daily post takes care of itself.
What you get out of it
Timely posts without the morning effort
A post that mentions today's weather or occasion goes out before you open, so customers see you are active.
Your calendar, your themes
You choose the occasions that matter to your business in the sheet, from national holidays to your own anniversary.
A history to learn from
Each post is logged with the date, so you can look back at what you posted for each occasion last year.
No repeats
Recent posts are remembered and the AI avoids reusing the same lines, so the feed stays fresh.
How it works
What happens, step by step
Every morning ClickRuntime reads today's row from your calendar sheet and checks the local weather.
AI writes a friendly post that mentions the occasion or the weather, avoiding lines it used recently.
The post is published on your X account.
A row is added to your log tab with the date and the post text.
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, state, ai
SHEET_ID = "your-spreadsheet-id"
LAT, LON = 51.45, -2.59 # your city
@on_trigger
def run(event):
sheets = build("sheets", "v4", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False).spreadsheets()
today = date.today().isoformat()
cal = {r[0]: r[1] for r in sheets.values().get(spreadsheetId=SHEET_ID, range="Calendar!A2:B").execute().get("values", []) if len(r) > 1}
if cal.get(today, "").lower() == "skip":
return {"posted": False}
w = http.get("https://api.open-meteo.com/v1/forecast", params={"latitude": LAT, "longitude": LON, "daily": "temperature_2m_max,precipitation_sum", "timezone": "auto", "forecast_days": 1}).json()["daily"]
recent = state.get("recent") or []
text = ai.generate(f"Occasion: {cal.get(today, 'none')}. High {w['temperature_2m_max'][0]}C, rain {w['precipitation_sum'][0]}mm. "
f"Avoid repeating: {recent}", system="Write a warm X post for a neighbourhood café, under 240 characters.",
max_output_tokens=100).text.strip()[:280]
http.post("https://api.x.com/2/tweets", headers={"Authorization": "Bearer " + credentials.connection("x", "main")},
json={"text": text}).raise_for_status()
sheets.values().append(spreadsheetId=SHEET_ID, range="Log!A:B", valueInputOption="RAW", body={"values": [[today, text]]}).execute()
state.set("recent", (recent + [text])[-7:])
return {"posted": True}FAQ
Common questions
Where does the weather come from?
What if there is no occasion today?
Can I skip a day?
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
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.
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 “Post a daily themed update on X” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.