Skip to content

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.

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

  1. Every Wednesday, ClickRuntime asks Perplexity for a trending topic in your niche and the key facts about it.

  2. AI writes an SEO article with headings from that research.

  3. The article is saved as a WordPress draft with its sources.

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

RunsWeekly
Get a researched blog draft each week, announced in Slacktoday, 9:00Succeeded
Slack · #content📝 Draft ready: Are heat pump grants changing this winter? blog.example.com/wp-admin/post.php?post=903&action=edit

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 Google Sheets
  • Combine it with other Perplexity and Slack 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_blog_draft_with_slack_notification.pyexample
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?
As a draft post in your WordPress site, with headings and a source list.
Can it notify a channel instead of me?
Yes. Post the link to a team channel such as #content so whoever is editing that week sees it.
Can I suggest topics?
Yes. Give a short list of preferred themes, and trending topics within them are chosen first.
What permissions does it need?
API key; chat:write. 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 “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.