Provide a Local Storage (browser) alternative for storing chatbot history

Created on 9 April 2025, 16 days ago

Problem/Motivation

Currently, the only available option for storing chat history in an AI Assistant is through server sessions. This can interfere with Drupal's caching and limits flexibility in how chat history is preserved.

Implementing local storage support would enable chat history to persist directly in the user's browser, decoupling it from server-side session handling.

Proposed resolution

- Implement an option to store chat history in the browser's local storage, enabled in the "Allow History" field of an AI Assistant
- Deepchat has the capabilities of intercepting requests and responses coming from/to the User and the AI, this can be used to intercept each message from the User and AI and add it to its local storage space, as well as appending previous chat history being sent to the AI along with the current message

User interface changes

New configuration option in the AI Assistant settings to enable storing chat history in the browser using local storage.

Feature request
Status

Active

Version

1.1

Component

AI Assistants API

Created by

🇵🇹Portugal bbruno Poland

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024