Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

AI history

When sendAI runs with saveHistory: true (the default), turns are stored server-side. Use fetchAIHistory to list them and deleteAIHistoryMessage to remove individual entries.

Methods

Method
Purpose

fetchAIHistory({ senderId })

List AI conversation history for a user

deleteAIHistoryMessage({ senderId, messageId })

Delete one stored message

AI history APIs use HTTP transport. Responses return directly from the method call.

Typical uses

Use case
Pattern

Support inbox UI

fetchAIHistory on ticket open

GDPR / privacy

deleteAIHistoryMessage on user request

Debug

Compare history with sessionId sessions

Audit

Cross-check with session logging dashboard

saveHistory flag

// Stored (default)
await notifier.sendAI({ senderId, message, saveHistory: true });

// Ephemeral β€” routing, classification, workflow internals
await notifier.sendAI({ senderId, message, saveHistory: false });

β†’ How-to guide: How to save AI message history Β· Observability overview

Language guides

Language
Guide

JavaScript / TypeScript

Dart / Flutter

AI history vs chat history

API
Scope

AI history

sendAI turns (fetchAIHistory)

Chat history

Realtime 1:1 messages between users β€” see Chat history

Next steps

Last updated