# Chat SDK now supports conversation history

**Published:** May 8, 2026 | **Authors:** Ben Sabic, Josh Singh

---

Chat SDK now supports cross-platform conversation history through the new `transcripts` and `identity` options. User transcripts persist across every [platform adapter](https://chat-sdk.dev/adapters), allowing the same user to keep their message history wherever they message your bot.

**lib/bot.ts**
```typescript
import { Chat } from "chat";
const bot = new Chat({
  userName: "mybot",
  identity: ({ author }) => author.email ?? null,
  transcripts: {
    retention: "30d",
    maxPerUser: 200,
  },
  // ...
});
```

`bot.transcripts` exposes four methods, backed by one of the [official state adapters](https://chat-sdk.dev/adapters#:~:text=locking%2C%20and%20caching.-,Official,-Published%20under%20%40chat):

- `append`: persist an inbound message or a bot reply
- `list`: return entries chronologically with filters
- `count`: total entries stored for a user
- `delete`: wipe every entry for a user

Read the [documentation](https://chat-sdk.dev/docs/conversation-history) to get started, or try one of the [templates](https://chat-sdk.dev/resources).

**The Complete Guide to Chat SDK**
Learn how Chat SDK works end-to-end: from core concepts to building your first chatbot to deploying it across platforms.
[Read the guide](https://vercel.com/kb/guide/the-complete-guide-to-chat-sdk)

---

📚 **More updates:** [View all changelog entries](/changelog/sitemap.md) | [Blog](/blog/sitemap.md)