Active
Project:
Drupal Canvas
Version:
1.x-dev
Component:
AI
Priority:
Normal
Category:
Feature request
Assigned:
Issue tags:
Reporter:
Created:
11 Nov 2025 at 13:26 UTC
Updated:
25 Jan 2026 at 22:01 UTC
Jump to comment: Most recent
We want to introduce a way to record interactions with Canvas AI prompts. The goal is to monitor how the AI is being used and understand the status of these interactions. This information will help improve the usefulness of the AI by providing insights into its usage patterns.
Update CanvasAISettingsForm to include a checkbox for "Enable Logging".
src/Event/PrepareAiLogEvent): Responsible for building the logs array. Module developers can subscribe to this event to add or alter data to be logged.src/Event/LogAiPromptEvent): Responsible for sending or storing the logs array. Module developers can subscribe to this event to send log data to external or store it locally.Update the render() method of the CanvasAIBuilder class to dispatch events accordingly.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
utkarsh_33 commentedComment #5
utkarsh_33 commentedComment #6
utkarsh_33 commentedComment #7
vishalkhode commentedComment #8
vishalkhode commentedMoving this back until the logs data storage decision is finalised.
Comment #9
rakhimandhania commentedComment #10
rakhimandhania commented