Chat SDK now supports conversation history

Published: (May 7, 2026 at 08:00 PM EDT)
1 min read

Source: Vercel Blog

May 8, 2026

Overview

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.

Example

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.

Transcripts API

bot.transcripts exposes four methods, backed by your existing state adapter:

  • 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

Getting Started

Read the Chat SDK documentation to get started, or try one of the templates.

0 views
Back to Blog

Related posts

Read more »

Chat SDK adds Messenger adapter support

May 8, 2026 !OG‑Chat‑SDK‑Messengerhttps://vercel.com/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2Fassets.vercel.com%2Fimage%2Fupload%2Fcontentful%2Fimag...