T
traeai
Sign in
返回首页
Vercel News

Chat SDK Adds Web Adapter Support

7.8Score
Chat SDK Adds Web Adapter Support

TL;DR · AI Summary

Vercel's Chat SDK now supports Web Adapter, enabling developers to build browser-connected chat interfaces.

Key Takeaways

  • Chat SDK now supports Web Adapter for direct client-server model communication.
  • Use createWebAdapter to quickly integrate chat functionality in browser environm
  • Ideal for real-time chat experiences like in-product assistants and support agen

Outline

Jump quickly between sections.

  1. Vercel announced Web Adapter support for Chat SDK on May 8, 2026, enabling chat logic to run in browsers.

  2. Web Adapter connects client and backend AI models via createWebAdapter function for bidirectional message flow.

  3. Supports deploying chat features in real-time interactive Web apps such as in-product assistants and customer support agents.

  4. Developers define bot logic in lib/bot.ts and use Web Adapter for browser compatibility.

Mindmap

See how the topics connect at a glance.

查看大纲文本(无障碍 / 无 JS 友好)
  • Chat SDK Web Adapter 支持
    • 核心功能
      • 浏览器端聊天连接
      • 双向消息流
    • 技术实现
      • createWebAdapter API
      • 服务器端 Bot 定义
    • 应用场景
      • 产品内嵌助手
      • 客服代理系统
      • 实时 Web 对话

Highlights

Key sentences worth saving and sharing.

#Chat SDK#Web Adapter#Vercel#AI Integration#Frontend
Open original article

Chat SDK adds web adapter support - Vercel

Skip to content

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

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

Ask AI

Ask AILog In

Sign UpSign Up

Blog/Changelog

Chat SDK adds web adapter support

![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

You can now build chat UIs that connect to Chat SDK with the new web adapter. Build in-product assistants, support agents, or any other browser-based chat experience.

Define the bot on your server:

lib/bot.ts

code
1import { Chat } from "chat";2import { createWebAdapter } from "@chat-adapter/web";3
4const bot = new Chat({5  userName: "mybot",6  adapters: {7    web: createWebAdapter({8      userName: "mybot",9      getUser: (req) => ({ id: getUserIdFromCookie(req) }),10    }),11  },12});13
14bot.onDirectMessage(async (thread, message) => {15  await thread.post(`You said: ${message.text}`);16});

Echo each direct message back to the sender

Then stream replies live to the browser with a preconfigured `@ai-sdk/react`useChat hook:

app/chat/page.tsx

code
1import { useChat } from "@chat-adapter/web/react";2
3const { messages, sendMessage, status } = useChat();

Wire the bot into a React component

Read the Chat SDK documentation to get started, browse the supported adapters, or learn how to build your own.

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

AI may generate inaccurate information. Please verify important content.