Daily
Publish a LinkedIn post with an image each day
Each day the next topic on your list becomes a LinkedIn post with a matching image, saved in Drive and published.
- Runs
- Daily
- Apps
- Google Drive, LinkedIn
- AI
- Yes, uses the built-in AI allowance
- Access
- Drive write; LinkedIn w_member_social
Send this to your assistant
Create a ClickRuntime automation: every weekday at 9am, take the next topic from my list, write a LinkedIn post about it, make a simple quote card image, save the image to my Drive folder and publish the post with it.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
Posts with an image get noticed far more in a busy LinkedIn feed, but creating a graphic for every post is the step most solo marketers and founders skip. Without a designer, it means opening a design tool each time, so most posts go out as plain text or not at all.
Producing the text and a simple branded image together means every post goes out with a visual. Keeping the images in Drive gives you a library you can reuse in newsletters and slides.
What you get out of it
Every post has a visual
A quote card stops people scrolling more often than plain text, so your posts get seen by more of your network.
No design tool needed
The image is made from the post's key line in your colours, so you do not need to open a design app every day.
A reusable image library
Every image is saved to Drive, ready for slides, newsletters or reposting later.
A steady daily rhythm
Working down a topic list keeps posting regular and on message, even in the weeks you are busy.
How it works
What happens, step by step
Each weekday ClickRuntime takes the next topic from your list.
AI writes a LinkedIn post and a short headline line for the image.
A simple image card is made from the headline and saved to your Drive folder.
The post is published on LinkedIn with the image, and the topic is marked as used.
Before it runs live
- Connect Google Drive
- Connect LinkedIn
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 Google Drive and LinkedIn steps into one automation
Under the hood
The code that runs this automation
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from googleapiclient.http import MediaInMemoryUpload
import io, textwrap
from PIL import Image, ImageDraw, ImageFont # declared dependency: pillow
from clickruntime import on_trigger, credentials, http, state, ai
TOPICS = ["Hiring your first support person", "Writing a useful changelog"]
FOLDER_ID = "your-drive-folder-id"
SCHEMA = {"type": "object", "required": ["post", "headline"], "properties": {"post": {"type": "string"}, "headline": {"type": "string"}}}
@on_trigger
def run(event):
i = state.get("next") or 0
if i >= len(TOPICS):
return {"posted": False}
out = ai.generate(f"Topic: {TOPICS[i]}", json_schema=SCHEMA, max_output_tokens=500,
system="Write a 150-word LinkedIn post and a headline of at most 8 words for an image card.").json
card = Image.new("RGB", (1200, 627), "#1f3a5f")
ImageDraw.Draw(card).multiline_text((80, 220), textwrap.fill(out["headline"], 28), fill="white",
font=ImageFont.load_default(size=64), spacing=16)
buf = io.BytesIO()
card.save(buf, "PNG")
png = buf.getvalue()
drive = build("drive", "v3", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False)
drive.files().create(body={"name": f"{TOPICS[i]}.png", "parents": [FOLDER_ID]},
media_body=MediaInMemoryUpload(png, mimetype="image/png")).execute()
headers = {"Authorization": "Bearer " + credentials.connection("linkedin", "main"), "LinkedIn-Version": "202405"}
me = "urn:li:person:" + http.get("https://api.linkedin.com/v2/userinfo", headers=headers).json()["sub"]
init = http.post("https://api.linkedin.com/rest/images?action=initializeUpload", headers=headers,
json={"initializeUploadRequest": {"owner": me}}).json()["value"]
http.put(init["uploadUrl"], data=png, headers={"Authorization": headers["Authorization"]}).raise_for_status()
http.post("https://api.linkedin.com/rest/posts", headers=headers, json={
"author": me, "commentary": out["post"], "visibility": "PUBLIC", "lifecycleState": "PUBLISHED",
"content": {"media": {"id": init["image"]}},
"distribution": {"feedDistribution": "MAIN_FEED", "targetEntities": [], "thirdPartyDistributionChannels": []}}).raise_for_status()
state.set("next", i + 1)
return {"posted": TOPICS[i]}FAQ
Common questions
What does the image look like?
Where are the images stored?
What happens when the topic list is used up?
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
Post videos and images from Drive to LinkedIn
Drop a video or image in a Drive folder and it is posted to LinkedIn on your schedule, then moved to a Posted folder.
See how it worksTurn one idea into posts for every network
Send one idea and get a LinkedIn post published plus versions for other networks saved in Drive.
See how it worksTurn 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.
See how it worksKeep exploring
Set up “Publish a LinkedIn post with an image each day” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.