On a schedule
Publish 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.
- Runs
- On a schedule
- Apps
- Facebook Pages, WordPress
- AI
- Yes, uses the built-in AI allowance
- Access
- WordPress write (Author+); pages_manage_posts
Send this to your assistant
Create a ClickRuntime automation: every Monday, take the next topic from my list, have AI write an SEO blog post, publish it to WordPress and share it on my Facebook Page.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A family-owned pet supply shop wants a blog post every week to help with search and to give its Facebook followers something useful to read. The owners have a list of topics, from puppy training to winter paw care, but writing and sharing a post every week does not fit around running the shop.
This automation handles the routine. Every Monday it takes the next topic, AI writes the article, it is published on WordPress, and a caption with the link goes out on the shop's Facebook Page. If the owners prefer to check each one first, the post can be saved as a draft and emailed to them instead.
What you get out of it
A blog and Page that stay active
A new article and Facebook post every week, without anyone setting aside the time. Consistency builds both search traffic and followers.
Followers go to your site
Each Facebook post links to your website, where your products are.
Topics you chose
Every post comes from your own list, in the order you set.
Draft mode for peace of mind
Switch to drafts and an email arrives for review; nothing is shared on Facebook until you publish.
How it works
What happens, step by step
On your schedule, ClickRuntime takes the next unused topic from your list.
AI writes a blog post with a title, excerpt and headings, plus a short Facebook caption.
The post is published on WordPress.
The caption and link are posted on your Facebook Page, and the topic is marked as used.
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
- 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 Facebook Pages and WordPress steps into one automation
Under the hood
The code that runs this automation
from clickruntime import on_trigger, credentials, http, state, ai, notify
PAGE_ID = "your-page-id"
TOPICS = ["Winter paw care for dogs", "Choosing the right cat litter", "Puppy training: the first week"]
SCHEMA = {"type": "object", "properties": {k: {"type": "string"} for k in ["title", "excerpt", "body_html", "caption"]}, "required": ["title", "excerpt", "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):
used = state.get("used") or 0
if used >= len(TOPICS):
notify.email_me("Blog topic list is empty", "Add more topics to keep the weekly post going.")
return {"posted": False}
art = ai.generate(f"Write a 900-word SEO blog post (HTML body, H2 headings) for pet owners on '{TOPICS[used]}', plus a friendly 1-2 sentence Facebook caption.",
json_schema=SCHEMA, max_output_tokens=2048).json
post = wp("POST", "posts", json={"title": art["title"], "excerpt": art["excerpt"], "content": art["body_html"], "status": "publish"})
post_to_page(art["caption"], post["link"])
state.set("used", used + 1)
return {"posted": post["link"]}FAQ
Common questions
Can I review before it is published?
How often can it post?
What happens when the topic list runs out?
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 worksRewrite 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.
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 worksKeep exploring
Set up “Publish a scheduled blog post and share it on Facebook” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.