On a schedule
Rewrite new feed articles for your site and share them on Telegram
New articles from the feeds you follow are rewritten as posts on your WordPress site and shared on your Telegram channel with the link.
- Runs
- On a schedule
- Apps
- Telegram, WordPress
- AI
- Yes, uses the built-in AI allowance
- Access
- WordPress author+; bot admin in channel
Send this to your assistant
Create a ClickRuntime automation: every hour, take new items from these RSS feeds, rewrite them with AI, publish to WordPress and post the link to my Telegram channel.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A local news site covering a mid-sized town follows the council, the police, the football club and a handful of regional outlets. Its Telegram channel has thousands of subscribers who expect fast updates, but with one editor, turning each announcement into a short article and sharing it takes most of the day.
This automation handles the routine updates. Every hour it checks the feeds, AI rewrites each new item as a short article in the site's style with a credit and link to the source, it is published on WordPress, and the link goes out on the Telegram channel. The editor can spend the day on original reporting.
What you get out of it
Faster updates for your readers
Announcements reach your site and channel within the hour. Readers learn to come to you first.
Your site gets the visit
Telegram subscribers click through to your WordPress site, not someone else's. That builds your own audience and traffic.
Written in your style
Each item is rewritten to suit your readers, with a clear credit to the original source. It reads like your publication, not a copy.
Time back for original work
Routine announcements are handled automatically. The people on your team focus on stories only they can write.
How it works
What happens, step by step
Every hour, ClickRuntime checks each RSS feed on your list for new items.
It skips any item it has already published.
AI rewrites each new item as a short article in your style, with a credit and link to the source.
The article is published on WordPress and its link is posted to your Telegram channel.
Before it runs live
- Connect Telegram
- Connect WordPress
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 Telegram and WordPress steps into one automation
Under the hood
The code that runs this automation
import feedparser
from clickruntime import on_trigger, credentials, http, state, ai, report_fetched
FEEDS = ["https://council.example.gov/news/rss", "https://northwindfc.example.com/feed"]
CHANNEL = "@northwindtownnews"
SCHEMA = {"type": "object", "properties": {k: {"type": "string"} for k in ["title", "excerpt", "body_html"]}, "required": ["title", "excerpt", "body_html"]}
WP = "https://blog.example.com/wp-json/wp/v2"
def wp(method, path, **kw):
r = http.request(method, f"{WP}/{path}", auth=(credentials.secret("WP_USER"), credentials.secret("WP_APP_PASSWORD")), **kw)
r.raise_for_status()
return r.json()
def telegram(method, **payload):
return http.post(f"https://api.telegram.org/bot{credentials.secret('TELEGRAM_BOT_TOKEN')}/{method}", json=payload).json()
@on_trigger
def run(event):
seen = set(state.get("seen") or [])
new = [e for f in FEEDS for e in feedparser.parse(http.get(f).content).entries[:10] if e.link not in seen]
report_fetched(len(new))
if not new:
return {"published": 0}
for e in new[:6]:
art = ai.generate(f"Rewrite as a short local news article (HTML body) crediting and linking {e.link}:\n{e.title}\n{e.get('summary', '')[:2500]}", json_schema=SCHEMA, max_output_tokens=1200).json
post = wp("POST", "posts", json={"title": art["title"], "excerpt": art["excerpt"], "content": art["body_html"], "status": "publish"})
telegram("sendMessage", chat_id=CHANNEL, text=f"{art['title']}\n{post['link']}")
seen.add(e.link)
state.set("seen", list(seen)[-1000:])
return {"published": min(6, len(new))}FAQ
Common questions
Can it translate articles?
Does it need to be an admin in the channel?
What about copyright?
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 each new YouTube video into a blog post
Every new video on your channel becomes a WordPress article with the video embedded, and Telegram tells you when it is up.
See how it worksPublish a weekly SEO blog post and get the link on Telegram
Every week the next keyword on your list becomes a blog post on your WordPress site, and Telegram sends you the link as soon as it is up.
See how it worksTurn a PDF sent to Telegram into a blog post you approve
Send a PDF to your bot and it becomes a WordPress draft; tap Approve in Telegram and the post goes live.
See how it worksKeep exploring
Set up “Rewrite new feed articles for your site and share them on Telegram” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.