Drupal AI: Modules, Canvas, and Provider Setup

Image

A collage featuring a crystal ball with a drupal logo in in with stars around it.

AI is shaking things up in the content world. If you’re using Drupal, you’re in luck because there are some amazing AI tools at your fingertips that can help you create better content, automate tedious tasks and even give your users a more personalized experience. From content generation to improving site moderation and keeping your users engaged with chatbots, Drupal’s AI modules make it possible.

In this post, we’re breaking down the top nine Drupal AI Modules that can help you do more with less effort. We’ll also show you how to connect an AI provider such as OpenAI to your Drupal site to automate content creation, streamline editorial workflows, and more.

What can AI do on an existing Drupal site?

Drupal AI can already draft, summarize, translate, and tag content and write alt text; agents and page generation are still maturing. Editor assistance, field automation, image descriptions, and AI search are practical starting points on a site you already run.

Treat agents that change site configuration and Canvas page generation as pilot work, with a person reviewing what they produce. These tools serve different jobs: a publishing task does not need the same access as an assistant that changes how your site is built.

Hosted model services commonly charge for the tokens they process, though plans and self-hosting costs vary. Canvas’s AI assistant documentation says page generation can send more than 30,000 tokens of context in one request. Model providers supply the AI, the Drupal AI Initiative develops open-source integrations, and your site’s platform runs Drupal. Pantheon is one governed platform where teams host, build, and run Drupal sites. It is also a Gold member of the Drupal AI Initiative.

Top 9 Drupal AI modules

1. Drupal AI

Drupal AI is a flexible framework that connects your site to powerful AI services like OpenAI, Anthropic, and Hugging Face through a pluggable API. Editors can use AI to generate content, suggest improvements, auto-translate text, or even create images directly within the content editor. Site builders can automate tasks like generating alt text, summarizing content, or tagging articles with smart automators. 

The module also supports AI chatbots, semantic search via vector databases, and a growing ecosystem of provider plugins. With a built-in AI API Explorer for testing provider operations, configurable permissions, and UI integration with CKEditor, it’s highly usable for both developers and content teams. Backed by the Drupal AI Initiative and offered through an optional AI recipe in Drupal CMS, which launched in January 2025, Drupal AI provides an extensible foundation for AI-powered workflows, from editorial productivity to interactive website experiences.

The framework connects to 95-plus AI providers. The Key module is the framework's only required contributed-module dependency and provides options for securely managing credentials. A compatible AI provider module must also be installed and configured to use provider-backed AI features. Guardrails introduced in version 1.3 can check AI inputs and outputs against configured rules. However, these checks don't guarantee that every unsafe or inaccurate response will be prevented.

2. Drupal Canvas AI assistant

Drupal Canvas, the visual page builder included by default in Drupal CMS 2.0, offers an AI assistant that builds pages from plain-language prompts. Formerly called Experience Builder, Canvas reached version 1.0 in December 2025. Its assistant can place existing components on a page or generate new code components.

To use the assistant, enable the canvas_ai submodule and configure an AI provider that supports function calling for all Chat operation types in Drupal's AI settings. This allows the assistant to request actions through Drupal's configured tools. The same prompt can produce different results between runs. Review and test the generated page and any new code components before publishing, checking that they match your content, design, and intended behavior and meet accessibility and security requirements.

3. CKEditor 5

CKEditor 5 is the default rich text editor in Drupal that now brings powerful AI capabilities to significantly enhance the content creation experience. CKEditor AI adds AI Chat, AI Review, AI Quick Actions, and AI Translate through the CKEditor 5 Premium Features module and a paid CKEditor license. The earlier AI Assistant plugin is a legacy feature.

The open-source AI CKEditor module offers another route, adding editing actions through the provider connected to Drupal AI. The module is free; provider usage may still cost money. WProofreader is also available through Premium Features for grammar and spell checking. These AI options require separate setup and configuration; they are not switched on by default in Drupal’s editor. Organizations should also review provider costs and data-handling requirements before enabling them.

4. Augmentor AI

Augmentor AI is a framework that connects Drupal with various external AI services through separate integration modules, such as OpenAI's ChatGPT, Google Cloud Vision, Google Speech-to-Text, and NLP Cloud. This allows Drupal users to leverage advanced AI features like text generation, image analysis, speech processing and natural language classification within their content management workflows.

Augmentor AI includes a plugin system to connect AI services and configurable augmentors to control prompts and how AI-generated results populate Drupal fields. It also supports CKEditor 5 integration, allowing editors to access configured AI actions from the editor toolbar. It also offers various field widgets: a default widget that returns a single best response, a select widget that provides multiple AI-generated options and a tags widget ideal for taxonomy or classification fields. Additionally, this module can map a single AI response to multiple Drupal fields, enabling more complex and dynamic content updates.

