This project is not covered by Drupal’s security advisory policy.

Overview

AI Insights adds topic analytics, search-term statistics, cost estimates,
and email notifications to AI Chatlog conversations in Drupal.

Submodules

AI Insights Topics

Automatically classifies conversations using your configured LLM.
A customizable prompt controls topic granularity. Topics are stored as
taxonomy terms and reused across conversations.

  • Topic dashboard: ranked topics, trends, breakdowns
    by assistant, and chat vs search activity.
  • Top 20 search terms: complete user inputs across
    all topics, including unclassified conversations, ranked by count.
    Counting is case-insensitive, without thematic grouping.
  • Date filtering: freely select start and end dates
    using the shared dashboard filter.
  • Management: re-tag conversations, merge or delete
    topics, and view assigned topics in conversation details.

AI Insights Alerts

Create email rules for topic thresholds, volume spikes, newly discovered
topics, periodic digests, and models without configured prices. Scheduled
rules run on cron; new-topic notifications can fire immediately.
Recipient lists, daily email caps, and a notification log are included.

AI Insights Cost

Optionally estimate conversation costs using recorded token usage and
configurable provider/model pricing. View breakdowns by user, assistant,
and model, with configurable currency and exchange rates. Sample prices
must be reviewed and enabled before use.

Requirements

Getting started

  1. Install and enable:
    drush en ai_insights ai_insights_topics ai_insights_alerts.
    Optionally enable ai_insights_cost.
  2. Configure classification under
    Configuration > AI > Topic Intelligence.
  3. Run drush ai-topics:tag to classify existing conversations,
    then visit Reports > AI Topics.
  4. Configure alerts under
    Configuration > AI > Topic Notifications.

Grant the appropriate permissions to your administrator roles.
Search-term statistics additionally require
View AI conversations; cost reporting has a separate
permission.

Supporting organizations: 
Sponsored

Project information

Releases