Skip to content

Every 15 minutes

Send new X mentions to Slack

Every @mention of your account shows up in Slack within 15 minutes.

Runs
Every 15 minutes
Apps
X
AI
Not needed
Access
tweet.read users.read

Send this to your assistant

Create a ClickRuntime automation: every 15 minutes, check X for new mentions of @myaccount and post each one to #social in Slack with a 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

The X notifications tab is a poor place to run customer care. Mentions from customers, partners and journalists are mixed with likes, follows and reposts, and the people who should answer, such as support or the community manager, are not always watching the account. A question tagged to your handle on Friday afternoon can sit until Monday.

Every 15 minutes, mentions of your account are fetched starting after the last post ID stored from the previous run. Each new mention is posted to your Slack channel, and the newest ID is saved so the next check begins where this one ended.

Small teams where several people share responsibility for an X account, and agencies running accounts for clients, are the typical users. Customers get a faster answer, and nobody has to babysit the X app to make that happen.

What you get out of it

  • The right people see mentions

    Moving mentions into Slack puts them in front of support and community staff in the tool they already have open, rather than only with whoever holds the X login. Support and community teams rarely live in X, but they always live in Slack.

  • Weekend questions are not lost

    A tagged question on Saturday reaches a Slack channel that someone on call can glance at, which beats finding it when the week starts. Someone on call can catch it Saturday, which is better than a customer waiting until Monday.

  • Replies can be assigned in-thread

    Teammates can respond in Slack with a note that they are taking a mention, which prevents two people from answering the same customer in different ways. A short note under the message avoids two people answering the same customer differently.

  • Less noise than the notifications tab

    Only mentions arrive, without likes and follows mixed in, so the channel stays readable and each message is something that might need a response. Less clutter means each message deserves a glance, and people keep the channel open.

  • A searchable archive of mentions

    Slack search lets you look up what a customer said last quarter or find every mention from a particular account, which the X interface makes awkward. Searching across months of mentions helps when a customer says they raised it before.

How it works

What happens, step by step

  1. Every 15 minutes, ClickRuntime checks X for new posts that mention your account.

  2. It only picks up mentions newer than the last one it saw, so nothing is sent twice.

  3. Each new mention is posted to your Slack channel with the author's handle, what they wrote and a link to the post.

Before it runs live

  • Connect X

What you get

RunsEvery 15 minutes
Send new X mentions to Slacktoday, 9:00Succeeded
Slack · #social@dana_builds: loving the new export button from @acmeapp, saved me an hour today https://x.com/i/web/status/1847...

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 X 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.
new_mentions_to_slack.pyexample
from clickruntime import on_trigger, report_fetched, state, notify, http, credentials

@on_trigger
def run(event):
    auth = {"Authorization": "Bearer " + credentials.connection("x", "main")}
    me = http.get("https://api.x.com/2/users/me", headers=auth).json()["data"]["id"]
    params = {"expansions": "author_id", "user.fields": "username", "max_results": 100}
    if state.get("since_id"):
        params["since_id"] = state.get("since_id")
    data = http.get(f"https://api.x.com/2/users/{me}/mentions", headers=auth, params=params).json()
    mentions = data.get("data", [])
    report_fetched(len(mentions))
    if not mentions:
        return {"summary": "No new mentions"}
    users = {u["id"]: u["username"] for u in data.get("includes", {}).get("users", [])}
    for t in reversed(mentions):
        notify.slack(f"@{users.get(t['author_id'], '?')}: {t['text']}\nhttps://x.com/i/web/status/{t['id']}", channel="#social")
    state.set("since_id", data["meta"]["newest_id"])
    return {"posted": len(mentions)}

FAQ

Common questions

Does it include replies to my posts?
Replies that tag your account count as mentions, so they appear. Replies in a thread where your handle is not tagged do not. If you want every reply to your posts, your AI assistant can add a search for conversation IDs of your posts.
Will it show protected or deleted accounts?
Mentions from protected accounts may not be visible through the API, and deleted posts disappear from results. You see what X returns at the time of each check, so a mention deleted within 15 minutes might never reach Slack.
Can mentions from my own accounts be ignored?
Yes. Posts from your team's own handles, or from partner accounts you do not want echoed, can be filtered out. Give your AI assistant the handles to skip and approve the change for the next run.
What permissions does it need?
tweet.read users.read. 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 “Send new X mentions to Slack” from your assistant

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