Vercel

Chat SDK Adds Official Adapter for Lark and Feishu Integration


Executive Summary

The Chat SDK now supports integration with the Lark and Feishu collaboration platforms via a new, vendor-official adapter. This allows developers to build bots capable of posting messages, sending interactive cards, and streaming replies within Lark and Feishu conversations. The adapter utilizes a WebSocket connection, which simplifies deployment by removing the need to expose a public HTTP webhook endpoint.

Key Takeaways

* New Platform Support: The Chat SDK now officially supports both Lark and Feishu.

* Official Adapter: The integration is enabled by the new `@larksuite/vercel-chat-adapter`.

* Core Capabilities: Bots can post, edit, and delete messages, send interactive cards, react with emojis, and respond to @-mentions.

* Advanced Features: Supports streaming replies using Lark's native "cardkit typewriter API".

* WebSocket Connection: The adapter connects over WebSocket, allowing bots to run from any long-running Node.js process without requiring an HTTP webhook.

Strategic Importance

This update expands the Chat SDK's ecosystem, enabling developers to build and deploy applications for the significant user bases on the Lark and Feishu platforms.

Original article