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.
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
Every weekday morning, ClickRuntime asks Perplexity what is trending in your niche, avoiding topics it has already sent.
AI turns the research into a LinkedIn post draft.
The draft and its sources are sent to your Telegram chat.
Before it runs live
- Connect Perplexity
- Connect Telegram
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
- 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
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?
Is the AI writing step required?
Can it post to LinkedIn directly?
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
Get a sourced news briefing in Telegram every morning
Each morning your Telegram chat gets a short briefing on your topic with links to every source.
See how it worksAsk your Telegram bot to research anything
Message your Telegram bot a question, such as a company, a stock or an idea, and get a concise researched answer with sources.
See how it worksGet alerts about security issues that affect you
When a serious vulnerability is published for software you use, your security channel hears about it the same hour.
See how it worksKeep exploring
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.