Weekly
Get a researched blog draft each week, announced in Slack
Every Wednesday a trending topic in your niche is researched, written up as a WordPress draft, and Slack tells you it's ready.
- Runs
- Weekly
- Apps
- Perplexity, Slack
- AI
- Yes, uses the built-in AI allowance
- Access
- API key; chat:write
Send this to your assistant
Create a ClickRuntime automation: every Wednesday at 9, research a trending topic in home energy with Perplexity, draft an SEO article, save it as a WordPress draft and Slack me the link.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A weekly blog post is a common plan and a common casualty. The week fills up, research gets postponed, and the blog goes quiet for a month.
Small marketing teams, agencies and founders use it to make sure a researched draft exists every week, and that the person who edits it knows the moment it is ready.
What you get out of it
The weekly post always has a start
A draft is ready every Wednesday, whatever else the week brings.
Topical and researched
Topics come from what is being discussed now, with facts gathered first.
The editor is told
A Slack message with the link means nobody has to check WordPress for new drafts.
Published only by people
Drafts wait for a human to review and publish.
How it works
What happens, step by step
Every Wednesday, ClickRuntime asks Perplexity for a trending topic in your niche and the key facts about it.
AI writes an SEO article with headings from that research.
The article is saved as a WordPress draft with its sources.
A Slack message with the title and edit link tells you it is ready.
Before it runs live
- Connect Perplexity
- Connect Slack, then invite the app to the channel (type /invite @ClickRuntime there)
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 Google Sheets
- Combine it with other Perplexity and Slack steps into one automation
Under the hood
The code that runs this automation
from clickruntime import on_trigger, credentials, http, notify, ai
SITE, WP_USER, NICHE = "https://blog.example.com", "content-bot", "home energy"
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 wp_draft(title, html):
r = http.post(f"{SITE}/wp-json/wp/v2/posts", auth=(WP_USER, credentials.secret("WP_APP_PASSWORD")),
json={"title": title, "content": html, "status": "draft"})
return r.raise_for_status() or r.json()["id"]
@on_trigger
def run(event):
facts, links = sonar(f"Pick one topic people in {NICHE} are discussing this week. Topic on the first line, then key facts.")
topic = facts.splitlines()[0].strip("# *")[:120]
html = ai.generate(f"Write a 1,000-word SEO article in HTML (h2, p, ul) about '{topic}' for homeowners, using only:\n"
f"{facts[:4000]}", max_output_tokens=2000).text
post_id = wp_draft(topic, html + "<h2>Sources</h2><ul>" + "".join(f"<li>{l}</li>" for l in links) + "</ul>")
notify.slack(f"📝 Draft ready: {topic}\n{SITE}/wp-admin/post.php?post={post_id}&action=edit", channel="#content")
return {"post_id": post_id}FAQ
Common questions
Where is the draft saved?
Can it notify a channel instead of me?
Can I suggest topics?
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
Post a weekly competitor update to Slack
Every Monday your sales channel gets a short update on each competitor's news, pricing and product changes, with sources.
See how it worksResearch new sign-ups and post strong leads to Slack
When someone signs up, their company is researched and scored, and strong fits are posted to Slack with a short profile.
See how it worksGet a daily news digest in Slack
Each morning your team gets a short summary of what's new on the sites and blogs you follow.
See how it worksKeep exploring
Set up “Get a researched blog draft each week, announced in Slack” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.