
Chat SDK adds Kapso support
Quick Answer
Chat SDK has integrated Kapso support via a new.vendor-official adapter, enabling seamless WhatsApp connectivity for bots.
Quick Take
This integration simplifies WhatsApp Business setup, allowing developers to focus on bot logic while managing conversations, messages, and media through standard Chat SDK APIs.
Key Points
- Kapso connects bots to WhatsApp, handling Business setup and webhooks.
- The adapter maps WhatsApp conversations to Chat SDK threads by phone number.
- Supports standard Chat SDK features like buttons, cards, and media.
- Inbound WhatsApp messages are converted to Chat SDK messages seamlessly.
- Documentation is available for developers to get started with integration.
📖 Reader Mode
~1 min readChat SDK now supports Kapso with the new vendor-official adapter.
Kapso connects your bot to WhatsApp through its hosted platform, handling the WhatsApp Business setup, credentials, and webhooks so you can focus on your bot's logic. Replies use the standard Chat SDK thread and message APIs, with support for buttons and cards, media, reactions, contacts, and conversation history.
lib/bot.ts
import { Chat } from "chat";
import { createMemoryState } from "@chat-adapter/state-memory";
import { createKapsoAdapter } from "@kapso/chat-adapter";
export const bot = new Chat({
userName: "support",
state: createMemoryState(),
adapters: {
kapso: createKapsoAdapter({
kapsoApiKey: process.env.KAPSO_API_KEY,
phoneNumberId: process.env.KAPSO_PHONE_NUMBER_ID,
webhookSecret: process.env.KAPSO_WEBHOOK_SECRET,
}),
},
});
bot.onDirectMessage(async (thread, message) => {
await thread.post(`You said: ${message.text}`);
});
Configure the adapter to respond to @-mentions in WhatsApp chats
The adapter maps each WhatsApp conversation to a Chat SDK thread, tied to a specific phone number and contact, and each inbound WhatsApp message to a Chat SDK message.
Read the Kapso documentation to get started.
The Complete Guide to Chat SDK
Learn how Chat SDK works end-to-end: from core concepts to building your first bot to deploying it across Slack, Teams, and more.
Read the guide
— Originally published at vercel.com
Want this in your inbox every morning?
Daily brief at your local 8am — bilingual EN/中文, free.
More from Vercel AI
See more →
The Agent Stack
The Agent Stack by Vercel AI provides essential building blocks for creating production-grade agents, enabling seamless integration across multiple AI models and secure operations. It features components like AI Gateway for model routing, Workflow SDK for durable execution, and Vercel Connect for scoped access, streamlining agent development and deployment across various platforms.

