ai_experience_wizard
This module was born from the idea: https://www.drupal.org/project/ai_initiative/issues/3542200
AI Experience Wizard simplifies the process of integrating AI capabilities into your Drupal site by providing a guided, step-by-step wizard that automatically installs and configures AI provider modules. Instead of manually installing multiple modules, configuring API keys, and setting up each provider separately, this module offers a unified interface that handles everything from package installation to secure key management in one streamlined workflow.
Disclaimer: Some of the code was generated using AI for this module, under human supervision.Features
AI Experience Wizard provides a four-step guided wizard for installing and configuring AI providers on Drupal sites.
- Automatic Installation: Uses Package Manager to automatically download and install AI provider modules via Composer
- Unified Configuration: Single interface for configuring all supported AI providers (OpenAI, Anthropic, LiteLLM, Google Gemini)
- Secure Key Management: Integrates with the Key module to securely store API credentials
- Recipe Integration: Discovers and applies Drupal recipes from core and contrib as part of the setup
- Extensible Architecture: Easy to add new providers via centralized registry
Post-Installation
After enabling the module, navigate to /ai-experience-wizard (requires "Configure AI providers" permission). The wizard guides you through four steps:
- Select AI Provider: Choose from OpenAI, Anthropic, LiteLLM, or Google Gemini. The wizard automatically installs the selected provider module.
- Configure Provider: Enter API credentials and provider-specific settings. Keys are stored securely via the Key module.
- Select Recipes (Optional): Discover and apply recipes from
/core/recipesor your project's/recipesdirectory. - Summary: Review your configuration and complete the setup.
Note: Package Manager must be enabled for automatic module installation. The wizard uses batch operations for package installation and will skip installation if a provider module is already present.
For Developers
To add a new AI provider, edit src/Config/AiProviderRegistry.php and add an entry to the PROVIDERS constant array.
The module uses Drupal's service container, batch API, and configuration system. All API keys are stored securely via the Key module.