Skip to content

Daily or weekly

Draft a LinkedIn post from your content sheet every weekday

Each weekday you get an email with a ready-to-edit LinkedIn post about the next idea in your Content sheet.

Runs
Daily or weekly
Apps
Gmail, Google Sheets
AI
Yes, uses the built-in AI allowance
Access
Sheets read+write; Gmail gmail.send

Send this to your assistant

Create a ClickRuntime automation: every weekday, take the first 'Pending' row in my Content sheet, write a LinkedIn post about it, email me the draft and mark it 'Drafted'.

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 consultant knows she should post on LinkedIn a few times a week. She keeps a sheet of ideas: a client lesson, a common mistake, a new article. The list grows, but the posts do not, because starting from a blank page at the end of a long day rarely happens.

This automation turns one idea a day into a first draft and sends it to her inbox, so posting becomes a five-minute edit rather than a writing task.

What you get out of it

  • A steady posting rhythm

    One draft each weekday keeps you visible to clients and prospects without blocking time to write.

  • Your ideas, your voice

    Drafts come from the topics and notes you put in the sheet, so they reflect what you actually want to say.

  • You stay in control

    Nothing is published. The draft arrives by email and you decide whether to post it, change it or skip it.

  • A clear record of what was drafted

    Each row is marked Drafted with the text saved alongside it, so you can see what is used and what is still waiting.

How it works

What happens, step by step

  1. Every weekday morning ClickRuntime opens your Content sheet and finds the first row marked Pending.

  2. AI writes a LinkedIn post based on that row's topic and notes.

  3. The draft is emailed to you from your Gmail account.

  4. The row is marked Drafted and the draft text is saved next to it, so the same idea is never used twice.

Before it runs live

  • Connect Google through your own Google app (a one-time, 10-minute setup), so it works with your own Gmail
  • Connect your Google Sheets account and pick the spreadsheets it may use

What you get

RunsDaily or weekly
Draft a LinkedIn post from your content sheet every weekdaytoday, 9:00Succeeded
Email · LinkedIn draftLinkedIn draft: Why Northwind cut onboarding time in half. "Most onboarding problems are not training problems..."

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 Gmail 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_drafts_from_a_sheet_queue_approved_by_email.pyexample
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
import base64
from email.mime.text import MIMEText
from clickruntime import on_trigger, credentials, ai

SHEET_ID = "your-spreadsheet-id"
ME = "you@example.com"

@on_trigger
def run(event):
    creds = Credentials(credentials.connection("google", "work"))
    sheets = build("sheets", "v4", credentials=creds, cache_discovery=False).spreadsheets()
    rows = sheets.values().get(spreadsheetId=SHEET_ID, range="Content!A2:C").execute().get("values", [])
    i = next((n for n, r in enumerate(rows) if len(r) > 2 and r[2] == "Pending"), None)
    if i is None:
        return {"drafted": 0}
    topic, notes = rows[i][0], rows[i][1]
    draft = ai.generate(f"Write a LinkedIn post (under 200 words, no hashtags spam) about: {topic}\nNotes: {notes}",
                        max_output_tokens=500).text
    msg = MIMEText(draft)
    msg["to"], msg["subject"] = ME, f"LinkedIn draft: {topic}"
    build("gmail", "v1", credentials=creds, cache_discovery=False).users().messages().send(
        userId="me", body={"raw": base64.urlsafe_b64encode(msg.as_bytes()).decode()}).execute()
    sheets.values().update(spreadsheetId=SHEET_ID, range=f"Content!C{i + 2}:D{i + 2}", valueInputOption="RAW",
                           body={"values": [["Drafted", draft]]}).execute()
    return {"drafted": topic}

FAQ

Common questions

Does it post to LinkedIn for me?
No. It emails you the draft so you can review it and post it yourself. That keeps every published post under your control.
What should I put in the sheet?
A topic and a few notes per row, such as the point you want to make or a client example. The more specific the notes, the better the draft.
What happens when there are no Pending rows left?
It simply does nothing that day. Add new rows marked Pending and drafts start again the next weekday.
What permissions does it need?
Sheets read+write; Gmail 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 runs (daily or 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 a LinkedIn post from your content sheet every weekday” from your assistant

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