5. AI Agents

The AI Agents module enables you to manage Drupal sites through conversational interfaces rather than manual configuration. This makes site building and configuration more accessible and efficient. Users can interact with Drupal using natural language commands, which are interpreted by AI agents that carry out tasks like creating content types, fields and taxonomies.

Drupal CMS uses AI Agents behind its admin chatbot for these site-building tasks. Treat agent-made configuration changes as pilot work: try them outside your live site first and review the results.

6. AI Search

AI Search adds semantic search and supports retrieval-augmented generation (RAG) in Drupal by generating embeddings from site content and storing them in a vector database through Drupal's Search API module. Embeddings are numerical representations that help match a question with content by meaning, rather than relying only on exact words.

For a chatbot, RAG retrieves relevant material from your site to inform the answer. Supported databases include PostgreSQL with pgvector, MariaDB, Pinecone, and Milvus. AI Search is now maintained as a standalone project, replacing the deprecated AI Search submodule in Drupal AI, so check its own requirements and vector database integration when planning your installation.

7. AI provider modules

AI provider modules connect the Drupal AI framework to a specific model service. For supported operations, you can switch the configured provider without rewriting the integration, although settings and workflows may need adjustments. Options include OpenAI, Anthropic, Google Gemini, AWS Bedrock, amazee.ai’s Private AI Provider, and locally hosted models served through Ollama or LM Studio (provided Drupal can access the model server). Check that a provider supports the operation you need; their capabilities differ.

The older OpenAI / ChatGPT Integration module has no supported stable release, so use the current provider module for new integrations. Pantheon sponsors current development of the Gemini Provider module.

8. Automatic Alternative Text

The Automatic Alternative Text module uses artificial intelligence to automatically generate descriptive alternative text (alt text) for images when none is provided. It integrates with services like Microsoft Azure Cognitive Services and Alttext.ai to analyze images and return a human-readable description. This improves web accessibility, especially for users who rely on screen readers.

This module is especially useful for user-generated content platforms like intranets, forums or community portals, where users often skip adding alt text. It’s a practically beneficial tool for enhancing accessibility at scale.

Drupal CMS’s AI recipe also includes AI Image Alt Text, which generates descriptions through a vision-capable provider connected to Drupal AI.

9. Search API Solr NLP

Search API Solr NLP enhances the capabilities of the existing Search API Solr module by integrating Apache OpenNLP, a natural language processing library. It enables linguistic analysis during search indexing, allowing Solr to identify parts of speech and use specialized field types to retain terms such as nouns. These extracted terms can support features such as autocomplete and spell-checking when the appropriate search components are configured.

The module can be useful for documentation portals, e-commerce websites, and multilingual sites that need language-aware term processing to support specialized search features, provided suitable language models are available. Before installation, verify that your Solr hosting environment supports custom configuration sets and that your Drupal, Solr, and module versions are compatible.

How do you connect an AI provider to Drupal?

To connect an AI provider to Drupal, install Drupal AI and a compatible provider module, store the provider's API key with the Key module, and select default providers and models for the operations you need.

On Drupal CMS 2.0, start under Extend > Recommended add-ons. Select the AI Assistant recipe, install it, and follow the provider configuration prompts. On an existing Drupal site, use the steps below, with OpenAI as the example.

  1. Install the framework and provider with Composer: composer require drupal/ai drupal/ai_provider_openai. Verify that the installed versions are compatible with your Drupal site and include the latest applicable security updates. Enable the downloaded modules and their dependencies in Drupal.
  2. Create an API key in your provider account. In Drupal, open Configuration > System > Keys and add a key. On Pantheon, install and configure the Pantheon Secrets module, store the credential as a runtime secret with web scope, and then select Pantheon Secret as the Key provider, as described in the platform section below.
  3. Open the OpenAI provider settings at /admin/config/ai/providers/openai and select the stored key. Use the equivalent settings for a different provider module.
  4. Open AI settings at /admin/config/ai/settings and review or configure the default provider and model for each operation you need, such as Chat or Embeddings. The available choices depend on the connected provider.
  5. Enable AI API Explorer in a development environment and open /admin/config/ai/explorers. Use the appropriate Explorer to submit a test request, inspect the response, and confirm that the intended provider and model are working. Then test the Drupal feature that will use them.
  • Implementing AI chatbots and assistants for user engagement

