T
traeai
登录
返回首页
Vercel News

Chat SDK 现已支持对话历史

8.5Score
Chat SDK 现已支持对话历史

TL;DR · AI 摘要

Vercel 的 Chat SDK 新增跨平台对话历史支持,通过 `transcripts` 与 `identity` 实现多端消息记录同步。

核心要点

  • Chat SDK 支持 `transcripts` 与 `identity` 选项,实现跨平台对话历史持久化。
  • 用户在不同平台使用同一 bot 时,消息历史可自动同步。
  • 仅需启用配置即可实现多端对话记忆功能。

结构提纲

按章节快速跳转。

  1. Vercel 在 2026 年 5 月 8 日宣布其 Chat SDK 新增对跨平台对话历史的支持。

  2. 通过新增的 `transcripts` 和 `identity` 配置项,系统可为用户提供跨平台的消息历史记录。

  3. 利用平台适配器(platform adapter)统一管理用户身份与对话转录,实现历史数据共享。

  4. 开发者只需在初始化 Chat SDK 时启用 `transcripts: true` 和 `identity` 参数即可开启功能。

  5. 用户在网页和移动端与同一 AI Bot 对话时,可无缝延续之前的聊天上下文。

思维导图

用一张图看清主题之间的关系。

查看大纲文本(无障碍 / 无 JS 友好)
  • Vercel Chat SDK 跨平台对话历史支持
    • 核心功能
      • `transcripts` 选项启用历史记录
      • `identity` 选项绑定用户身份
    • 技术实现
      • 平台适配器统一管理上下文
      • 分布式存储对话转录
    • 应用场景
      • Web 与 Mobile 多端同步
      • AI 客服上下文延续

金句 / Highlights

值得收藏与分享的关键句。

  • 用户在不同平台与 bot 交流时,消息历史可自动同步,无需重新建立上下文。

    第 2 段

    ⬇︎ 下载 PNG𝕏 分享到 X
  • 通过 `transcripts` 和 `identity` 选项,实现跨平台对话历史持久化,提升用户体验。

    第 2 段

    ⬇︎ 下载 PNG𝕏 分享到 X
  • 该功能无需额外后端开发,开箱即用,适用于 Web、Mobile 等多端部署场景。

    第 2 段

    ⬇︎ 下载 PNG𝕏 分享到 X
#Chat SDK#AI Bot#Vercel#conversation history#cross-platform
打开原文

Chat SDK now supports conversation history - Vercel

Skip to content

[](https://vercel.com/home)

  • Products
  • ##### Core Platform
  • Resources
  • ##### Company
  • ##### Learn
  • ##### Open Source
  • Solutions
  • ##### Use Cases
  • ##### Tools
  • ##### Users

Log InContact

Sign UpSign Up

Blog/Changelog

Chat SDK now supports conversation history

![Image 1 Ben Sabic Content Engineer](https://twitter.com/bensabic)![Image 2 Josh Singh Software Engineer](https://twitter.com/nishimiya)

1 min read

Copy URL

Copied to clipboard!

May 8, 2026

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.

lib/bot.ts

code
1import { Chat } from "chat";2
3const bot = new Chat({4  userName: "mybot",5  identity: ({ author }) => author.email ?? null,6  transcripts: {7    retention: "30d",8    maxPerUser: 200,9  },10  // ...11});

Identify users by email and keep up to 200 messages per user for 30 days

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

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

Ready to deploy?Start building with a free account. Speak to an expert for your _Pro_ or Enterprise needs.

Start DeployingTalk to an Expert

Explore Vercel Enterprise with an interactive product tour, trial, or a personalized demo.

Explore Enterprise

Get Started

Build

Scale

Secure

Resources

Learn

Frameworks

SDKs

Use Cases

Company

Community

[](https://vercel.com/home)

Loading status…Select a display theme:system light dark

Products

AI Gateway One endpoint, all your models

Sandbox Isolated, safe code execution

Vercel Agent An agent that knows your stack

AI SDK The AI Toolkit for TypeScript

v0 Build applications with AI

CI/CD Helping teams ship 6× faster

Content Delivery Fast, scalable, and reliable

Fluid Compute Servers, in serverless form

Workflow Long-running workflows at scale

Observability Trace every step

Bot Management Scalable bot protection

BotID Invisible CAPTCHA

Platform Security DDoS Protection, Firewall

Web Application Firewall Granular, custom protection

Resources

Customers Trusted by the best teams

Blog The latest posts and changes

Changelog See what shipped

Press Read the latest news

Events Join us at an event

Docs Vercel documentation

Academy Linear courses to level up

Knowledge Base Find help quickly

Community Join the conversation

Next.js The native Next.js platform

Nuxt The progressive web framework

Svelte The web’s efficient UI framework

Turborepo Speed with Enterprise scale

Solutions

AI Apps Deploy at the speed of AI

Composable Commerce Power storefronts that convert

Marketing Sites Launch campaigns fast

Multi-tenant Platforms Scale apps with one codebase

Web Apps Ship features, not infrastructure

Marketplace Extend and automate workflows

Templates Jumpstart app development

Partner Finder Get help from solution partners

Platform Engineers Automate away repetition

Design Engineers Deploy for every idea

AI 可能会生成不准确的信息,请核实重要内容

Chat SDK 现已支持对话历史 | Vercel News | traeai