Every hour
Share each new blog post on Facebook and log it
Each new article on your blog is shared on your Facebook Page with a short caption and recorded in your sheet.
- Runs
- Every hour
- Apps
- Facebook Pages, Google Sheets
- AI
- Yes, uses the built-in AI allowance
- Access
- pages_manage_posts; Sheet edit
Send this to your assistant
Create a ClickRuntime automation: every 30 minutes, check my blog's feed. For each new article, write a short caption, share the link on my Facebook Page, and add a row to my Promotion sheet.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A marketing team publishes two blog posts a week but forgets to share half of them on Facebook, and nobody can say which ones were promoted. Traffic from social is patchy and hard to explain.
Every new article is now shared on the Page within half an hour of going live, with a caption that gives people a reason to click. Each share is logged in a sheet, so the team can compare posts and see what was promoted when.
What you get out of it
Every article gets promoted
No post goes live without being shared, even in a busy week.
Captions that invite clicks
A short, specific caption works better than a bare link.
A record the team can check
The sheet shows each article, its caption and when it was shared.
Shared while it's fresh
Posts go out within half an hour of publishing, when they're most timely.
How it works
What happens, step by step
Every 30 minutes, ClickRuntime checks your blog's feed for new articles.
It skips any article that's already been shared.
AI writes a short caption for each new article, and the link is shared on your Facebook Page.
A row is added to your sheet with the article, caption, date and post id.
Before it runs live
- Connect Facebook Pages
- Connect your Google Sheets account and pick the spreadsheets it may use
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 Google Sheets steps into one automation
Under the hood
The code that runs this automation
from datetime import date
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, SHEET_ID = "1234567890", "your-spreadsheet-id"
@on_trigger
def run(event):
shared = state.get("shared") or []
new = [e for e in feedparser.parse("https://blog.northwind.example/feed").entries if e.link not in shared]
report_fetched(len(new))
if not new:
return {"summary": "No new articles"}
sheets = build("sheets", "v4", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False)
for e in new:
caption = ai.generate(f"Two-sentence Facebook caption inviting people to read: {e.title}. {e.get('summary', '')[:500]}",
max_output_tokens=120).text
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()
sheets.spreadsheets().values().append(spreadsheetId=SHEET_ID, range="Promotion!A:D", valueInputOption="USER_ENTERED",
body={"values": [[date.today().isoformat(), e.title, caption, post["id"]]]}).execute()
shared.append(e.link)
state.set("shared", shared[-300:])
return {"shared": len(new)}FAQ
Common questions
What if I publish several posts at once?
Will older articles be shared when I first turn it on?
Can I write the caption myself sometimes?
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
Moderate Facebook comments and log their sentiment
New comments on your Page are sorted by AI: spam is hidden, questions get a reply, and every comment is logged with its sentiment in your sheet.
See how it worksCreate Facebook ads from rows in a sheet
Each ad you describe in a sheet row, with copy, image, audience and budget, is created in Ads Manager as a paused ad, with its ids written back.
See how it worksPost about trending topics on Facebook and log each post
Each day a post about a trending topic in your field goes out on your Facebook Page, and it's logged in your sheet with its link.
See how it worksKeep exploring
Set up “Share each new blog post on Facebook and log it” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.