1 min read
Chat SDK now supports cross-platform conversation history through the new transcripts and identity options. User transcripts persist across every platform adapter, allowing the same user to keep their message history wherever they message your bot.
import { Chat } from "chat";
const bot = new Chat({ userName: "mybot", identity: ({ author }) => author.email ?? null, transcripts: { retention: "30d", maxPerUser: 200, }, // ...});Identify users by email and keep up to 200 messages per user for 30 days
bot.transcripts exposes four methods, backed by one of the official state adapters:
append: persist an inbound message or a bot replylist: return entries chronologically with filterscount: total entries stored for a userdelete: wipe every entry for a user
Read the documentation to get started, or try one of the templates.
The Complete Guide to Chat SDK
Learn how Chat SDK works end-to-end: from core concepts to building your first bot to deploying it across Slack, Teams, and more.
Read the guide