drupal / display_builder_ai_recipe
Adds the Display Builder AI assistant to a Display Builder site, with an AI provider.
Package info
git.drupalcode.org/project/display_builder_ai_recipe.git
Type:drupal-recipe
pkg:composer/drupal/display_builder_ai_recipe
Requires
- drupal/ai: ^1.4
- drupal/ai_agents: ^1.3
- drupal/ai_provider_anthropic: ^1.2
- drupal/ai_provider_openai: ^1.2
- drupal/display_builder: ^1.0@beta
- drupal/display_builder_ai: ^1.0@alpha
- drupal/display_builder_tools: ^1.0@beta
- drupal/tool: ^1.0@beta
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-23 14:27:09 UTC
README
Adds the Display Builder AI assistant to a site using Display Builder: an agent that builds displays from a prompt, in the builder's chat panel.
It installs Drupal AI, AI Agents, the AI chatbot, Tool API and Display Builder Tools, and connects OpenAI or Anthropic.\ The assistant needs a chat model able to call tools, so a paid plan and an API key.
Requirements
A site with Display Builder 1.0.0-beta10 or later, such as one built with the Display Builder Bootstrap recipe.
Installation
composer require drupal/display_builder_ai:^1.0@alpha drupal/display_builder_ai_recipe:^1.0@alpha
drush recipe:apply ../recipes/display_builder_ai_recipe
Display Builder AI is in alpha: Composer reads a stability flag from the
site's composer.json only, so the command requires it there too.
Drush asks for an API key for each provider.\
Leave both empty to install now and connect a provider later at
Administration > Configuration > AI > AI Infrastructure > AI Platform
Providers.\
The keys can also come from the openai_api_key and anthropic_api_key
environment variables.
The key is stored with the Key module, in configuration.\ Move it to an environment variable or a file key provider before exporting configuration to a shared repository.