Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

AI Chatlog

No security coverage Under active development

Part of the AI ecosystem · 343 projects

AI Chatlog offers a viewer for human-readable chat transcripts generated by Drupal's AI module ecosystem. It reconstructs conversations from existing AI Observability logs, allowing administrators to easily review AI assistant and agent interactions directly within the Drupal admin UI.

Overview

AI Chatlog records the conversations your site's AI assistants and agents have with users, and presents them as browsable, threaded transcripts in the Drupal admin UI. It is built for sites using the AI module ecosystem.

The module keeps conversations in its own storage and starts recording as soon as it is enabled. No logging or observability module has to be set up first.

Features

  • Conversation list - paginated overview of all AI conversations with user, assistant, opening message, message count, timestamps and token usage. Built with Views, so it can be customised.
  • Filtering and sorting - filter by user, assistant and date range; sort by most columns.
  • Full transcripts - click any conversation to see the complete exchange history with per-exchange metadata (model, provider, tokens, timestamp).
  • Agent tool calls - tool-call retries are folded into the user turn they belong to, with each call's arguments and result. Conversations that ended without a text answer are flagged as unresolved.
  • Render modes - view messages as raw text, Markdown or safe HTML. Markdown needs league/commonmark ^2.0.
  • Privacy controls - choose whether to store message input and output, and what happens to a user's conversations when their account is deleted.
  • Retention management - configurable automatic cleanup via cron (default: 90 days). Delete a single conversation or all of them.
  • Error alerts - the optional AI Chatlog Alerts submodule detects tool-call failures and unresolved conversations, logs them, and can email a list of recipients.
  • Optional cost figures - shown on the transcript page when the ai_insights_cost submodule of AI Insights is enabled.
  • Service API - other modules can inject the ai_chatlog.query service to access conversation data programmatically.
  • Drush commands - rebuild or reconcile conversation summaries.

How it works

AI Chatlog subscribes to the AI module's response events and writes one record per exchange, holding the full input and output. A summary row per conversation is derived from those records and drives the list page. A streamed response is stored as a single record.

Recording never breaks a chat response: failures are caught and written to the ai_chatlog log channel.

Supported assistant types

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

Requirements

  • Drupal 10.3 or later, 11 or 12
  • AI
  • Install with Composer: composer require 'drupal/ai_chatlog:^1.0@beta'
  • Enable it: drush en ai_chatlog
  • Grant permissions to the appropriate roles: View AI conversations, Delete AI conversations and Administer AI Chatlog.
  • Adjust settings at Configuration > AI > Chatlog if needed.
  • Visit Reports > AI Conversations to browse conversations.
  • Privacy

    The module stores whatever users typed and whatever the model replied, so treat it as personal data. Anyone with View AI conversations can read every user's conversations, not only their own.

    Updating from a development snapshot

    Sites that ran 1.0.x-dev before 1.0.0-beta1 must update to 1.0.0-beta1 first. See UPDATES.md in the module for details.

    Ask your assistant about AI Chatlog

    Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

    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
    3
    Tracked since
    Apr 2026
    Latest release
    1 day ago
    Releases (12 mo)
    3 ▲ from 0
    Maintenance
    Active

    Release Timeline

    Releases

    Version Type Core PHP Release date
    1.0.0-beta2 Pre-release 10–11 Oct 12, 2026
    1.0.0-beta1 Pre-release 10–11 Oct 12, 2026
    1.0.x-dev Dev 10–11 Apr 16, 2026