How to Build a Drupal AI Agent to Create Content from PDFs

Create content generation agents in Drupal that can read PDF

Marcus Johansson outlines a method for creating AI agents within Drupal that can generate content of a specific content type or entity from a PDF file.

Marcus demonstrates how the new Tool API serves as the foundation for function‑calling tools in Drupal, and how the contributed module AI Simple PDF to Text enables agents to load and extract content from PDFs. He shows an example where an agent creates nodes of type “restaurant” by reading a PDF listing and mapping fields such as title, address, phone, and description.

The walkthrough highlights key modules including AI, AI Agents, and the AI Simple PDF to Text module. Johansson emphasises the importance of constraining agents for security and mentions the module AI Agents Test for testing agents, noting that building overly broad or generic agents may introduce vulnerabilities.

Video by Marcus Johansson available at https://www.youtube.com/watch?v=WnZ6GgmYI4c

 

Reference: Content Create Agent, FreelyGive (7 November 2025)

Disclosure: This content is produced with the assistance of AI.

Disclaimer: The opinions expressed in this story do not necessarily represent that of TheDropTimes. We regularly share third-party blog posts that feature Drupal in good faith. TDT recommends Reader's discretion while consuming such content, as the veracity/authenticity of the story depends on the blogger and their motives. 

Note: The vision of this web portal is to help promote news and stories around the Drupal community and promote and celebrate the people and organizations in the community. We strive to create and distribute our content based on these content policy. If you see any omission/variation on this please reach out to us at #thedroptimes channel on Drupal Slack and we will try to address the issue as best we can.

Related Drupal Initiatives

Related Organizations

Related People

Upcoming Events

Latest Opportunities