Introduction to AI Agents in Drupal

Drupal AI Agents are admin tools that can automate many administrator activities. Admin users can do various admin configuration activities using prompts.
This module comes with Drupal AI module. Enable AI core , enable other modules if it asks while installing like Keys and Modelar API.
Make sure you have installed and configured any one of the AI provider like open AI, Gemini etc.
Install AI Agent module – https://www.drupal.org/project/ai_agents
Go to config page /admin/config/ai/agents

By default below Agents are available by default after installing AI Agent module.
- Content Type Agent – create/edit and delete content type. Aks questions about content
- Field Agent – adding, editing, informing, reordering or removing a field types to an existing Drupal entity type/bundles, lookup fields, change the form display and view display of the fields.
- Media Agent – give information about media types
- Taxonomy Agent – generate and edit vocabularies. create and edit taxonomy terms.answer questions
You can try this agents by clicking Explore option in operations section

This will opens below page where we can provide prompts and select Agents in left screen. We will see the result at right side as below.

You can see I provided prompt “create a news content type with news title and news body field , also include news banner image field”
In right side you can see the result saying created news content type. If we are checking in content type, we can see new content type ‘news’ without any fields. Here we asked to create fields, this Agent will only create content type.

So for creating a field we have selected field Agent as below in Agent dropdown and provided prompt – “in news content type create news title and news body field , also include news banner image field.”

So you can see the newly created fields in news content type.

In Each Agent edit page you can see all configurations of that Agent.

You can see above tools. These are built in tools already part of Dupal instance , Agent will use these tools to do the actions.
We will discuss more on creating our own Agents in next article.