Skip to content

Daily

Post trending topics to LinkedIn and log them in a sheet

Trending topics in your field become LinkedIn posts, and every post is logged in your sheet with its link.

Runs
Daily
Apps
Google Sheets, LinkedIn
AI
Yes, uses the built-in AI allowance
Access
LinkedIn w_member_social (or w_organization_social); Sheets edit

Send this to your assistant

Create a ClickRuntime automation: every weekday at 9, pick the top trending topic from my industry feeds, write a LinkedIn post about it, publish it, log it in my Posts sheet and email me the link.

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 cybersecurity consultant wants to be seen commenting on the week's news on LinkedIn, but by the time they've read the story and written something thoughtful, everyone else has posted.

Each weekday the top story from their chosen feeds becomes a LinkedIn post with a point of view, published early. Every post is logged in a sheet, so they can see what topics get engagement and what they've already covered.

What you get out of it

  • Early to the conversation

    Posts go out while the story is still fresh.

  • A log of everything posted

    The sheet records topics, text and links for later review.

  • No repeated topics

    Stories already covered are skipped.

  • Builds a reputation

    Regular, timely commentary makes you a familiar voice in your field.

How it works

What happens, step by step

  1. Every weekday morning, ClickRuntime reads your chosen news feeds.

  2. It skips stories you've already posted about, and AI writes a LinkedIn post on the top new one.

  3. The post is published to LinkedIn.

  4. A row is added to your sheet with the date, topic and post link, and you get an email.

Before it runs live

  • Connect your Google Sheets account and pick the spreadsheets it may use
  • Connect LinkedIn

What you get

RunsDaily
Post trending topics to LinkedIn and log them in a sheettoday, 9:00Succeeded
Google Sheets · Posts2026-10-17 | Major router vendor patches critical flaw | linkedin.com/feed/update/urn:li:share:7...

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 Google Sheets and LinkedIn 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.
multi_network_posts_from_trending_topics_logged_in_sheets.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, notify

AUTHOR, SHEET_ID = "urn:li:person:abc123", "your-spreadsheet-id"

@on_trigger
def run(event):
    sheets = build("sheets", "v4", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False)
    done = {r[1] for r in sheets.spreadsheets().values().get(spreadsheetId=SHEET_ID, range="Posts!A2:B").execute().get("values", []) if len(r) > 1}
    story = next((e for e in feedparser.parse("https://feeds.example.org/security.rss").entries if e.title not in done), None)
    if not story:
        return {"posted": False}
    text = ai.generate(f"LinkedIn post with a clear point of view for a security consultant on: {story.title}. Include the link {story.link}.",
                       max_output_tokens=400).text.strip()
    r = http.post("https://api.linkedin.com/rest/posts",
                  headers={"Authorization": f"Bearer {credentials.connection('linkedin', 'work')}", "LinkedIn-Version": "202409"},
                  json={"author": AUTHOR, "commentary": text, "visibility": "PUBLIC", "lifecycleState": "PUBLISHED",
                        "distribution": {"feedDistribution": "MAIN_FEED"}})
    url = f"https://www.linkedin.com/feed/update/{r.headers.get('x-restli-id')}"
    sheets.spreadsheets().values().append(spreadsheetId=SHEET_ID, range="Posts!A:C", valueInputOption="USER_ENTERED",
                                          body={"values": [[date.today().isoformat(), story.title, url]]}).execute()
    notify.email_me(f"Posted on LinkedIn: {story.title}", url)
    return {"posted": url}

FAQ

Common questions

Where do topics come from?
From the news feeds and blogs you choose. The most recent story not yet covered is used.
Can it post to my other networks too?
Yes. Add X or Facebook in the prompt and each gets its own version.
Can I set my point of view?
Describe your stance and style in the prompt, and posts follow it.
What permissions does it need?
LinkedIn w_member_social (or w_organization_social); Sheets 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 trending topics to LinkedIn and log them in a sheet” from your assistant

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