Every 30 minutes
Turn newsletters you read into LinkedIn posts
Newsletters you label in Gmail become LinkedIn posts in your own voice, sharing what you learned.
- Runs
- Every 30 minutes
- Apps
- Gmail, LinkedIn
- AI
- Yes, uses the built-in AI allowance
- Access
- gmail.modify; w_member_social
Send this to your assistant
Create a ClickRuntime automation: every 30 minutes, check Gmail for emails labelled Share. Turn each one into a short LinkedIn post in my voice about the key idea, publish it, and remove the label.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
Many professionals read excellent newsletters every week and think "my network should see this", then never get round to writing the post. The insight stays in their inbox, and their LinkedIn profile stays quiet even though they are reading more than most.
Labelling a newsletter is a two-second habit. Turning that label into a published post with your own angle means the reading you already do becomes visible content, credited and in your words.
What you get out of it
Your reading becomes content
The time you already spend on newsletters now feeds your LinkedIn profile. There is no separate writing session to plan.
One small habit to keep
You only have to apply a label in Gmail. Everything else happens on its own, so the habit sticks.
Posts sound like you
The AI follows your tone description, and it writes about the idea rather than copying the newsletter, so the post reads as your take.
No repeats
The label is removed once a post is made, so each newsletter is only used once even if you leave it in your inbox.
How it works
What happens, step by step
Every 30 minutes ClickRuntime looks in your Gmail for emails with the label you chose.
For each one, AI reads the newsletter and writes a short LinkedIn post about its main idea in your voice.
The post is published on your LinkedIn profile.
The label is removed from the email, so the same newsletter is never posted 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 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
- Act only on the items that match your own rules, and skip the rest
- 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 google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from clickruntime import on_trigger, report_fetched, credentials, http, ai
LABEL_ID = "Label_123" # your "Share" label
@on_trigger
def run(event):
gmail = build("gmail", "v1", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False)
msgs = gmail.users().messages().list(userId="me", labelIds=[LABEL_ID], maxResults=5).execute().get("messages", [])
report_fetched(len(msgs))
if not msgs:
return {"posted": 0}
headers = {"Authorization": "Bearer " + credentials.connection("linkedin", "main"), "LinkedIn-Version": "202405"}
me = http.get("https://api.linkedin.com/v2/userinfo", headers=headers).json()["sub"]
for m in msgs:
full = gmail.users().messages().get(userId="me", id=m["id"], format="full").execute()
parts = full["payload"].get("parts", [full["payload"]])
body = next((base64.urlsafe_b64decode(p["body"]["data"]).decode(errors="ignore") for p in parts
if p.get("mimeType") == "text/plain" and p["body"].get("data")), full["snippet"])
text = ai.generate(f"Newsletter:\n{body[:4000]}", max_output_tokens=350,
system="Write a 120-word LinkedIn post in first person about the key idea, crediting the newsletter by name.").text
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()
gmail.users().messages().modify(userId="me", id=m["id"], body={"removeLabelIds": [LABEL_ID]}).execute()
return {"posted": len(msgs)}FAQ
Common questions
Does it copy the newsletter text?
Which label should I use?
Can it save drafts instead of posting?
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
Share new blog posts on LinkedIn after a quick review
Each new article on your blog becomes a LinkedIn post draft in your inbox, published when you click approve.
See how it worksPost 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 worksApprove 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 worksKeep exploring
Set up “Turn newsletters you read into LinkedIn posts” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.