Skip to content

The moment it happens

Turn a topic into a researched LinkedIn post

Send a topic to your trigger link and a LinkedIn post built from fresh Google results is published on your profile, with the link emailed to you.

Runs
The moment it happens
Apps
LinkedIn, SerpApi
AI
Yes, uses the built-in AI allowance
Access
SerpApi key; LinkedIn w_member_social

Send this to your assistant

Create a ClickRuntime automation: when I send a topic to this link, search Google with SerpApi, write a LinkedIn post using the top results, publish it on my profile and email me the link.

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 recruiter specialising in engineering roles wants to post on LinkedIn about hiring trends a few times a week, because candidates and clients both notice who is visible. They spot good topics constantly, but writing a post that says something specific means first reading up on the latest figures, and that is the step that never fits into the day.

This automation does the reading and writing in one go. They send a topic to the trigger link from a phone shortcut or by asking their AI assistant, it searches Google through SerpApi, AI writes a post grounded in the top results, and it goes out on their LinkedIn profile. An email with the link follows so they can check it and reply to comments.

What you get out of it

  • Stay visible without the writing time

    Regular posts keep you in front of clients and candidates. Going from topic to published post in one step makes a steady rhythm realistic.

  • Posts with substance

    Each post draws on current search results, so it can cite a recent figure or announcement. That makes it more worth reading than a general opinion.

  • Post from anywhere

    A topic can be sent from a phone shortcut, a bookmark or your AI assistant. A good idea on the move becomes a post before it is forgotten.

  • A record of what went out

    The confirmation email includes the post text and link. You can keep an eye on comments and correct anything quickly if needed.

How it works

What happens, step by step

  1. When a topic arrives at the automation's trigger link, ClickRuntime searches Google for it through SerpApi.

  2. It gathers the titles and snippets of the top results.

  3. AI writes a LinkedIn post from those results in your style, using only facts it found.

  4. The post is published on your LinkedIn profile, and you get an email with the text and a link to it.

Before it runs live

  • Connect LinkedIn
  • Connect SerpApi
  • Paste your automation's link into the other app's webhook settings

What you get

RunsThe moment it happens
Turn a topic into a researched LinkedIn postjust nowSucceeded
Email · LinkedIn post publishedPosted on LinkedIn: platform engineering hiring. "Northwind's latest survey shows platform teams doubled in size this year..."

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 LinkedIn and SerpApi 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.
research_a_topic_and_publish_an_ai_linkedin_post.pyexample
from clickruntime import on_event, credentials, http, ai, notify

STYLE = "Practical, first person, short paragraphs, no hashtags."

def post_to_linkedin(text):
    token = credentials.connection("linkedin", "work")
    me = http.get("https://api.linkedin.com/v2/userinfo", headers={"Authorization": f"Bearer {token}"}).json()["sub"]
    r = http.post("https://api.linkedin.com/rest/posts", headers={"Authorization": f"Bearer {token}", "LinkedIn-Version": "202409", "X-Restli-Protocol-Version": "2.0.0"},
                  json={"author": f"urn:li:person:{me}", "commentary": text, "visibility": "PUBLIC", "lifecycleState": "PUBLISHED",
                        "distribution": {"feedDistribution": "MAIN_FEED", "targetEntities": [], "thirdPartyDistributionChannels": []}})
    r.raise_for_status()
    return r.headers.get("x-restli-id", "")

@on_event
def handle(event):
    topic = ((event.json or {}).get("topic") or "").strip()
    if not topic:
        return {"error": "no topic"}
    results = http.get("https://serpapi.com/search", params={"engine": "google", "q": topic, "api_key": credentials.secret("SERPAPI_API_KEY")}).json().get("organic_results", [])[:6]
    facts = "\n".join(f"- {r['title']}: {r.get('snippet', '')}" for r in results)
    text = ai.generate(f"Topic: {topic}\nResults:\n{facts}\nWrite a LinkedIn post under 200 words.", system=f"{STYLE} Use only facts from the results.", max_output_tokens=400).text.strip()
    post_id = post_to_linkedin(text)
    notify.email_me(f"Posted on LinkedIn: {topic}", f"{text}\n\nhttps://www.linkedin.com/feed/update/{post_id}")
    return {"post": post_id}

FAQ

Common questions

Can I review the post before it goes out?
Yes. Ask for the post to be emailed to you as a draft instead, and publish it yourself if you are happy with it.
How do I send it a topic?
Send a short request with the topic to the automation's trigger link. A phone shortcut, a browser bookmark or your AI assistant can all do this.
Will the post sound like me?
Describe your style once, with an example post if you like, and every post follows it. You can adjust it at any time.
What permissions does it need?
SerpApi key; LinkedIn 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 for each event the app sends.
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 a topic into a researched LinkedIn post” from your assistant

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