Skip to content

Weekly

Draft LinkedIn posts inspired by high-performing ones you collect

Posts you save to a sheet because they did well are studied, and new drafts in your own voice are added to the sheet, with one published each week.

Runs
Weekly
Apps
Google Sheets, LinkedIn
AI
Yes, uses the built-in AI allowance
Access
Sheets edit; LinkedIn w_member_social

Send this to your assistant

Create a ClickRuntime automation: every Monday at 8, read the high-engagement LinkedIn posts I've collected in my Swipe sheet, work out what made them work, add three drafts in my voice to the Drafts tab, and publish the best one.

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 sales coach saves LinkedIn posts that got a big response into a sheet, meaning to learn from them. The sheet grows; their own posting doesn't change.

Each Monday the collected posts are studied for what made them land, such as the opening line, the structure or the story. Three drafts in the coach's own voice go into the sheet, and the strongest is published, so the swipe file finally pays off.

What you get out of it

  • Learn from what works

    Each week's drafts use patterns from posts that actually performed.

  • Your voice, not a copy

    Drafts borrow structure, not words, and are written about your own topics.

  • Drafts stored for later

    Unused drafts stay in the sheet for another week.

  • A post every week

    One draft is published, so you stay visible.

How it works

What happens, step by step

  1. Every Monday, ClickRuntime reads the posts you've collected in your sheet.

  2. AI notes what made them work and writes three new drafts in your voice on your topics.

  3. The drafts are added to the Drafts tab of your sheet.

  4. The strongest draft is published to LinkedIn and marked as posted.

Before it runs live

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

What you get

RunsWeekly
Draft LinkedIn posts inspired by high-performing ones you collecttoday, 9:00Succeeded
Google Sheets · Drafts2026-10-20 | Most founders don't lose deals on price. They lose them in the first call. | posted

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.
write_posts_inspired_by_viral_linkedin_content.pyexample
from datetime import date
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from clickruntime import on_trigger, credentials, http, ai

AUTHOR, SHEET_ID = "urn:li:person:abc123", "your-spreadsheet-id"
VOICE = "Sales coach for B2B founders. Direct, practical, short sentences, real examples."

@on_trigger
def run(event):
    values = build("sheets", "v4", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False).spreadsheets().values()
    swipe = [r[0][:800] for r in values.get(spreadsheetId=SHEET_ID, range="Swipe!A2:A").execute().get("values", []) if r][-15:]
    out = ai.generate(f"Voice: {VOICE}\nHigh-performing posts:\n" + "\n---\n".join(swipe) +
                      "\nWrite 3 original drafts on my own topics using what made these work. Mark the best.", max_output_tokens=1500,
                      json_schema={"type": "object", "properties": {"drafts": {"type": "array", "items": {"type": "string"}}, "best": {"type": "integer"}}}).json
    best = out["drafts"][out["best"]]
    http.post("https://api.linkedin.com/rest/posts",
              headers={"Authorization": f"Bearer {credentials.connection('linkedin', 'work')}", "LinkedIn-Version": "202409"},
              json={"author": AUTHOR, "commentary": best, "visibility": "PUBLIC", "lifecycleState": "PUBLISHED",
                    "distribution": {"feedDistribution": "MAIN_FEED"}})
    rows = [[date.today().isoformat(), d, "posted" if d == best else ""] for d in out["drafts"]]
    values.append(spreadsheetId=SHEET_ID, range="Drafts!A:C", valueInputOption="USER_ENTERED", body={"values": rows}).execute()
    return {"drafts": len(rows)}

FAQ

Common questions

Does it copy other people's posts?
No. It looks at structure and approach, such as how a post opens, then writes about your own subject in your own words.
How do I add posts to learn from?
Paste the post text and its reactions count into the Swipe tab whenever you see one worth saving.
Can I stop it from publishing?
Yes. Ask for drafts only, and pick what to post yourself.
What permissions does it need?
Sheets edit; LinkedIn w_member_social. 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 (weekly). 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 “Draft LinkedIn posts inspired by high-performing ones you collect” from your assistant

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