AI chatbots can respond to user queries, provide 24/7 support, and even handle multiple conversations at once. This means users don’t have to wait for answers. They can also receive recommendations tailored to their questions or available information when appropriate integrations are configured, potentially improving the support experience and encouraging engagement.

To add a chatbot through Drupal AI:

  1. Enable AI Chatbot after configuring Drupal AI and a compatible AI provider. Choose a ChatProcessor to handle conversations, such as the RAG Processor or the AI Assistant API Processor for an existing assistant, and configure its behavior and provider settings as required.
  2. If the chatbot should answer questions using your site's content, configure the standalone AI Search module with a compatible embeddings provider and vector database, then index the relevant content. Connect the search index to the chatbot through the appropriate RAG processor, assistant action or retrieval tool, and verify that it retrieves relevant, up-to-date content without exposing restricted information.
  3. Configure guardrails to restrict topics and filter inputs and replies. Test those rules with off-topic requests as well as the questions you expect visitors to ask.
  4. Place the AI Chatbot block through Structure > Block layout (/admin/structure/block), configure its ChatProcessor and introductory message, and test it outside your live site. Review its answers and behavior before making it available to visitors.

What does a platform need to run Drupal AI safely?

AI features add API keys, untested output, and new traffic to a Drupal site. Your platform needs safe testing environments, secret storage, and capacity for the requests that pass through Drupal.

These are practical requirements to check when choosing Drupal hosting:

  • Developer tools: AI integration often involves complex configurations and custom development. Developer tools help teams configure, test, troubleshoot, and deploy AI integrations while identifying issues before they affect visitors. With Pantheon, you get a suite of developer-friendly tools, including Git-based workflows, Dev, Test, Live environments and Multidev. These tools allow developers to easily test, debug and deploy AI features without disrupting the live site. Plus, Pantheon’s Terminus CLI enables developers to manage site environments, deploy code, run Drush commands, and automate supported workflows from the command line.
  • API keys: The Pantheon Secrets module adds Pantheon Secret as a Key provider. It lets Drupal retrieve API credentials securely from Pantheon Secrets without storing the secret values in application code or Drupal configuration. Store the key value in Pantheon Secrets, then select Pantheon Secret as the Key provider in Drupal. You can also use environment-specific secrets to keep development and production credentials separate.
  • Traffic: Chatbots and AI search can introduce additional requests and processing through Drupal, depending on how they're configured. Scaling provides capacity for that traffic, while caching helps keep the rest of the site responsive. Model generation happens at the configured AI provider; hosting does not make that provider’s model run faster.

As you can see, with scalable, secure, and high-performance infrastructure, Pantheon helps you get the most out of your AI-powered features by giving them a safe place to be tested, deployed, and run.

Run your AI-powered Drupal site on Pantheon

By integrating the Drupal AI framework and its modules, you can elevate your Drupal site to new heights. To build pages with AI on top of that site, Pantheon offers P1, its AI-native web composition layer.

Whether you’re just getting started with AI or scaling up to accommodate more complex features, choose the modules that support your content workflow and review their output before publishing.

Get started with Pantheon today

Frequently asked questions about Drupal AI

Do you need Drupal CMS to use Drupal AI?

No. The current Drupal AI 1.5 release works with Drupal 10.5+ or Drupal 11.2+, so an existing site can install the modules directly. Drupal CMS offers an optional AI Assistant recipe that installs and configures several AI-related modules, although a compatible provider must still be configured. The recipe can also be used on compatible Drupal sites outside Drupal CMS. Current Drupal Canvas releases require Drupal 11.3+, so check the requirements for the tools you plan to install.

Should you use Drupal AI modules or an external AI publishing service?

Use Drupal AI modules when you want AI actions inside Drupal’s editor, permissions, and workflows. If your team drafts outside Drupal, Pantheon’s Content Publisher connects Google Docs and Microsoft Word authoring to Drupal through a native module. It also supports AI-powered metadata generation and integrations with compatible AI assistants through MCP.

Both approaches can work together, allowing teams to use Drupal AI for on-site functionality while managing external content collaboration and publishing through Content Publisher, without replacing Drupal.

What content does Drupal AI send to an AI provider?

Drupal AI sends the inputs and context needed by the action to the provider you configure. That can include prompts, content, conversation history, or retrieved material. Self-hosting can keep model processing in-house when the relevant operations use your own infrastructure. Review each integration and provider’s data terms before deciding what information it should process.

Editor's note: This guide was first published in August 2025 and updated in November 2026 for Drupal CMS 2.0, Drupal Canvas, and version 1.5 of the Drupal AI module.

Drupal