Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

This module allows users to generate page templates within Drupal's Experience Builder using natural language prompts. It assembles available components from your theme to create layouts based on your descriptions.

Note: The functionality of this module has moved to Drupal Canvas AI

This module provides an AI powered extension to the Experience Builder, enabling users to generate page templates using natural language. Simply describe the desired layout in plain English, such as:

"Create a homepage template for a university website."
"Add a slider with five slides as the second component."
"Display two paragraphs side by side."

The AI assistant will intelligently analyze the available Single Directory Components (SDCs) in your theme/module and strategically assemble them into a well-structured layout.

Watch the demo

Usage

  • Provide meaningful descriptions for SDC components: The assistant relies on component and slot descriptions to determine their suitability for a layout. Well defined descriptions improve the accuracy of the generated structure.
  • Update settings.php: This module leverages the AI Assiatants and AI agents modules, but requires some tweaks to the default prompts. So add the following lines to the settings.php to override the default prompts
  $settings['ai_assistant_advanced_mode_enabled'] = TRUE;
  $settings['ai_assistant_custom_prompts'] = TRUE;
  • Enable installing test modules: As of now, Some modules from experience_builder/tests/modules must be enabled to use the extension feature. So add the following line also to the settings.php
  $settings['extension_discovery_scan_tests'] = TRUE;

ddev drush en experience_builder xb_dev_standard xb_dev_mode

Demo with Starshot Demo Design System (SDDS)

  cd starshot
  patch -d web/themes/contrib/demo_design_system/ -p1 < web/modules/contrib/xb_ai_assistant/patches/sdds-sdc-info.patch
  • Add the following lines to the settings.php
// To install the required test modules.
$settings['extension_discovery_scan_tests'] = TRUE;
// To override the default prompts
$settings['ai_assistant_advanced_mode_enabled'] = TRUE;
$settings['ai_assistant_custom_prompts'] = TRUE;
// To use only the SDDS components.
$settings['xb_ai_assistant_ignore_xb_sdc'] = TRUE;

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Mar 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Core Release date
1.0.x-dev Dev 10–11 Mar 17, 2025