Every 15–60 minutes
Tag and categorise new posts automatically
Posts that go up without tags get sensible ones and a category picked from those you already use.
- Runs
- Every 15–60 minutes
- Apps
- WordPress
- AI
- Yes, uses the built-in AI allowance
- Access
- read+write (Editor to manage terms)
Send this to your assistant
Create a ClickRuntime automation: every 30 minutes, find WordPress posts with no tags, choose up to five tags and one category from the ones my site already has, and update the post.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
On a WordPress blog with several authors, tags and categories drift. One writer files a post under Marketing, another creates a fresh tag called marketing-tips, and a third forgets to categorise anything, so the Uncategorized archive keeps growing. Readers hit thin archive pages, related-post widgets show odd matches, and SEO value splits across near-duplicate tags.
Every 15 to 60 minutes, new posts that have not been processed yet are listed. The existing tags and categories on your site are loaded as well, and ClickRuntime's built-in AI picks the best category and tags for each post from what already exists, proposing a new tag only when nothing fits. Missing tags are created, and the post is updated.
This is a good fit for editorial teams that publish often and for owners who inherited a taxonomy with hundreds of unused tags and want it to stop growing.
What you get out of it
Archive pages stay coherent
Posts land in a defined category instead of Uncategorized, so category archives, menus and breadcrumbs show real groups of related articles rather than an inconsistent pile. Cleaner archives also give visitors a way to browse by subject instead of leaving after one article.
Fewer duplicate tags
Because the AI chooses from the tags already on the site first, you avoid ending up with seo, SEO and seo-tips all pointing at slightly different lists of posts. One consistent label for each subject keeps all related posts together on a single archive page.
Authors skip the housekeeping
Writers publish and move on. The tagging step that always gets rushed on a Friday afternoon is handled within the hour, consistently, for every post. Nobody on the team has to learn the taxonomy rules or police them in review.
Better related-post suggestions
Plugins that recommend related articles usually rely on shared tags and categories. Cleaner labels give readers more relevant next reads and keep them on the site longer. A tighter set of tags also makes site search and filter widgets behave more predictably.
Only unprocessed posts are touched
A stored marker of what was already handled means older, carefully hand-tagged posts are not overwritten each time the schedule runs. Because each post is processed once, a quiet hour costs nothing and a busy one is simply caught on the next pass.
How it works
What happens, step by step
Every 15 to 60 minutes, ClickRuntime looks for recent WordPress posts it hasn't processed yet.
It loads the tags and categories you already use.
AI reads each post and picks a few fitting tags and one category, reusing your existing ones where they fit.
Any new tags are created, and the post is updated with its tags and category.
Before it runs live
- 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 WordPress steps into one automation
Under the hood
The code that runs this automation
from clickruntime import on_trigger, credentials, http, state, ai, report_fetched
SITE = "https://blog.example.com"
SCHEMA = {"type": "object", "required": ["tags", "category"], "properties": {
"tags": {"type": "array", "items": {"type": "string"}, "maxItems": 5}, "category": {"type": "string"}}}
def wp(method, path, **kw):
resp = http.request(method, f"{SITE}/wp-json/wp/v2/{path}", **kw,
auth=("admin", credentials.secret("WP_APP_PASSWORD")))
resp.raise_for_status()
return resp.json()
@on_trigger
def run(event):
done = set(state.get("done") or [])
posts = [p for p in wp("GET", "posts", params={"per_page": 20, "context": "edit", "status": "any"})
if not p["tags"] and p["id"] not in done]
report_fetched(len(posts))
if not posts:
return {"summary": "Nothing new"}
tags = {t["name"]: t["id"] for t in wp("GET", "tags", params={"per_page": 100})}
cats = {c["name"]: c["id"] for c in wp("GET", "categories", params={"per_page": 100})}
for p in posts:
pick = ai.generate(f"Title: {p['title']['raw']}\n\n{p['content']['raw'][:2500]}\n\nTags: {', '.join(tags)}\n"
f"Categories: {', '.join(cats)}", json_schema=SCHEMA, max_output_tokens=100,
system="Choose up to five tags and one category from the lists given.").json
tag_ids = [tags[t] for t in pick["tags"] if t in tags]
wp("POST", f"posts/{p['id']}", json={"tags": tag_ids, "categories": [cats.get(pick["category"], p["categories"][0])]})
done.add(p["id"])
state.set("done", sorted(done))
return {"tagged": len(posts)}FAQ
Common questions
Will it overwrite tags I set by hand?
What if the right category does not exist yet?
How soon after publishing does a post get tagged?
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
Rewrite feed articles into draft posts
New articles from feeds you follow are rewritten, or translated, into original drafts with a link back to the source.
See how it worksReply to new comments on your blog
Approved comments get a short, polite reply written for that comment and posted under your name.
See how it worksGet new comments by email with spam marked
You hear about each new comment, and the obvious spam is flagged so you can deal with it in one go.
See how it worksKeep exploring
Set up “Tag and categorise new posts automatically” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.