Menu

Chat SDK adds Kapso support - Vercel
📰

Chat SDK adds Kapso support - Vercel

Vercel News·Ben Sabic·5 days ago
#U3dQhdNF
#vercel#chat#kapso#adapter#whatsapp
Reading 0:00
15s threshold

Chat 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.

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 .…

Continue reading — create a free account

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