Every 30 minutes
Share new blog posts on Facebook and get an email
Each new blog article is shared on your Facebook Page with a caption, and you get an email confirming it.
- Runs
- Every 30 minutes
- Apps
- Facebook Pages, Gmail
- AI
- Yes, uses the built-in AI allowance
- Access
- pages_manage_posts; gmail.send
Send this to your assistant
Create a ClickRuntime automation: every 30 minutes, check my blog feed. For each new article, write a caption, share it on my Facebook Page and email me the link to the post.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A garden centre writes seasonal advice on its blog, but sharing each article on Facebook depends on the marketing assistant, who works two days a week. Articles published on other days go unshared.
Every new article is now shared on the Page within half an hour, with a caption that makes people want to read it, and an email confirms each share.
What you get out of it
Every article promoted
No post is missed because of who was in that day.
Captions that get clicks
A short, specific caption works better than a bare link.
Confirmation in your inbox
You know each share happened and can check it.
Never shared twice
Each article is remembered once it's been posted.
How it works
What happens, step by step
Every 30 minutes, ClickRuntime checks your blog feed for new articles.
It skips articles already shared.
AI writes a short caption, and the article is shared on your Facebook Page.
You get an email from Gmail with the post link.
Before it runs live
- Connect Facebook Pages
- Connect Google through your own Google app (a one-time, 10-minute setup), so it works with your own Gmail
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 Gmail steps into one automation
Under the hood
The code that runs this automation
import base64
import feedparser
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from clickruntime import on_trigger, credentials, http, ai, state, report_fetched
PAGE_ID = "1234567890"
@on_trigger
def run(event):
shared = state.get("shared") or []
new = [e for e in feedparser.parse("https://northwind-garden.example/blog/feed").entries if e.link not in shared]
report_fetched(len(new))
if not new:
return {"summary": "No new articles"}
gmail = build("gmail", "v1", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False)
for e in new:
caption = ai.generate(f"Two-sentence Facebook caption for: {e.title}", max_output_tokens=100).text.strip()
post = http.post(f"https://graph.facebook.com/v21.0/{PAGE_ID}/feed",
data={"message": caption, "link": e.link, "access_token": credentials.connection("facebook", "work")}).json()
raw = f"To: me\r\nSubject: Shared: {e.title}\r\n\r\n{caption}\nhttps://facebook.com/{post['id']}"
gmail.users().messages().send(userId="me", body={"raw": base64.urlsafe_b64encode(raw.encode()).decode()}).execute()
shared.append(e.link)
state.set("shared", shared[-300:])
return {"shared": len(new)}FAQ
Common questions
Will old articles be shared?
Can I use my own excerpt?
What if Facebook rejects the post?
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
Publish AI posts to your Page with an email record
AI writes and publishes a Facebook post from your topic list, and you get an email with the text and link of what went out.
See how it worksApprove trend-based Facebook posts from your inbox
AI drafts posts about trending topics in your field and emails them to you; the ones you approve are published to your Page.
See how it worksGet a Meta Ads report with commentary by email
Each Monday you get an email with last week's Meta ad results by campaign and a few lines on what they mean.
See how it worksKeep exploring
Set up “Share new blog posts on Facebook and get an email” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.