drupal/ai_recipe_comment_spam 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

drupal/ai_recipe_comment_spam

Composer 安装命令:

composer require drupal/ai_recipe_comment_spam

包简介

Adds AI-powered spam scoring, reasoning and auto-unpublishing for comments, with a moderation triage view.

README 文档

README

What it does

AI Comment Spam Moderation adds an AI-assisted workflow for comments. It scores each incoming comment for spam risk, saves the score and a one-sentence reasoning, automatically unpublishes likely spam, and surfaces everything in a moderation triage view.

Why it matters

Site moderators can triage comment spam faster and reduce manual review effort. Obvious spam is unpublished automatically, while borderline cases stay visible with clear, AI-generated reasoning for a human to act on.

How it works

When applied, the recipe configures:

  • core comment support using the default comment comment type (via the core article_comment recipe),
  • a Custom Field on comments (field_spam_assessment) holding a spam_score (1-10) and a spam_reasoning sentence,
  • an AI automator on field_spam_assessment that reads the comment body and writes the score and reasoning (reasoning is the literal ok when the score is below 5),
  • a second AI automator that unpublishes the comment when the spam_score is 8 or higher,
  • a dedicated listing at /admin/content/ai-comment-spam for moderation triage.

Requirements & compatibility

How to get started

  1. Install module dependencies (including AI and AI Automators).
  2. Configure an AI provider/model and set a default for chat_with_complex_json.
  3. Apply the recipe.
  4. Post comments on an Article and verify the spam score and reasoning are saved, and that high-scoring comments are unpublished.
  5. Use /admin/content/ai-comment-spam for moderation triage.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2026-07-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固