Every 60 minutes
Rewrite new feed articles for your site and Facebook Page
New articles from the feeds you follow become rewritten posts on your WordPress site, and each one is shared on your Facebook Page with the link.
- Runs
- Every 60 minutes
- Apps
- Facebook Pages, WordPress
- AI
- Yes, uses the built-in AI allowance
- Access
- WordPress write; pages_manage_posts
Send this to your assistant
Create a ClickRuntime automation: every hour, check these RSS feeds, rewrite new articles with AI (translating them if needed), publish them to WordPress and share them on my Facebook Page.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A community news site for Spanish-speaking residents in a US city follows English-language feeds from the city council, the school district and local transit. Its readers rely on it for translated updates, and its Facebook Page is where most of them find the news, but translating and posting each item by hand is a full-time job.
This automation handles the routine announcements. Every hour it checks the feeds, AI rewrites each new item in Spanish in the site's style with a credit and link to the source, it is published on WordPress, and the link is shared on the Facebook Page.
What you get out of it
Updates in your readers' language
Translation is part of the rewrite, so announcements reach people who would otherwise miss them.
Fast enough to be useful
Items are published within the hour, which matters for road closures, school notices and deadlines.
Your site and Page stay in step
Every article is shared on Facebook as soon as it is published, bringing readers back to your site.
Credit where it is due
Each post names and links its source, keeping you transparent with readers and sources alike.
How it works
What happens, step by step
Every hour, ClickRuntime checks each RSS feed on your list and keeps only items it has not handled before.
AI rewrites each new item in your style and language, crediting and linking the source.
The article is published on your WordPress site.
A short caption and the link are posted to your Facebook Page.
Before it runs live
- Connect Facebook Pages
- 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 Facebook Pages 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
PAGE_ID = "your-page-id"
FEEDS = ["https://city.example.gov/news/rss", "https://schools.example.org/feed"]
LANGUAGE = "Spanish"
SCHEMA = {"type": "object", "properties": {k: {"type": "string"} for k in ["title", "body_html", "caption"]}, "required": ["title", "body_html", "caption"]}
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 post_to_page(message, link):
r = http.post(f"https://graph.facebook.com/v21.0/{PAGE_ID}/feed", data={"message": message, "link": link, "access_token": credentials.secret("FACEBOOK_PAGE_TOKEN")})
r.raise_for_status()
return r.json()["id"]
@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 in {LANGUAGE} as a short news article (HTML body) crediting and linking {e.link}, plus a one-line caption:\n{e.title}\n{e.get('summary', '')[:2500]}",
json_schema=SCHEMA, max_output_tokens=1200).json
post = wp("POST", "posts", json={"title": art["title"], "content": art["body_html"], "status": "publish"})
post_to_page(art["caption"], post["link"])
seen.add(e.link)
state.set("seen", list(seen)[-1000:])
return {"published": min(6, len(new))}FAQ
Common questions
Can I skip translation?
Can I review before publishing?
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
Share each new WordPress post on your Facebook Page
Every time you publish a blog post, a Facebook post with a short caption and the link goes out on your Page within 15 minutes.
See how it worksPublish a scheduled blog post and share it on Facebook
On your schedule, the next topic on your list becomes a WordPress post and is shared on your Facebook Page with a caption and link.
See how it worksLabel new emails automatically
New mail is sorted into labels like Inquiry, Invoice and Newsletter within minutes of arriving.
See how it worksKeep exploring
Set up “Rewrite new feed articles for your site and Facebook Page” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.