On a schedule
Post about a new article in your niche on X each day
Each day the best new article on your topic becomes a short post on X with the link, and no article is posted twice.
- Runs
- On a schedule
- Apps
- SerpApi, X
- AI
- Yes, uses the built-in AI allowance
- Access
- SerpApi key; X tweet.write
Send this to your assistant
Create a ClickRuntime automation: every day at noon, find new articles on my topic with SerpApi Google News, write a post for X about the best one with the link, and publish it.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A small cycling shop wants its X account to be worth following, not just a stream of sales. Sharing interesting cycling news is a good way to do that, but someone has to find a story each day and write something better than the headline.
This automation keeps the account active. Each day it searches Google News for the shop's topic through SerpApi, skips stories it has already shared, and AI picks the best one and writes a short post with the link. Followers get a useful story a day, and the shop stays visible without anyone remembering to post.
What you get out of it
An account worth following
A steady stream of relevant news gives people a reason to follow you. That audience is there when you do have something to announce.
Posts every day, hands off
Finding, choosing and writing all happen automatically. The account keeps posting during busy weeks and holidays.
Never the same story twice
Articles that have been shared are remembered, so followers always see something new.
A sentence of context, not just a headline
Each post adds a short comment on why the story is interesting. That earns more clicks and replies than a bare headline.
How it works
What happens, step by step
Every day at the time you choose, ClickRuntime searches Google News for your topic through SerpApi.
It drops any article it has already posted about.
AI picks the most interesting new article and writes a short post with the link.
The post is published from your X account and the article is remembered so it is not shared again.
Before it runs live
- Connect SerpApi
- 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 SerpApi and X steps into one automation
Under the hood
The code that runs this automation
from clickruntime import on_trigger, credentials, http, state, ai
TOPIC = "road cycling"
def post_to_x(text):
r = http.post("https://api.x.com/2/tweets", headers={"Authorization": f"Bearer {credentials.connection('x', 'work')}"}, json={"text": text})
r.raise_for_status()
return r.json()["data"]["id"]
@on_trigger
def run(event):
used = set(state.get("used") or [])
news = http.get("https://serpapi.com/search", params={"engine": "google_news", "q": TOPIC, "api_key": credentials.secret("SERPAPI_API_KEY")}).json().get("news_results", [])
fresh = [n for n in news if n.get("link") and n["link"] not in used][:8]
if not fresh:
return {"posted": False}
listing = "\n".join(f"{i}. {n['title']}" for i, n in enumerate(fresh))
pick = fresh[int(ai.generate(f"Which is most interesting to {TOPIC} fans? Number only.\n{listing}", max_output_tokens=5).text.strip() or 0)]
text = ai.generate(f"Write a post for X under 230 characters about: {pick['title']}. No hashtags.", max_output_tokens=80).text.strip()[:250]
post_to_x(f"{text} {pick['link']}")
state.set("used", list(used | {pick["link"]})[-300:])
return {"posted": pick["title"]}FAQ
Common questions
Can I limit it to certain sources?
What if there is no new article?
Does it post at a set time?
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
Turn a topic into a researched post on X
Send a topic to your trigger link and a post on X based on fresh Google results goes out from your account, with the link emailed to you.
See how it worksGet a daily news digest in Slack
Each morning your team gets a short summary of what's new on the sites and blogs you follow.
See how it worksFollow your stocks and crypto in Slack
During market hours you get a short update on the tickers you care about, with a heads-up on big moves.
See how it worksKeep exploring
Set up “Post about a new article in your niche on X each day” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.
