Skip to content

Every 15 minutes

Share each sent Hootsuite post in Slack

When Hootsuite publishes a message, it appears in our Slack channel.

Runs
Every 15 minutes
Apps
Hootsuite
AI
Not needed
Access
OAuth token

Send this to your assistant

Create a ClickRuntime automation: every 15 minutes, check Hootsuite for newly sent posts and share each one's profile and text in #social on Slack.

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

Once a post is published, the work is not over. Customer service should be ready for replies, the founder wants to like and share it, and sales may want to point prospects to it. But in Hootsuite, publishing happens on a schedule in the background. The person who wrote the post is often not looking at the time it goes out, and teammates only discover it later, when the best window to engage with early comments has passed.

Every 15 minutes, messages with the SENT status since the last check are listed, and each is posted in a Slack channel with the text, the network and a link. A saved checkpoint prevents repeats.

It suits teams that want to react quickly to published content, or that want a lightweight confirmation that scheduled posts really went live.

What you get out of it

  • Early engagement is easier

    The first hour after a post has outsized influence on how networks show it. Teammates who see it quickly can like, comment and share while it counts. That small head start is usually all a team needs to join the conversation under a new post while it is still near the top of people's feeds.

  • Proof that scheduled posts went out

    A post in Slack confirms the schedule worked. If one is missing, you catch the failure rather than assuming it succeeded. Silent schedule failures happen, such as an expired token or a rejected image, and the channel makes them visible quickly.

  • Support is ready for replies

    A support person who knows a promotion just went out is prepared for the surge of questions that follows. A support person who knows a promotion just went live is ready for the wave of questions and can answer with confidence.

  • The whole company sees the brand's voice

    People outside marketing see what is being said publicly, which keeps messaging consistent in sales conversations. That helps keep sales calls, support answers and public posts consistent with each other, and avoids contradicting what marketing said.

  • A running log of published content

    The channel history shows what went out and when, which is handy for reviews and for finding that one post from last month. The channel history also shows how often the team posts, which is useful for reviews and for finding last month's announcement quickly.

How it works

What happens, step by step

  1. Every 15 minutes, ClickRuntime checks Hootsuite for posts that went out since its last check, so none are shared twice.

  2. For each one it takes the profile and the post text.

  3. It posts them to #social in Slack, so the team sees what has just been published.

Before it runs live

  • Connect Hootsuite

What you get

RunsEvery 15 minutes
Share each sent Hootsuite post in Slacktoday, 9:00Succeeded
Slack · #socialPosted to profile 1150: Our fall webinar is open for sign-ups, link in bio.

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
  • Add an AI step, for example to summarize, sort or draft a reply
  • Add another app, for example also send it to Slack
  • Combine it with other Hootsuite 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.
sent_post_notification.pyexample
from datetime import datetime, timedelta, timezone
from clickruntime import on_trigger, state_initializer, credentials, notify, http, state, report_fetched

def messages(state_name, start, end):
    resp = http.get("https://platform.hootsuite.com/v1/messages",
                    headers={"Authorization": f"Bearer {credentials.connection('hootsuite', 'work')}"},
                    params={"state": state_name, "startTime": start.strftime("%Y-%m-%dT%H:%M:%SZ"),
                            "endTime": end.strftime("%Y-%m-%dT%H:%M:%SZ"), "limit": 100})
    resp.raise_for_status()
    return resp.json()["data"]

@state_initializer
def init():
    state.set("since", datetime.now(timezone.utc).isoformat())

@on_trigger
def run(event):
    since = datetime.fromisoformat(state.get("since"))
    now = datetime.now(timezone.utc)
    sent = messages("SENT", since, now)
    report_fetched(len(sent))
    if not sent:
        return {"posted": 0}
    for m in sent:
        notify.slack(f"Posted to profile {m['socialProfile']['id']}:\n{m['text'][:280]}", channel="#social")
    state.set("since", now.isoformat())
    return {"posted": len(sent)}

FAQ

Common questions

Will failed posts be included?
Only messages with the SENT status are posted. Failed or errored posts are not, but you could add a second alert for those, which would help you notice problems early. A failure alert is easy to request and worth having.
How quickly after publishing does the post appear in Slack?
Within roughly 15 minutes, since the check runs on that interval. That is fast enough to engage within the first hour, though not immediately. Polling means a short delay, not a live feed. Every run covers everything since the last one.
Can I limit it to one social profile?
Yes. A filter by profile or network keeps the channel focused, such as only the company LinkedIn page. Ask your AI assistant to restrict it and approve the new version. Several profiles can still be monitored if you name them.
What permissions does it need?
OAuth token. Nothing else in your accounts is used.
Does it need AI?
No. It runs without AI, so it doesn't use your plan's AI allowance.
How many runs does it use?
One run each time it checks. Checks that find nothing new 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 “Share each sent Hootsuite post in Slack” from your assistant

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