Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

XB AI Assistant

No security coverage Under active development

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;

Ask your assistant about XB AI Assistant

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

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 PHP Release date
1.0.x-dev Dev 10–11 Mar 17, 2025