{
  "title": "Pre-moderate content",
  "video_id": "WsgKVJw3Dvc",
  "published": "2024-10-14T19:34:48+0000",
  "complexity": "Normal",
  "old_url": "https://workflows-of-ai.com/workflow/pre-moderate-content",
  "description": "Use AI Automators and Content Moderation in Drupal to flag or pre-publish content, store the AI's reasoning and run the check on a local model.",
  "subtitle": "Have AI read new content and move it to flagged or pre-published, so editors only look at what needs a human eye.",
  "summary": "An automator on the moderation state base field, made editable with Base Field Override UI, reads the body of each draft and moves it to a new Flagged or Pre-published state. The example rule flags anything about Lord of the Rings, and a plain text field can store the AI's reasoning. For private data, a simpler mode looks for the state name anywhere in the answer, so a small local model can do the screening.",
  "categories": [
    "Drupal AI"
  ],
  "intro_html": "<p>This video will showcase how you can use the AI and AI Automators modules to pre-screen any content in Drupal before it gets published. You can use any criteria for flagging or allowing content and any AI provider like OpenAI, Ollama, Anthropic etc.</p><p>It works together with the Content Moderation module to set content to a specific moderation state, by reading the content (or images).</p><p>The setup takes 5 minutes.</p><p>You can find more workflows under <a href=\"/blog\">https://workflows-of-ai.com/</a></p><p>Links from the video:<br>AI Module: <a href=\"https://www.drupal.org/project/ai\">https://www.drupal.org/project/ai</a><br>Base Field Override Module: <a href=\"https://www.drupal.org/project/base_field_override_ui\">https://www.drupal.org/project/base_field_override_ui</a></p>",
  "intro_added": false,
  "chapters": [
    "0:00 AI pre-screening before publishing",
    "1:07 Modules and setup",
    "2:35 Flagged and pre-published states",
    "5:18 Overriding the moderation state field",
    "6:21 The Lord of the Rings rule",
    "8:15 Testing two articles",
    "9:19 Storing the AI's reasoning",
    "11:41 Small local models for privacy"
  ],
  "corrections": [
    [
      "Drupal n Ai",
      "Drupal and AI"
    ],
    [
      "automats",
      "automators"
    ],
    [
      "ai interpolator",
      "AI Interpolator"
    ],
    [
      "ai automator",
      "AI Automator"
    ],
    [
      "open AI",
      "OpenAI"
    ],
    [
      "open a and",
      "OpenAI and"
    ],
    [
      "field overwrites",
      "field overrides"
    ],
    [
      "anthropic CLA",
      "Anthropic Claude"
    ],
    [
      "gamma 2B",
      "Gemma 2B"
    ],
    [
      "Raspberry p I",
      "Raspberry Pi"
    ],
    [
      "golum",
      "Gollum"
    ],
    [
      "colum",
      "Gollum"
    ],
    [
      "colon",
      "Gollum"
    ],
    [
      "mentions gum",
      "mentions Gollum"
    ],
    [
      "Json",
      "JSON"
    ]
  ],
  "ai_note": "The video and the introduction are Marcus's own, first published on workflows-of-ai.com. AI wrote the subtitle, the summary and the video chapters from the transcript, and corrected misheard names in YouTube's automatic captions."
}