Skip to main content
Skip to main content

Drupal AI

Content Create Agent

Build an agent that reads a PDF and creates a restaurant node from it, with Tool API tools that can only touch restaurants.

About this video

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.

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.

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.

Please note that doing the following can have security implications, and you always have to constrain agents.

Modules used:
AI: https://drupal.org/project/ai
AI Agents: https://www.drupal.org/project/ai_agents
OpenAI Provider: https://www.drupal.org/project/ai_provider_openai
AI Simple PDF to Text: https://www.drupal.org/project/ai_simple_pdf_to_text
Tool API: https://www.drupal.org/project/tool

Watch the video

0:00

Transcript

YouTube's automatic captions, lightly corrected. Click a line to jump to that moment in the video.

Chapters

Updated 2 min read

Other ways to consume this

Filed under Workflows Drupal AI Agents
AI modified

Parts of this content were produced by AI.

How was AI used?

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.