Skip to content
NEWMarketplace and the trig8n Agent: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Content Writing & Generation

Content Writing & Generation

Classify held WordPress comments with OpenAI and mark confident spam

Run manually to classify comments in the WordPress moderation queue as spam, abusive, question, positive or other; only confident spam is marked, and dry run is on by default.

What it does

## Triage held WordPress comments with OpenAI Reads comments waiting in your moderation queue, asks OpenAI to classify each one (spam, abusive, question, positive, other), and marks only confident spam as spam. Everything else stays in the queue with a reason and, for questions, a suggested reply you can copy. Dry run is ON by default. Nothing changes in WordPress until you set dryRun to false.

The steps

  1. Run manually
  2. Every 3 hours
  3. Config
  4. Get held comments
  5. Prepare comments
  6. Classify comment with OpenAI
  7. Parse classification
  8. Confident spam?
  9. Dry run enabled?
  10. Dry run result
  11. Mark comment as spam
  12. Spam result
  13. Needs human review

Similar automations