Skip to content

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.

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

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

  1. Every Monday AI writes a LinkedIn post draft from the brief you gave.

  2. The draft is saved and emailed to you from your Gmail with an approve link.

  3. When you click the link, the post is published on LinkedIn.

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

RunsWeekly
Approve LinkedIn posts from your inboxtoday, 9:00Succeeded
Email · LinkedIn draft for approval"This week at Acme we shipped shared dashboards, the feature our customers asked for most…" Approve and publish →

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

  • 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

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.
linkedin_posts_approved_by_email.pyexample
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?
Just ignore it. Nothing is posted unless you click the approve link, and the next draft arrives the following week.
Can I edit the draft before it posts?
The approve link publishes the text as it is. To change it, reply with your edits and ask your AI assistant to adjust the prompt, or copy the text and post it yourself.
Can someone else approve instead of me?
Yes. Send the draft email to a colleague or manager, and whoever clicks the link publishes the post.
What permissions does it need?
gmail.send; 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 runs (weekly). Checks that find nothing to do 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 “Approve LinkedIn posts from your inbox” from your assistant

Copy the prompt above, or connect your assistant first. Free plan, no credit card.