Weekly
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.
- Runs
- Weekly
- Apps
- Gmail, LinkedIn
- AI
- Yes, uses the built-in AI allowance
- Access
- gmail.send; w_member_social
Send this to your assistant
Create a ClickRuntime automation: every Monday, draft a LinkedIn post about our product updates and email it to me with an approve link. Only publish it when I click approve.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A founder wants the company to post on LinkedIn every week, but anything that goes out under their name has to be checked first. Drafts sit in a shared doc waiting for review, and by the time someone remembers, the week has passed and nothing was posted.
Putting the draft in the founder's inbox with a single approve link removes the waiting. Review happens where they already spend their day, and the post goes live the moment they agree with it.
What you get out of it
Nothing goes out unchecked
Posts are only published after you click approve, so the AI never speaks for you without your say. That makes it safe to use for a company or a personal brand.
Review takes seconds
The draft arrives in your inbox with the full text. Reading it and clicking a link fits between meetings, so approvals stop piling up.
A weekly rhythm without chasing
The draft arrives on the same day each week, which keeps posting regular without someone having to remind the founder.
Ignored drafts simply expire
If you do not approve a draft, nothing happens, and next week's draft replaces it. There is no backlog of stale posts to clean up.
How it works
What happens, step by step
Every Monday AI writes a LinkedIn post draft from the brief you gave.
The draft is saved and emailed to you from your Gmail with an approve link.
When you click the link, the post is published on LinkedIn.
Each draft can only be published once, so clicking the link twice does not post it again.
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, uuid
from email.message import EmailMessage
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from clickruntime import on_trigger, on_event, credentials, http, state, ai
ME = "me@example.com"
APPROVE_URL = "https://your-trigger-link" # this automation's trigger link
@on_trigger
def draft(event):
text = ai.generate("Write a LinkedIn post of about 120 words on this week's product updates at our company.",
max_output_tokens=350).text.strip()
key = uuid.uuid4().hex
state.set(f"draft:{key}", text)
msg = EmailMessage()
msg["To"], msg["Subject"] = ME, "LinkedIn draft for approval"
msg.set_content(f"{text}\n\nApprove and publish: {APPROVE_URL}?draft={key}")
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()
return {"draft": key}
@on_event
def approve(event):
key = (event.json or {}).get("draft", "")
text = state.get(f"draft:{key}")
if not text:
return {"published": False}
headers = {"Authorization": "Bearer " + credentials.connection("linkedin", "main"), "LinkedIn-Version": "202405"}
me = http.get("https://api.linkedin.com/v2/userinfo", headers=headers).json()["sub"]
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": []}}).raise_for_status()
state.delete(f"draft:{key}")
return {"published": True}FAQ
Common questions
How do I reject a draft?
Can I edit the draft before it posts?
Can someone else approve instead of me?
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 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.
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 “Approve LinkedIn posts from your inbox” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.