ai_content_summarizer
Automatically generate summaries and SEO-friendly title suggestions for your Drupal content using AI. Supports multiple LLM providers out of the box: Ollama (local), OpenAI, Anthropic (Claude), and Google Gemini.
Features
Auto-summarize on save — generate summaries when content is created or updated.
Display in teasers — AI summaries appear in teaser and search result view modes.
Multiple LLM providers — switch between Ollama, OpenAI, Anthropic, and Gemini from the admin UI.
Title suggestions — optionally generate alternative SEO-friendly titles.
Customizable prompts — edit the prompt templates to fit your content strategy.
Manual trigger — summarize any node on demand via an admin action.
Multilingual aware — summaries stored per language.
Requirements
- Drupal 10.3+ or 11.x
- PHP 8.1+
- At least one LLM backend:
- Ollama (recommended for local testing) — Install Ollama (https://ollama.com/) and pull a model (e.g., ollama pull llama3.2).
- OpenAI — an API key from https://platform.openai.com/
- Anthropic — an API key from https://console.anthropic.com/
- Google Gemini — an API key from https://aistudio.google.com/
Configuration
- Choose a provider — select Ollama, OpenAI, Anthropic, or Gemini and enter the required credentials (API key, server URL, model name).
- Enable content types — check which content types should be summarized.
- Source fields — list the field machine names whose text will be sent to the LLM (defaults to
body). - Behavior — toggle auto-summarize on save, title suggestions, and set the summary character limit.
- Prompt templates — customise the summary and title suggestion prompts.
Usage
-
Automatic summarization
When Auto-summarize on save is enabled, saving a node of an enabled content type will generate and store a summary. The summary is only regenerated when the title or source fields change.
-
Manual summarization
Visit
/admin/content/ai-summarize/{node_id}(requires the Use AI Content Summarizer permission) to generate a summary on demand. -
Viewing summaries
AI summaries are automatically rendered in teaser and search_result view modes for enabled content types.
Permissions
If there are modules providing similar functionality, please describe what differentiates them.
- Administer AI Content Summarizer — Configure settings, models, and prompts.
- Use AI Content Summarizer — Manually trigger summarization on nodes.