Content & Social Media · n8n

Auto-Moderate Blog Comments With AI Spam Detection

Keep your comment section clean — AI reviews every new blog comment, approves the genuine ones and quarantines spam and abuse for you.

difficulty Intermediatesetup 40 minresult Legitimate comments publish instantly while spam and toxic content are held for review, saving hours of manual moderation.
  1. 1

    Trigger on New Comments

    Add a WordPress Trigger (or webhook) firing when a comment is submitted for moderation.

  2. 2

    Classify the Comment

    Add an OpenAI node returning one label: genuine, spam, or abusive, based on the comment text.

  3. 3

    Route by Verdict

    Add a Switch node — approve genuine comments via the WordPress API, mark spam as spam, and hold abusive ones for human review.

  4. 4

    Notify on Abuse

    Add a Slack node alerting you when a comment is flagged abusive so you can review sensitive cases quickly.

  5. 5

    Activate and Test

    Activate the workflow and submit test comments of each type. Confirm each is routed correctly.

Frequently asked questions

Will it wrongly reject real comments?

Genuine comments are approved and anything uncertain is held, not deleted — so worst case a real comment waits for a quick manual approval.

Can I whitelist regulars?

Yes. Check the commenter's email against an approved list and auto-publish known good contributors without AI review.

About this recipe. Recipes on FlowRecipesHub are written for business owners, not developers, and are tested before publishing — how recipes get made. Some ingredient links are affiliate links that cost you nothing — full disclosure.