Skip to content

On a schedule

Get a ready-to-post LinkedIn draft in Telegram each weekday

Each weekday a trending topic in your niche is researched and a LinkedIn post draft arrives in Telegram, ready to copy and post.

Runs
On a schedule
Apps
Perplexity, Telegram
AI
Optional
Access
Perplexity key; bot token

Send this to your assistant

Create a ClickRuntime automation: every weekday at 8, research a trending topic in e-commerce with Perplexity, draft a LinkedIn post and send it to my Telegram.

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

Posting consistently is easier when there is something to react to. Finding this week's topic, checking the facts and writing a post usually takes an hour, which is an hour most people do not have on a weekday morning.

Founders, marketers and independent consultants use it to get a timely draft on their phone, ready to edit and post on the commute.

What you get out of it

  • Post from your phone

    Copy the draft from Telegram and post it from the LinkedIn app in a minute.

  • Always topical

    Drafts react to what your niche is talking about now.

  • Grounded in facts

    Each draft is written from fresh research, with sources listed below.

  • No repeated topics

    Topics already sent are remembered and avoided.

How it works

What happens, step by step

  1. Every weekday morning, ClickRuntime asks Perplexity what is trending in your niche, avoiding topics it has already sent.

  2. AI turns the research into a LinkedIn post draft.

  3. The draft and its sources are sent to your Telegram chat.

Before it runs live

  • Connect Perplexity
  • Connect Telegram

What you get

RunsOn a schedule
Get a ready-to-post LinkedIn draft in Telegram each weekdaytoday, 9:00Succeeded
Telegram · Post drafts✍️ Free returns are quietly ending Acme Fashion just started charging for returns. Here's why that may be good news for small shops...

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 Perplexity and Telegram 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.
researched_post_drafts_sent_to_telegram.pyexample
from clickruntime import on_trigger, credentials, http, state, ai

NICHE, CHAT_ID = "e-commerce", 123456789

def sonar(prompt):
    r = http.post("https://api.perplexity.ai/chat/completions", headers={"Authorization": f"Bearer {credentials.secret('PERPLEXITY_API_KEY')}"},
                  json={"model": "sonar", "messages": [{"role": "user", "content": prompt}]}, timeout=90).json()
    return r["choices"][0]["message"]["content"], [s["url"] for s in r.get("search_results", [])]
def telegram(text):
    http.post(f"https://api.telegram.org/bot{credentials.secret('TELEGRAM_BOT_TOKEN')}/sendMessage",
              json={"chat_id": CHAT_ID, "text": text[:4000], "disable_web_page_preview": True}).raise_for_status()

@on_trigger
def run(event):
    used = state.get("used") or []
    research, links = sonar(f"What is one topic people in {NICHE} are discussing this week? Not any of: {used[-10:]}. "
                            "Topic on the first line, then key facts.")
    topic = research.splitlines()[0][:100]
    try:
        draft = ai.generate(f"Write a 150-word LinkedIn post with a clear opinion from this research:\n{research[:3000]}",
                            max_output_tokens=400).text
    except (ai.AINotIncluded, ai.AILimitReached):
        draft = research  # AI unavailable: send the research only
    telegram(f"✍️ {topic}\n\n{draft}\n\nSources:\n" + "\n".join(links[:5]))
    state.set("used", (used + [topic])[-50:])
    return {"topic": topic}

FAQ

Common questions

Can I choose the niche?
Yes. Describe your field and audience, and topics are chosen within it.
Is the AI writing step required?
No. Without it you get the research summary and sources only, which you can turn into a post yourself.
Can it post to LinkedIn directly?
No. You stay in control of what is published under your name.
What permissions does it need?
Perplexity key; bot token. Nothing else in your accounts is used.
Does it need AI?
No, but you can ask for an AI step (for example a summary). It then uses ClickRuntime's built-in AI allowance.
How many runs does it use?
One run each time it runs (on a schedule). 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 “Get a ready-to-post LinkedIn draft in Telegram each weekday” from your assistant

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