Every 60 minutes
Publish feed articles to WordPress and announce them in Discord
New articles from your feeds are rewritten in your voice, published on your WordPress site and announced in Discord.
- Runs
- Every 60 minutes
- Apps
- Discord, WordPress
- AI
- Yes, uses the built-in AI allowance
- Access
- WordPress write; bot Send Messages
Send this to your assistant
Create a ClickRuntime automation: every hour, take new articles from my RSS feeds, rewrite them with AI in my site's style, publish them to WordPress and post the link in my Discord channel.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A niche news site covers updates from a set of official sources: release notes, project blogs and announcement pages. The editor checks each source, rewrites the update for the site's readers, publishes it and then shares it with the Discord community. On a busy day that is several hours of routine work, and slower days mean the site falls behind faster competitors.
This automation checks the sources every hour, writes a post in your site's style for each new item, publishes it to WordPress and announces it in Discord. Your readers get timely coverage, and the editor's time goes to original pieces.
What you get out of it
Coverage within the hour
New items from your sources become posts on your site quickly. Readers come to rely on you for timely updates.
Written for your readers
Each post is rewritten in your site's tone and adds context rather than copying the source. Posts can also be translated into your readers' language.
Your community hears first
Every new post is announced in Discord with its link. Members see it before it reaches search engines or social feeds.
Each source item is used once
Items already published are remembered, so updated or reordered feeds do not create duplicate posts. Your site stays clean.
How it works
What happens, step by step
Every hour, ClickRuntime checks your feeds for articles it has not used yet.
If there are none, it stops until the next check.
AI rewrites each new article as a post in your site's style, with a link to the source.
The post is published on your WordPress site.
A message with the post title and link is sent to your Discord channel.
Before it runs live
- Connect Discord
- 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 Discord and WordPress steps into one automation
Under the hood
The code that runs this automation
import feedparser
from clickruntime import on_trigger, credentials, http, ai, state, report_fetched
FEEDS = ["https://blog.example.org/feed"]
WP_URL, WP_USER = "https://yoursite.example", "editor"
CHANNEL_ID = "your-discord-channel-id"
@on_trigger
def run(event):
seen = state.get("seen") or []
new = [e for u in FEEDS for e in feedparser.parse(http.get(u).text).entries if e.get("link") not in seen]
report_fetched(len(new))
if not new:
return {"new": 0}
for e in new[:5]:
body = ai.generate(f"{e.get('title')}\n{e.get('summary', '')[:3000]}", system="Rewrite as a short news post for our "
"readers, in HTML paragraphs. Do not copy sentences.", max_output_tokens=900).text
post = http.post(f"{WP_URL}/wp-json/wp/v2/posts", auth=(WP_USER, credentials.secret("WP_APP_PASSWORD")),
json={"title": e.get("title"), "status": "publish",
"content": f"{body}<p>Source: <a href=\"{e.get('link')}\">{e.get('link')}</a></p>"}).json()
http.post(f"https://discord.com/api/v10/channels/{CHANNEL_ID}/messages",
headers={"Authorization": f"Bot {credentials.secret('DISCORD_BOT_TOKEN')}"},
json={"content": f"New post: {e.get('title')}\n{post.get('link', '')}"})
seen.append(e.get("link"))
state.set("seen", seen[-1000:])
return {"published": min(len(new), 5)}FAQ
Common questions
Can posts be saved as drafts instead of published?
Is the original source credited?
How does it connect to my WordPress site?
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 documents in a folder into WordPress posts
Drop a document into your Drive folder and it becomes a WordPress post, announced in your Discord channel.
See how it worksPublish a daily blog post to WordPress and share the link in Discord
Each day a post is written for the next keyword on your list, published on your WordPress site, and its link is posted in your Discord channel.
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 “Publish feed articles to WordPress and announce them in Discord” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.