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

Overview

AI Chatlog provides a browsable conversation log viewer for Drupal sites
using the AI module ecosystem. It reconstructs human-readable chat transcripts from the events already captured by AI Observability — no extra logging configuration needed.

If your site uses AI assistants or AI agents to interact with users, this
module lets administrators review those conversations from a single place
in the Drupal admin UI.

Screenshot

Features

  • Conversation list — paginated overview of all AI conversations with user, assistant, message count, timestamps, and token usage.
  • Basic Filtering / Sorting
  • Full transcripts — click any conversation to see the complete exchange history with per-message metadata (model, provider, tokens).
  • Retention management — configurable automatic cleanup via cron (default: 90 days). Bulk delete option available.
  • Service API — other modules can inject the ai_chatlog.query service to access conversation data programmatically.

How it works

AI Chatlog is a read-only query layer. It does not
subscribe to any events or write any data. All conversation data comes from
the logger_logs database table populated by AI Observability.

The module queries log entries tagged with
ai_assistant_thread_* or ai_agents_runner_*,
pairs pre-request and post-response events by their provider request ID, and
renders the results as a chat-style transcript.

Supported assistant types

  • AI Assistant API assistants
    (ai_assistant_api)
  • AI Agents (ai_agents)

Requirements

  • Drupal 10.3+ or 11
  • Logger DB
  • AI (specifically the
    AI Observability submodule)

Installation

  1. Install the module with Composer or place it in
    modules/contrib/.
  2. Enable it: drush en ai_chatlog
  3. Grant the View AI conversations permission to the appropriate
    roles.
  4. Visit Reports > AI Conversations to start browsing
    conversation logs.
Supporting organizations: 
Sponsored
AttachmentSize
ai-conversations.jpg506.95 KB

Project information

Releases