Skip to content

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.

Paste it into your assistant. It tells you what it will send or change before it runs live.

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

  1. Every 30 minutes ClickRuntime looks in your Gmail for emails with the label you chose.

  2. For each one, AI reads the newsletter and writes a short LinkedIn post about its main idea in your voice.

  3. The post is published on your LinkedIn profile.

  4. 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

RunsEvery 30 minutes
Turn newsletters you read into LinkedIn poststoday, 9:00Succeeded
LinkedIn · Your profile"This week's Acme Ops Weekly made a point I keep coming back to: most churn starts in onboarding, not at renewal…"

Build your own

Need it to work differently?

This template is a starting point. Copy the prompt and change it, or describe a different automation from scratch, with your own conditions, more apps or an AI step. Your assistant writes it, tests it and runs it on ClickRuntime.
  • 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

This is the Python script that runs each time the automation starts. Your AI assistant writes it for you when you send the prompt, and you allow each step in your assistant. To change how the automation works, describe the change to your assistant and it updates the script for you. For every function it can use, see the script reference.
newsletters_in_gmail_turned_into_linkedin_posts.pyexample
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?
No. AI writes a short post about the main idea in your own voice and mentions the source. Copying a newsletter word for word is not something it does.
Which label should I use?
Any label you like, such as Share or LinkedIn. Only emails with that label are read.
Can it save drafts instead of posting?
Yes. Ask for the post to be emailed to you as a draft instead, and you can publish it yourself.
What permissions does it need?
gmail.modify; w_member_social. Nothing else in your accounts is used.
Does it need AI?
Yes. It uses ClickRuntime's built-in AI, so you don't need an OpenAI or Anthropic key. Every plan includes a monthly AI allowance.
How many runs does it use?
One run each time it checks. Checks that find nothing new and stop right away aren't counted.
Can I change how it works?
Yes. Describe the change to your AI assistant, for example a different schedule, channel or filter. It updates the automation, tests it and tells you what changed.

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.