Daily
Post to LinkedIn daily and get an email copy
A fresh LinkedIn post goes out each weekday from your topic list, and a copy with the link lands in your inbox.
- Runs
- Daily
- Apps
- Gmail, LinkedIn
- AI
- Yes, uses the built-in AI allowance
- Access
- w_member_social; gmail.send
Send this to your assistant
Create a ClickRuntime automation: every weekday at 9am, write a LinkedIn post on the next topic in my list, publish it on my profile, and email me what was posted with the link.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A consultant knows that posting on LinkedIn a few times a week brings in enquiries, but the habit always slips when client work gets busy. Weeks go by without a post, and the audience built over months stops seeing their name. Writing each post from scratch is the part that never happens.
With a list of topics and a short description of your voice, a post goes out on schedule without you opening LinkedIn. The confirmation email means you always know what was published, so you can reply to comments or take a post down quickly if something reads wrong.
What you get out of it
Your presence stays steady
Posts keep going out during busy weeks and holidays. A steady rhythm is what keeps you in people's feeds, more than any single great post.
You always know what went out
The email copy with the link means nothing is published behind your back. You can check the wording over coffee and respond to early comments.
Topics follow your plan
Posts come from the list you wrote, in order, so the content matches what you want to be known for rather than whatever the AI thinks is popular.
Less time spent writing
The draft that takes forty minutes to write by hand is ready on schedule. That time goes back to client work or to replying to the people who engage.
How it works
What happens, step by step
Each weekday morning ClickRuntime takes the next topic from your list.
AI writes a LinkedIn post on that topic in the tone you described.
The post is published on your LinkedIn profile.
You get an email with the full text and a link to the live post, and the topic is marked as used so it is not repeated.
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 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 Gmail and LinkedIn steps into one automation
Under the hood
The code that runs this automation
import base64
from email.message import EmailMessage
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from clickruntime import on_trigger, credentials, http, state, ai
TOPICS = ["Pricing a fixed-fee project", "Saying no to scope creep", "What a good kickoff call covers"]
ME = "me@example.com"
@on_trigger
def run(event):
i = state.get("next") or 0
if i >= len(TOPICS):
return {"posted": False, "reason": "topic list used up"}
text = ai.generate(f"Write a LinkedIn post of about 150 words on: {TOPICS[i]}",
system="Plain, practical first-person tone. No hashtags.", max_output_tokens=400).text.strip()
token = credentials.connection("linkedin", "main")
headers = {"Authorization": f"Bearer {token}", "LinkedIn-Version": "202405", "X-Restli-Protocol-Version": "2.0.0"}
me = http.get("https://api.linkedin.com/v2/userinfo", headers=headers).json()["sub"]
resp = http.post("https://api.linkedin.com/rest/posts", headers=headers, json={
"author": f"urn:li:person:{me}", "commentary": text, "visibility": "PUBLIC", "lifecycleState": "PUBLISHED",
"distribution": {"feedDistribution": "MAIN_FEED", "targetEntities": [], "thirdPartyDistributionChannels": []}})
resp.raise_for_status()
msg = EmailMessage()
msg["To"], msg["Subject"] = ME, f"Posted on LinkedIn: {TOPICS[i]}"
msg.set_content(f"{text}\n\nhttps://www.linkedin.com/feed/update/{resp.headers['x-restli-id']}")
gmail = build("gmail", "v1", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False)
gmail.users().messages().send(userId="me", body={"raw": base64.urlsafe_b64encode(msg.as_bytes()).decode()}).execute()
state.set("next", i + 1)
return {"posted": True, "topic": TOPICS[i]}FAQ
Common questions
What happens when the topic list runs out?
Can I change the tone of the posts?
Can I delete a post it published?
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
Approve LinkedIn posts from your inbox
Each week AI drafts a LinkedIn post and emails it to you; one click on the approve link publishes it.
See how it worksGet daily LinkedIn drafts on trending topics
Each morning you get a LinkedIn draft about something new in your field, ready to publish with one click.
See how it worksPost ideas from your content list to LinkedIn
Each day the next idea in your content sheet becomes a published LinkedIn post, and you get an email when it is live.
See how it worksKeep exploring
Set up “Post to LinkedIn daily and get an email copy” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.