Templates / Triage held WordPress comments with OpenAI spam classification and auto-marking

Triage held WordPress comments with OpenAI spam classification and auto-marking

Ready for 3.0

by Bincy Bhanu. S ✓ · 0 views · created 2026-10-16 · Ticket Management, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 13 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). It uses only n8n's built-in nodes. It also calls api.openai.com over HTTP.

How it runs

Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).

  1. Config (Edit Fields (Set)): sets 5 fields: siteUrl, maxCommentsPerRun, openAiModel…
  2. Get held comments (HTTP Request): calls an HTTP API (GET)
  3. Prepare comments (Code): runs custom JavaScript code
  4. Classify comment with OpenAI (HTTP Request): calls api.openai.com (POST)
  5. Parse classification (Code): runs custom JavaScript code
  6. Confident spam? (If): checks a condition and branches into true / false
  7. Dry run enabled? (If): checks a condition and branches into true / false
  8. Needs human review (Edit Fields (Set)): sets 7 fields: commentId, category, confidence…
  9. Dry run result (Edit Fields (Set)): sets 5 fields: commentId, category, confidence…
  10. Mark comment as spam (HTTP Request): calls an HTTP API (POST)

…plus 1 more step. See the full node list below.

HTTP calls to: api.openai.com

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (6)

From the author

Quick overview This workflow runs manually or every 3 hours to fetch held WordPress comments, uses OpenAI to classify them with a confidence score, and marks only high-confidence spam as spam in WordPress while leaving all other comments in the moderation…

Excerpt from Bincy Bhanu. S's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.