Skip to content

Drupal AI Module

Provider-agnostic AI abstraction for Drupal 11. Covers provider setup, all 15 operation types, agents, automators, the DeepChat chatbot, CKEditor integration, vector search/RAG, guardrails, and the complete sub-module ecosystem.

I need to... Guide
Understand the AI module architecture and request lifecycle Core Architecture
Work with AI providers (Anthropic, OpenAI, Ollama, etc.) Provider System
Call an AI operation (chat, embeddings, TTS, etc.) Operation Types
Build a REST chat API or embed a chatbot AI Chatbot (DeepChat)
Create AI assistants with action plugins AI Assistant API
Build autonomous AI agents AI Agents
Create custom tools/functions for agents Function Calling
Auto-generate field content on entity save AI Automators
Add AI features to CKEditor 5 AI CKEditor
Set up vector search / RAG AI Search (Vector/RAG)
Translate content with AI AI Translate
Add AI validation to fields AI Validations
Add action buttons to field widgets Field Widget Actions
Monitor AI usage and costs in production AI Observability
Log AI requests for local debugging AI Logging
Test AI operations interactively AI API Explorer
Add guardrails (pre/post processing) Guardrails System
Use short-term memory plugins Short-Term Memory
Work with prompts and prompt types Prompt System
Subscribe to AI events Events System
Handle AI-specific exceptions Exceptions
Work with enums, DTOs, structured output Enums & DTOs
Follow security best practices Security
Plan migrations from deprecated modules Deprecated Modules
Identify gaps in official documentation Documentation Gaps