tr Skip to content

Monitor comments on your Facebook Page with AI and auto reply or remove the comment

Each new comment on your Facebook Page goes to an AI agent that is told to reply briefly to genuine questions and kind remarks, and to delete spam or abusive comments, using two Facebook Pages tools.

Facebook Pages AI Agent

4 steps Setup ~8 min Used on 2.8k sites Free to import

The Monitor comments on your Facebook Page with AI and auto reply or remove the comment workflow on the FlowMattic canvas, with 4 steps across Facebook Pages, AI Agent
The workflow as it appears in the builder after import. Each step opens for editing.

What this workflow does

A busy Facebook Page collects questions, thank-yous and spam all day, and somebody has to read every one. This workflow hands that first pass to an AI agent: it reads each new comment and either answers it in your Page's voice or removes it.

The Facebook Pages New Comment trigger fires when a new comment is created on your Page. The AI Agent step, set up with OpenAI GPT-4o, receives the comment text with the line "New comment on our Page". Its instructions say to reply helpfully and briefly to genuine questions or kind remarks, to delete spam, abusive or hateful comments without replying, and to take exactly one action.

The agent has two tools. Reply to a Comment lets it write the reply text itself, and Delete a Comment removes a comment. The agent decides which tool to use, so a borderline comment may get a reply you wouldn't have written, or none at all. Neither tool has the comment to act on mapped in, and the agent only receives the text, so after import map the comment's ID from the New Comment trigger into both tools.

Connect your Page and an OpenAI account, then post test comments of each kind. Open each run in Task History to see what the agent step returned for it.

Quick answers for a local business Page

A café's Page gets questions about opening hours and bookings, and the agent answers each one briefly so customers aren't left waiting for staff.

Spam cleanup on promoted posts

An online shop running ads attracts scam links in the comments, and the agent deletes those while thanking people who leave genuine praise.

Moderation for a community Page

A charity's Page has abusive comments removed by the agent around the clock, so volunteers only have to review what was deleted.

How this workflow runs

What happens at each step once the workflow is on, and what you need before you import it.

  1. Step 1Trigger
    Facebook Pages New Comment

    Fires when a new comment is created on your connected Facebook Page. The comment text, its ID and related details are passed on for the agent and its tools.

  2. Step 2Action
    AI Agent Execute Agent

    Runs an AI agent on OpenAI GPT-4o with the comment text. It is told to reply to genuine comments, delete spam or abuse, and take exactly one action, and it chooses which tool to call.

  3. Step 3Tool
    Facebook Pages Reply to a Comment

    Agent tool that posts a reply to the comment. The agent writes the reply text itself. Map the comment's ID from the trigger into this tool after import so it replies in the right place.

  4. Step 4Tool
    Facebook Pages Delete a Comment

    Agent tool for removing spam or abusive comments from your Page. It ships with nothing mapped: give it the comment's ID from the trigger so the agent deletes the comment it read.

What you need

  • FlowMatticCore
  • Facebook Pages AccountAccount
  • AI ProviderAccount

After importing, map your own data. To keep the template universal, not every step is pre-filled. Open each step in the builder and connect your accounts and fields (channels, lists, sheets, recipients) before you switch the workflow on.

Make it yours

Changes worth making after you import it.

  • Add your own rules to the agent's instructions, such as topics it must never discuss or a support email to mention, so replies stay in line with your Page.
  • If your Page's own replies start new runs, put a Filter between the New Comment trigger and the AI Agent step that stops comments whose author is your Page, using the author field from a test run.
  • Include the post's text in the agent's input next to the comment, so replies can refer to what the comment is about.
  • Before letting the agent delete anything, test with a set of real past comments and compare what the agent step returned in Task History with what you would have done.

Questions about this workflow

Will the AI agent always reply or delete a Facebook comment?

It is told to take exactly one action, but the agent makes the call. Some comments may get neither, and its judgement on borderline ones may differ from yours. Review a sample of runs in Task History.

Can I see what the agent wrote before it posts the reply?

Not as imported. The agent posts replies directly through the Reply to a Comment tool. If you want review first, adapt the workflow so a person approves replies before they're posted.

Do I need an OpenAI account for this Facebook workflow?

The agent is set to OpenAI GPT-4o, so you connect an OpenAI account. FlowMattic's AI Agent also works with other providers if you change the model after import.

Is a deleted comment gone for good?

Delete a Comment removes the comment from your Page through Facebook. Treat deletions as permanent and test the agent's judgement before you turn the workflow on.

Import this workflow into your WordPress site

Download the JSON, import it from the Workflows screen and connect your accounts. Every run stays on your server, with no per-task fees.

30-day money-back guarantee Unlimited workflows and runs Self-hosted

Customers who run it every day

Rated 4.8 out of 5 by customers
Read more reviews

Ease of use and terrific support from the founder. Tons of integrations and regular updates. The Flowmattic custom app is great especially if you want to integrate apps that aren't available yet inside Flowmattic.

Cliede C.

Flowmattic is a noteworthy option for businesses looking for a self-hosted alternative to Zapier. With its user-friendly interface and a strong set of features, it is a top pick for those in need of a reliable WordPress automation solution.