Chat SDK now supports Lark and Feishu via a new vendor-official adapter.
Build bots that post, edit, and delete messages, stream replies via Lark's native cardkit typewriter API, send interactive cards, and react with emojis across both Lark and Feishu conversations.
import { Chat } from "chat";
import { createLarkAdapter } from "@larksuite/vercel-chat-adapter";
const bot = new Chat({
userName: "mybot",
adapters: {
lark: createLarkAdapter(),
},
});
bot.onNewMention(async (thread, message) => {
await thread.post(`You said: ${message.text}`);
});
Configure the adapter to respond to @-mentions in Lark and Feishu
The adapter connects over Lark's WebSocket transport, so bots run from any long-running Node process without exposing an HTTP webhook endpoint.
To get started, read the Lark or Feishu documentation.
The Complete Guide to Chat SDK
0 Comments
Log in to join the conversation.No comments yet. Be the first to share your thoughts.