Menu

Chat SDK adds Liveblocks support - Vercel
📰
0

Chat SDK adds Liveblocks support - Vercel

Vercel News·Ben Sabic·4 days ago
#hPrY9ypC
#vercel#liveblocks#chat#adapter#bots#article
Reading 0:00
15s threshold

Chat SDK now supports Liveblocks , enabling bots to read and respond in Liveblocks Comments threads with the new Liveblocks adapter . This is an official vendor adapter built and maintained by the Liveblocks team. Teams can build bots that post, edit, and delete comments, react with emojis, and resolve @mentions within Liveblocks rooms. Try the Liveblocks adapter today: import { Chat } from "chat" ; import { createLiveblocksAdapter } from "@liveblocks/chat-sdk-adapter" ; const bot = new Chat ( { userName : "mybot" , adapters : { liveblocks : createLiveblocksAdapter ( { apiKey : "sk_..." , webhookSecret : "whsec_..." , botUserId : "my-bot-user" , botUserName : "MyBot" } ) , } , } ) ; bot . onNewMention ( async ( thread , message ) => { await thread . post ( ` You said: ${ message . text } ` ) ; } ) ; Read the documentation to get started, browse the directory , or build your own adapter .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More