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'.
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
Every weekday morning ClickRuntime opens your Content sheet and finds the first row marked Pending.
AI writes a LinkedIn post based on that row's topic and notes.
The draft is emailed to you from your Gmail account.
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
Build your own
Need it to work differently?
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
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?
What should I put in the sheet?
What happens when there are no Pending rows left?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Fill your timesheet from the emails you sent today
Each evening your timesheet gets rows for the clients and projects you emailed about, ready to check before invoicing.
See how it worksGet a weekly email summary of new form responses
Every Friday you get one email that sums up the week's new feedback in your responses sheet, question by question.
See how it worksCopy a table from a web page into a sheet every morning
Each morning the listings on a page you choose are added to your Google Sheet, and you get the same rows by email as a CSV.
See how it worksKeep exploring
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.