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
- Drupal 10.3+ or 11 with compatible dependencies.
- A recent compatible AI Chatlog release:
https://www.drupal.org/project/ai_chatlog - AI with a configured chat provider:
https://www.drupal.org/project/ai - Regular cron execution for classification and scheduled alerts.
Getting started
- Install and enable:
drush en ai_insights ai_insights_topics ai_insights_alerts.
Optionally enableai_insights_cost. - Configure classification under
Configuration > AI > Topic Intelligence. - Run
drush ai-topics:tagto classify existing conversations,
then visit Reports > AI Topics. - 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.
Project information
- Project categories: Artificial Intelligence (AI)
3 sites report using this module
- Created by d0t15t on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
