Skip to content

Every 15 minutes

Hide spam and abusive comments on your Page

Spam and abuse are hidden within 15 minutes, and a daily email shows what was hidden.

Runs
Every 15 minutes
Apps
Facebook Pages
AI
Yes, uses the built-in AI allowance
Access
pages_manage_engagement, pages_read_user_content

Send this to your assistant

Create a ClickRuntime automation: every 15 minutes, check new comments on my Facebook Page, hide spam, scam links and abusive ones, and send me a daily summary at 6pm of what was hidden.

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 Facebook Page that runs ads or posts regularly attracts comments from bots selling followers, crypto links and phishing pages, plus the occasional abusive reply under a post about pricing. Left in place, they push real customers away and give scammers a free audience. Moderating by hand means opening each post's comments throughout the day, which community managers and shop owners rarely have time for. Even a handful of scam comments can damage trust that took years to build.

Every 15 minutes, ClickRuntime fetches the new comments on your Page, has ClickRuntime's built-in AI classify each as spam, abusive or fine, and hides the first two. Every action is logged, and a daily email lists what was hidden so you can restore a comment that was wrongly caught.

It suits brands running ads, where comments pour in unattended.

What you get out of it

  • Keep scam links off your posts

    Phishing and fake giveaway links under an ad can trick your own customers. Hiding them within fifteen minutes limits the number of people who see them and reduces the chance of a customer being scammed in your name.

  • Protect the tone of your Page

    One abusive comment left in place invites more, and visitors judge the brand by what they see. Hiding it quickly keeps the conversation civil without deleting anything permanently. Customers also notice when a Page is cared for.

  • Free up the community manager

    Skimming for spam eats an hour a day on active Pages. Automatic classification leaves staff to answer real questions and handle sales conversations that need a human touch. That time goes back into replies.

  • Hide instead of delete

    Hidden comments stay visible to the commenter and their friends, so spammers see nothing wrong and do not escalate. You can still review and unhide, which a deletion would not allow.

  • Keep an audit trail

    The daily email lists each hidden comment with the reason given. It lets you spot false positives, show a client what was removed, and tune the rules over time. A written record settles disputes quickly.

How it works

What happens, step by step

  1. Every 15 minutes ClickRuntime collects new comments on your 10 most recent Facebook Page posts.

  2. AI labels each comment as fine, spam, a scam or abuse.

  3. Spam, scams and abuse are hidden on your Page straight away, and everything else is left as it is.

  4. Once a day, in the evening, you get an email listing the comments it hid and why.

Before it runs live

  • Connect Facebook Pages

What you get

RunsEvery 15 minutes
Hide spam and abusive comments on your Pagetoday, 9:00Succeeded
Email · Hidden 3 Facebook comments today[scam] Claim your free iPhone at bit.ly/... [abuse] (insult removed)

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
  • 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 Facebook Pages 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.
ai_comment_moderation_hide_spam.pyexample
from datetime import datetime, timezone
from clickruntime import on_trigger, credentials, http, state, ai, notify

G = "https://graph.facebook.com/v21.0"
PAGE_ID = "104857600000000"

def page_token():
    user = credentials.connection("facebook", "work")
    return http.get(f"{G}/{PAGE_ID}", params={"fields": "access_token", "access_token": user}).json()["access_token"]

@on_trigger
def run(event):
    hidden = state.get("hidden_today") or []
    if event.get("scheduled_time", "")[11:13] == "18" and hidden:
        notify.email_me(f"Hidden {len(hidden)} Facebook comment(s) today", "\n".join(hidden))
        state.set("hidden_today", [])
    token = page_token()
    since = state.get("since") or int(datetime.now(timezone.utc).timestamp()) - 900
    posts = http.get(f"{G}/{PAGE_ID}/posts", params={"limit": 10, "access_token": token}).json()["data"]
    comments = [c for p in posts for c in http.get(f"{G}/{p['id']}/comments",
                params={"since": since, "fields": "message", "access_token": token}).json()["data"]]
    if comments:
        numbered = "\n".join(f"{i}. {c['message'][:300]}" for i, c in enumerate(comments))
        labels = ai.generate("Label each comment ok, spam, scam or abuse. One label per line, same order.\n" + numbered,
                             max_output_tokens=8 * len(comments)).text.lower().split()
        for c, label in zip(comments, labels):
            if label in ("spam", "scam", "abuse"):
                http.post(f"{G}/{c['id']}", data={"is_hidden": "true", "access_token": token}).raise_for_status()
                hidden.append(f"[{label}] {c['message'][:120]}")
        state.set("hidden_today", hidden)
    state.set("since", int(datetime.now(timezone.utc).timestamp()))
    return {"checked": len(comments)}

FAQ

Common questions

Can the AI hide a comment by mistake?
Yes, classification is not perfect, which is why hiding is used rather than deleting and why a daily email lists every hidden comment. You can unhide a wrongly caught comment from the Page's activity log in Facebook.
What counts as spam or abuse here?
Typical spam is unsolicited links, repeated promotional text and follower sales. Abuse covers insults, slurs and threats. You can add your own rules, such as hiding competitor mentions or all comments containing a link. Rules you add apply on the next run.
Which permission does the Page connection need?
Moderating comments requires a connection with permission to manage the Page's comments and read its posts. The token is stored as a secret and used only to read new comments and hide the ones flagged.
What permissions does it need?
pages_manage_engagement, pages_read_user_content. 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 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 “Hide spam and abusive comments on your Page” from your assistant

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