Skip to main content
Drupal is a registered trademark of Dries Buytaert
EOL Warning: Drupal 11.0 has reached end of life and no longer receives security updates. Release: Private content 3.1.0 Minor update available for module private_content (3.1.0). Release: Webform Analysis 2.0.0 Major update available for module webform_analysis (2.0.0). Usage Milestone: Focal Point Module focal_point crossed 1,000 active installs. Release: Changelogify 1.8.1 Minor update available for module changelogify (1.8.1). Release: Block Content Visibility 1.0.0 Initial release available for module block_content_visibility (1.0.0)! Release: Opensolr Search 4.3.1 Minor update available for module opensolr_search (4.3.1). Release: Opensolr Search 4.3.0 Minor update available for module opensolr_search (4.3.0). Release: Palette🎨 1.0.3 Minor update available for module canvas_palette (1.0.3). Release: Opensolr Search 4.2.4 Minor update available for module opensolr_search (4.2.4).

AI Insights analyzes your Drupal site's AI assistant conversations to automatically identify and track user topics. It provides a dashboard to visualize trends and allows you to set up email alerts for new topics, volume spikes, or specific topic activity.

Overview

AI Insights brings analytics and notifications to your Drupal site's AI
assistant conversations. It uses LLM-powered classification to automatically
discover what users are asking about, tracks topic trends over time, and
can alert you when things change.

Built on top of
AI Chatlog and the
AI module ecosystem.

Submodules

AI Insights Topics

Automatically classifies AI conversations into topics using your
configured LLM provider. A configurable "granularity prompt" controls
whether topics are broad categories or fine-grained sub-areas. Topics are
stored as taxonomy terms, created on-the-fly as the classifier discovers
them.

  • Topic dashboard — top topics ranked by volume,
    trend comparison between date ranges, weekly timeline, and a chat vs
    search split view.
  • Chatlog integration — topics appear as a column
    and filter on the conversation list, and in the conversation detail
    header.
  • Admin tools — re-tag conversations after
    changing the prompt, merge duplicate topics, delete unwanted topics.
  • Drush command —
    drush ai-topics:tag for manual or catch-up runs.

AI Insights Alerts

Configurable notification rules that evaluate on cron and send email
alerts when topic activity matches your criteria.

  • Topic Alert — notify when specific topics
    appear above a threshold.
  • Volume Spike — notify when a topic trends up
    compared to its baseline.
  • New Topic — instant notification when the
    classifier discovers a previously unseen topic.
  • Digest — periodic summary of all topic
    activity.

Each rule supports configurable frequency (hourly, daily, weekly),
recipient lists (email addresses and/or Drupal roles), source filtering
(chat only, search only, or both), and a daily email cap to prevent
flooding. A notification log tracks all sent alerts.

How classification works

  1. On cron, the TopicTagger finds conversations not yet classified.
  2. User messages are sent to the LLM with a prompt that includes the
    granularity instructions and the list of existing topics (to prefer
    reuse).
  3. The LLM returns a JSON array of 1–3 topic names.
  4. Topics are matched to existing taxonomy terms or created as new
    ones.
  5. Mappings are stored in a custom table linking thread IDs to term
    IDs.

Requirements

  • Drupal 10.3+ or 11
  • AI Chatlog
  • AI (with a
    configured chat provider)

Installation

  1. Install with Composer or place in
    modules/contrib/.
  2. Enable:
    drush en ai_insights ai_insights_topics
        ai_insights_alerts
  3. Configure the granularity prompt and AI provider at
    Configuration > System > Topic Intelligence.
  4. Run drush ai-topics:tag to classify existing
    conversations.
  5. View results at Reports > AI Topics.
  6. Create notification rules at Configuration > System >
    Topic Notifications
    .

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Apr 2026
Latest release
4 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Core Release date
1.0.x-dev Dev 10–11 Apr 16, 2026