Every hour
Announce new articles and videos on X
Each new blog post or YouTube video gets its own post on X, and every announcement is logged in your sheet.
- Runs
- Every hour
- Apps
- Google Sheets, X
- AI
- Yes, uses the built-in AI allowance
- Access
- X tweet.write; Sheets edit
Send this to your assistant
Create a ClickRuntime automation: every hour, check my blog feed and YouTube channel for anything new. Write an X post for each one, publish it, and add a row to my Promotion Log sheet.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
Creators and small companies publish articles and videos regularly but often forget to tell their X followers about them. Promotion depends on remembering, and an unannounced video gets a fraction of the views it would have had in its first days.
Announcing every new piece the hour it appears makes promotion part of publishing rather than an extra job. The log sheet gives you a record of what was shared and when.
What you get out of it
Nothing goes unannounced
Every article and video is shared on X, including the ones published on a busy day.
Early views where they count
Posting within the hour helps new content get attention while it is newest, which is when platforms decide what to show more widely.
A record of every share
The sheet logs the title, link, post and date, so you can see what was promoted and compare results later.
No double posts
Links already in the sheet are skipped, so the same video is never announced twice.
How it works
What happens, step by step
Every hour ClickRuntime checks your blog and YouTube feeds for new items.
It skips anything already listed in your log sheet.
AI writes a short X post for each new item with its link.
The post is published on X and a row is added to your sheet with the title, link and date.
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
- Act only on the items that match your own rules, and skip the rest
- 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
import feedparser
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from clickruntime import on_trigger, report_fetched, credentials, http, ai
FEEDS = ["https://blog.example.com/feed", "https://www.youtube.com/feeds/videos.xml?channel_id=UCxxxxxxxx"]
SHEET_ID = "your-spreadsheet-id"
@on_trigger
def run(event):
sheets = build("sheets", "v4", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False).spreadsheets()
logged = {r[1] for r in sheets.values().get(spreadsheetId=SHEET_ID, range="Log!A2:B").execute().get("values", []) if len(r) > 1}
new = [e for url in FEEDS for e in feedparser.parse(url).entries[:10] if e.link not in logged]
report_fetched(len(new))
if not new:
return {"posted": 0}
x = {"Authorization": "Bearer " + credentials.connection("x", "main")}
rows = []
for e in new:
text = ai.generate(f"Write an X post under 240 characters announcing: {e.title}", max_output_tokens=100).text.strip()
http.post("https://api.x.com/2/tweets", headers=x, json={"text": f"{text}\n{e.link}"}).raise_for_status()
rows.append([datetime.now(timezone.utc).date().isoformat(), e.link, e.title, text])
sheets.values().append(spreadsheetId=SHEET_ID, range="Log!A:D", valueInputOption="RAW", body={"values": rows}).execute()
return {"posted": len(rows)}FAQ
Common questions
Which sources can it watch?
Will old posts be announced when I turn it on?
Can I see what was posted?
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 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 worksKeep exploring
Set up “Announce new articles and videos on X” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.