Skip to content

Every 30 minutes

Turn new Drive docs into LinkedIn posts

Add book notes or an article draft to a Drive folder and AI turns it into a LinkedIn post.

Runs
Every 30 minutes
Apps
Google Drive, LinkedIn
AI
Yes, uses the built-in AI allowance
Access
Drive read; LinkedIn w_member_social

Send this to your assistant

Create a ClickRuntime automation: every 30 minutes, check my LinkedIn Notes folder in Drive for new Google Docs. Write a LinkedIn post from each one in my voice and publish it.

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

People who read and write a lot already have plenty to say on LinkedIn: book notes, talk outlines, half-finished articles. The material sits in Google Drive, and turning a three-page doc into a 150-word post is a job that keeps getting pushed to next week.

Dropping a doc into a folder is enough to have it summarised into a post with your angle. The writing you already did gets a second life in front of your network.

What you get out of it

  • Notes become posts

    Book notes and talk outlines that would otherwise stay private turn into posts your network can learn from.

  • Nothing new to learn

    You keep writing in Google Docs as before. Moving a doc into one folder is the only extra step.

  • The post keeps your angle

    The AI pulls out the main idea from your own notes, so the post reflects what you found important, not a generic summary.

  • Each doc is used once

    Docs that have already been posted are remembered, so nothing is published twice even if you edit them later.

How it works

What happens, step by step

  1. Every 30 minutes ClickRuntime checks your Drive folder for documents it has not seen before.

  2. It reads the text of each new document.

  3. AI writes a short LinkedIn post about its main idea in your voice.

  4. The post is published on LinkedIn and the document is remembered, so it is not posted again.

Before it runs live

  • Connect Google Drive
  • Connect LinkedIn

What you get

RunsEvery 30 minutes
Turn new Drive docs into LinkedIn poststoday, 9:00Succeeded
LinkedIn · Your profileFrom "Notes – The Effective Manager": "The best one-to-ones I've had at Acme were the ones where I talked least. Here's the question I now open with…"

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 Google Drive 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.
turn_new_drive_documents_into_linkedin_posts.pyexample
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from clickruntime import on_trigger, report_fetched, credentials, http, state, ai

FOLDER_ID = "your-drive-folder-id"

@on_trigger
def run(event):
    drive = build("drive", "v3", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False)
    done = set(state.get("done") or [])
    files = drive.files().list(q=f"'{FOLDER_ID}' in parents and mimeType = 'application/vnd.google-apps.document' and trashed = false",
                               fields="files(id,name)", pageSize=20).execute()["files"]
    new = [f for f in files if f["id"] not in done]
    report_fetched(len(new))
    if not new:
        return {"posted": 0}
    headers = {"Authorization": "Bearer " + credentials.connection("linkedin", "main"), "LinkedIn-Version": "202405"}
    me = http.get("https://api.linkedin.com/v2/userinfo", headers=headers).json()["sub"]
    for f in new:
        text = drive.files().export(fileId=f["id"], mimeType="text/plain").execute().decode(errors="ignore")
        post = ai.generate(f"Notes titled '{f['name']}':\n{text[:6000]}", max_output_tokens=400,
                           system="Write a 150-word first-person LinkedIn post about the single most useful idea in these notes.").text
        http.post("https://api.linkedin.com/rest/posts", headers=headers, json={
            "author": f"urn:li:person:{me}", "commentary": post, "visibility": "PUBLIC", "lifecycleState": "PUBLISHED",
            "distribution": {"feedDistribution": "MAIN_FEED", "targetEntities": [], "thirdPartyDistributionChannels": []}}).raise_for_status()
        done.add(f["id"])
    state.set("done", list(done))
    return {"posted": len(new)}

FAQ

Common questions

Which file types does it read?
Google Docs and plain text files. The text is read and summarised; images inside the doc are not used.
What if I edit a doc after it was posted?
It is not posted again. Each doc is used once, when it first appears in the folder.
Can I review the post first?
Yes. Ask for the post to be emailed to you as a draft instead of published, and you can post it yourself.
What permissions does it need?
Drive read; 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 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 “Turn new Drive docs into LinkedIn posts” from your assistant

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