AVA Module Introduces AI-Assisted Views Creation in Drupal
A contributed Drupal module, AI Views Generator (AVA), introduces AI-assisted configuration to the Views system, enabling users to generate content listings, pages, and blocks using natural language prompts.
The module addresses the complexity of Drupal’s Views interface, which is widely used for querying and displaying content but can present a learning curve for new users. By allowing users to describe desired outputs in plain language, AVA generates YAML configurations that can be reviewed and refined through the standard Views interface.
Developed by @drupal learn, the module integrates with Google Gemini to interpret prompts and construct initial View configurations. Rod Martin shared his insights on how it works in practice, noting that it can map common fields such as titles, body content, and images, apply rendering plugins, and generate display outputs, including pages and blocks.
The module includes safeguards intended to prevent access to sensitive system data, such as user or session tables, during configuration generation. It extends rather than replaces the existing Views system, allowing generated configurations to be edited using Drupal’s standard tools.
The documentation also highlights limitations, noting that AI-generated configurations should be reviewed and refined, particularly for complex use cases. Output quality depends on prompt clarity, and some elements, such as field formatters, may require manual adjustment.
AVA currently depends on Google Gemini as its language model provider and does not support alternative models. It requires configuration of an API key and operates within standard Drupal components, including the Views module and Symfony YAML handling.
The module is positioned for rapid prototyping and onboarding, allowing site builders to bypass repetitive setup tasks and enabling non-technical users to participate in creating Views. It also supports discovery of advanced Views features by suggesting filters, relationships, and sorting options based on user prompts.
The introduction of AVA reflects broader experimentation within the Drupal ecosystem around AI-assisted tooling, particularly in areas that require complex configuration. It situates Views as a candidate for automation through natural language interfaces.
More information and installation details are available on the official Drupal project page.


