Skip to content

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.

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

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

  2. It skips articles already shared.

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

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

RunsEvery 30 minutes
Share new blog posts on Facebook and get an emailtoday, 9:00Succeeded
Gmail · SharedShared: Planting bulbs for spring. October is the month to get tulips in the ground. Here's how.

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 Gmail 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.pyexample
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?
No. On the first run it notes the articles already on your blog and only shares new ones.
Can I use my own excerpt?
Yes. If an article has an excerpt, it can be used as the caption.
What if Facebook rejects the post?
The email tells you it failed and why, so you can share it by hand.
What permissions does it need?
pages_manage_posts; gmail.send. 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 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.