Skip to content

Daily

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

Runs
Daily
Apps
Facebook Pages, Google Sheets
AI
Yes, uses the built-in AI allowance
Access
pages_manage_posts, pages_read_engagement; Sheet edit

Send this to your assistant

Create a ClickRuntime automation: every weekday at 10, pick a trending topic from my industry feeds, write a Facebook post about it, publish it to my Page and log the topic, text and post id in my Posts 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 local fitness studio wants its Facebook Page to feel active, but the owner teaches all day and only posts when there's a promotion. The Page looks quiet between offers, and followers drift away.

Each weekday a short post about something people in fitness are talking about goes out on the Page. Every post is logged in a sheet with its topic, text and link, so the owner can see what was published and which topics got a response.

What you get out of it

  • A Page that stays active

    Regular, relevant posts keep followers engaged between promotions.

  • Timely topics

    Posts follow what people in your field are discussing this week, not a stale list of ideas.

  • A full record in the sheet

    Every post's topic, text and link are logged, so nothing published is a mystery.

  • No repeated topics

    Topics already covered are skipped, so followers don't see the same subject twice.

How it works

What happens, step by step

  1. Every weekday morning, ClickRuntime reads your chosen news feeds for the latest topics.

  2. It skips topics it has already posted about.

  3. AI writes a short Facebook post about the top new topic, and it is published to your Page.

  4. A row is added to your sheet with the date, topic, text 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

RunsDaily
Post about trending topics on Facebook and log each posttoday, 9:00Succeeded
Google Sheets · Posts2026-10-17 | Zone 2 training | Why slow runs make you faster... | 1234567890_9876

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

  • 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 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.
ai_trend_based_posts_published_and_logged_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

PAGE_ID, SHEET_ID = "1234567890", "your-spreadsheet-id"

@on_trigger
def run(event):
    posted = state.get("posted") or []
    items = [e for e in feedparser.parse("https://www.reddit.com/r/fitness/top/.rss?t=day").entries if e.link not in posted]
    if not items:
        return {"posted": 0}
    item = items[0]
    text = ai.generate(f"Write a friendly 3-sentence Facebook post for a fitness studio about: {item.title}",
                       max_output_tokens=200).text
    post = http.post(f"https://graph.facebook.com/v21.0/{PAGE_ID}/feed",
                     data={"message": text, "access_token": credentials.connection("facebook", "work")}).json()
    sheets = build("sheets", "v4", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False)
    sheets.spreadsheets().values().append(spreadsheetId=SHEET_ID, range="Posts!A:D", valueInputOption="USER_ENTERED",
                                          body={"values": [[date.today().isoformat(), item.title, text, post["id"]]]}).execute()
    state.set("posted", (posted + [item.link])[-200:])
    return {"post": post["id"]}

FAQ

Common questions

Where do the trending topics come from?
From the news feeds or forums you name in the prompt, such as industry blogs or a subreddit. The most-discussed recent item not yet posted is chosen.
Can I check posts before they go live?
Yes. Ask for posts to be written into the sheet as drafts with a Ready column, and only rows you mark ready are published.
Can it add an image?
Yes, if the source article has one, or if you keep a list of brand images in the sheet to rotate through.
What permissions does it need?
pages_manage_posts, pages_read_engagement; 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 runs (daily). Checks that find nothing to do 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 “Post about trending topics on Facebook and log each post” from your assistant

Copy the prompt above, or connect your assistant first. Free plan, no credit card.