This project is not covered by Drupal’s security advisory policy.
Note: The module is WIP (work-in-progress) - it's more of PoC as of today, not really ready for any part of either production or small personal projects. But keep your eye on - as it's under active development.
Overview
AI Layout Builder is a Drupal module that bridges Drupal's Layout Builder system with AI-powered layout generation. It exposes a service API that validates JSON layouts, manages available blocks and sections, and even automates node creation using AI output.
Screenshot showing the AI Layout Builder interface in action
Module Structure
-
ai_lb_example – This submodule provides a simple form (accessible via the
/admin/config/ai/ai-lb-exampleroute) that displays all the information exposed by the AI Layout Builder service. It is useful for quickly glancing at and validating the generated JSON layout data. -
ai_lb_agent – This submodule provides an AI Agent that leverages the AI Layout Builder service to generate a layout and automatically create or update a node with a specific layout. It uses permissions (see
ai_lb_agent/ai_lb_agent.permissions.yml) to control access. - ai_lb_ideation – This submodule offers a multi-step form flow designed for content ideation. Instead of generating complex JSON objects, it relies on YAML output to generate and validate a final content layout. The aim here is to experiment with simpler sequential flows using leaner models like GPT-4o-mini or Groq.com models.
Configuration and Available Routes
-
Configuration Route – Accessible via
/admin/config/ai/ai-lb-settings, this route allows administrators to configure resources (such as exposing blocks and layout sections) and enable tools like JSON validation and automated node creation. -
Example View Route – Accessible via
/admin/config/ai/ai-lb-example, this route loads the AI Layout Builder Example form that demonstrates the information exposed by the AI Layout Builder service (interactive - helps with debugging).
Supporting organizations:
Founding & funding organization
| Attachment | Size |
|---|---|
| preview of the module | 169.63 KB |
Project information
- Project categories: Automation, Content editing experience, Integrations
- Created by nikro on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
