{
  "title": "Content Create Agent",
  "video_id": "WnZ6GgmYI4c",
  "published": "2025-11-07T09:25:09+0000",
  "complexity": "Normal",
  "old_url": "https://workflows-of-ai.com/workflow/content-create-agent",
  "description": "Create a Drupal AI agent that reads a PDF with AI Simple PDF to Text and creates restaurant content through constrained Tool API tools.",
  "subtitle": "Build an agent that reads a PDF and creates a restaurant node from it, with Tool API tools that can only touch restaurants.",
  "summary": "A restaurant creator agent is built with AI Agents, the Tool API entity tools and AI Simple PDF to Text, with the field information preloaded into its memory and the tools constrained to restaurant nodes. Asked to import one restaurant from an uploaded PDF, it fills in the address, phone, price and description, but fails on the link field. Marcus also recommends the AI Agents Test module and asks people to use AI to summarize content, not to write it from nothing.",
  "categories": [
    "Drupal AI",
    "Agents"
  ],
  "intro_html": "<p>In this video I will showcase how you can create an agent that can create content for a specific content type, and how you can also read the content for this from a PDF file.</p><p>This will feature the new Tool API that will be the future for tools, including how you will create function calls. It also features a simple module called AI Simple PDF to Text that will allow you to load PDF files using an agent.</p><p>This means that for any entity or content type in Drupal, you can create a directed agent specifically with the context on how to generate this. I did not dig into system prompts in this episode on purpose. I will do another episode on the AI Agents Test module and how to perfect an agent.</p><p>Please note that doing the following can have security implications, and you always have to constrain agents.</p><p>Modules used:<br>AI: <a href=\"https://drupal.org/project/ai\">https://drupal.org/project/ai</a><br>AI Agents: <a href=\"https://www.drupal.org/project/ai_agents\">https://www.drupal.org/project/ai_agents</a><br>OpenAI Provider: <a href=\"https://www.drupal.org/project/ai_provider_openai\">https://www.drupal.org/project/ai_provider_openai</a><br>AI Simple PDF to Text: <a href=\"https://www.drupal.org/project/ai_simple_pdf_to_text\">https://www.drupal.org/project/ai_simple_pdf_to_text</a><br>Tool API: <a href=\"https://www.drupal.org/project/tool\">https://www.drupal.org/project/tool</a></p>",
  "intro_added": false,
  "chapters": [
    "0:00 What we will build",
    "1:41 AI Simple PDF to Text",
    "2:04 Why use the Tool API",
    "4:13 Modules and the content type",
    "6:17 Creating the restaurant agent",
    "7:38 Adding the entity tools",
    "12:34 Constraining the tools to nodes",
    "14:23 Testing the agent on the PDF",
    "18:08 Testing agents with AI Agents Test",
    "20:55 Summarize, do not extrapolate"
  ],
  "corrections": [
    [
      "freely give",
      "FreelyGive"
    ],
    [
      "Eurogen",
      "Jürgen"
    ],
    [
      "view bulk operations",
      "Views Bulk Operations"
    ],
    [
      "tool API",
      "Tool API"
    ],
    [
      "AI simple",
      "AI Simple"
    ],
    [
      "burger meister",
      "Burgermeister"
    ],
    [
      "burgermeister",
      "Burgermeister"
    ],
    [
      "Tim Raw",
      "Tim Raue"
    ],
    [
      "in football",
      "in Drupal"
    ]
  ],
  "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."
}