{
  "title": "Generate Newsletter Draft",
  "video_id": "1xRgbAZ6yKk",
  "published": "2025-11-21T09:38:01+0000",
  "complexity": "Easy",
  "old_url": "https://workflows-of-ai.com/workflow/generate-newsletter-draft",
  "description": "Use the Views Automator from Drupal AI 1.2 to load last week's reviews into the AI's context and generate an HTML newsletter draft for email.",
  "subtitle": "Let AI read a Drupal view of last week's laptop reviews and write an email-ready newsletter draft for a human to check.",
  "summary": "The Views Automator, added in AI module 1.2, dumps a view of last week's laptop reviews, filtered on the laptop tag through a contextual filter, into a plain text field. An LLM text automator then writes a newsletter from that dump into a field with an email text format, using inline styles and absolute links. The draft is meant for a human to check, and storing each step keeps the result auditable.",
  "categories": [
    "Drupal AI"
  ],
  "intro_html": "<p>In this workflow we will showcase the Views Automator that was included in the 1.2.0 release of the AI module.</p><p>In this case we have our fictional company Laptonia that makes laptop reviews, and we want to create a newsletter draft for last week's laptop reviews that should follow rules like absolute links and inner HTML that you often need for e-mails.</p><p>We will be using Drupal CMS 2.0-dev in this case and use the Views Automator that gives you a lot of flexibility in how, what and the design of the content that you load into the AI's context window. This is one of the things that makes Drupal special in terms of AI.</p><p>We will do a simple workflow where AI looks at a view of the latest laptop reviews and writes a newsletter about it.</p><p>Links<br>Drupal CMS: <a href=\"https://www.drupal.org/project/cms\">https://www.drupal.org/project/cms</a><br>AI Module (with Automators): <a href=\"https://drupal.org/project/ai\">https://drupal.org/project/ai</a><br>Workflows of AI: <a href=\"/blog\">https://workflows-of-ai.com/</a></p>",
  "intro_added": false,
  "chapters": [
    "0:00 A newsletter draft for Laptonia",
    "0:36 Why the Views Automator matters",
    "3:01 Laptop reviews in Drupal CMS 2.0",
    "4:01 A view with a contextual filter",
    "6:14 The newsletter preview content type",
    "7:23 Dumping the view with Views text",
    "9:35 Writing the email with LLM text",
    "11:12 Generating the draft"
  ],
  "corrections": [
    [
      "Laponia",
      "Laptonia"
    ],
    [
      "triple CMS",
      "Drupal CMS"
    ],
    [
      "open AI",
      "OpenAI"
    ],
    [
      "simple news",
      "Simplenews"
    ],
    [
      "mandril",
      "Mandrill"
    ],
    [
      "lm text",
      "LLM text"
    ],
    [
      "chat GPT",
      "ChatGPT"
    ],
    [
      "context control center",
      "Context Control Center"
    ]
  ],
  "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."
}