Skip to content

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.

Paste it into your assistant. It tells you what it will send or change before it runs live.

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

  1. Every 30 minutes, ClickRuntime checks your blog's feed for new articles.

  2. It skips any article that's already been shared.

  3. AI writes a short caption for each new article, and the link is shared on your Facebook Page.

  4. 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

RunsEvery hour
Share each new blog post on Facebook and log ittoday, 9:00Succeeded
Facebook · Northwind PageMost warehouses lose hours to manual counts. Here's how one team cut theirs in half. 👇

Build your own

Need it to work differently?

This template is a starting point. Copy the prompt and change it, or describe a different automation from scratch, with your own conditions, more apps or an AI step. Your assistant writes it, tests it and runs it on ClickRuntime.
  • 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

This is the Python script that runs each time the automation starts. Your AI assistant writes it for you when you send the prompt, and you allow each step in your assistant. To change how the automation works, describe the change to your assistant and it updates the script for you. For every function it can use, see the script reference.
promote_new_blog_posts_on_facebook_tracked_in_a_sheet.pyexample
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?
Each one is shared separately, a few minutes apart, so your Page doesn't post three links in one go.
Will older articles be shared when I first turn it on?
No. On the first run it notes the articles already on your blog and only shares ones published after that.
Can I write the caption myself sometimes?
Yes. If the article has a summary or excerpt you've written, it can be used as the caption instead.
What permissions does it need?
pages_manage_posts; Sheet edit. Nothing else in your accounts is used.
Does it need AI?
Yes. It uses ClickRuntime's built-in AI, so you don't need an OpenAI or Anthropic key. Every plan includes a monthly AI allowance.
How many runs does it use?
One run each time it checks. Checks that find nothing new and stop right away aren't counted.
Can I change how it works?
Yes. Describe the change to your AI assistant, for example a different schedule, channel or filter. It updates the automation, tests it and tells you what changed.

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.