VSdev home
Content Management / Case Study

AI Integration for a Drupal Page Builder

VSdev extended an existing Drupal page builder with AI generation and editing, and refactored its frontend to remove jQuery.

Category
Content management
Platform
Existing Drupal page builder
Scope
AI integration and JavaScript refactor
Interface mockup of the Edit with AI panel applying a prompt to the selected hero section, which now has a navy background and white text
Conceptual interface mockup of AI editing for a selected section.

The challenge

The builder already gave editors visual tools to create and customize pages. The goal was to bring AI into that workflow so that generated content could still be edited through the builder.

The existing frontend also relied heavily on jQuery, which made the JavaScript code harder to maintain.

AI generation and editing

We integrated AI into the builder so editors could generate an entire page or a single section from a prompt. We built the conversion logic that turned AI-generated code into the builder’s native, editable elements. Editors could then refine the generated page using the same visual controls they used for manually built content.

The integration also supported edits to existing sections. An editor could select a section and ask the AI to change its colors. The update applied to that section while preserving its structure and editable elements.

JavaScript refactor

We cleaned up the builder’s existing JavaScript code, replaced its jQuery usage with vanilla JavaScript, and removed the jQuery dependency from the builder entirely.

Interface mockup of an empty page in the builder, with Full page and Section options, a prompt describing a landing page, and a Generate page button
Generating a full page from a prompt, with the option to generate a single section.
Interface mockup of a generated landing page open in the builder, with the hero section selected, a layers panel, and element settings for layout, spacing, and background
The generated page, editable with the builder’s visual controls.

Conceptual interface mockups illustrating the builder’s AI features. Names and content are examples.

Our role

  • Integrated AI into the existing Drupal page builder
  • Implemented full-page and section generation from prompts
  • Built the conversion from AI-generated code to native builder elements
  • Added AI editing for selected sections
  • Refactored the frontend and completed the migration from jQuery to vanilla JavaScript

This work draws on our AI solutions and automation and web development services.

The outcome

Editors gained three ways to use AI within the builder: generate a new page, add a section, or update an existing section in place. The resulting content remained editable through the visual builder, and the builder’s frontend ran on vanilla JavaScript.

Adding AI to an existing platform?

We integrate AI into existing products and modernize the code behind them.