All integrations

Kapso

ChannelProvider official

Managed WhatsApp conversations, media, buttons, and history through Kapso.

Read the full channel docs

Install

Add this Chat SDK channel from eve's registry. This writes agent/channels/kapso.ts and installs Chat SDK and its adapter dependencies:

bash
eve add channel/chat-sdk-kapso

Quick start

Create agent/channels/kapso.ts:

ts
// agent/channels/kapso.tsimport { createKapsoAdapter } from "@kapso/chat-adapter";import { createMemoryState } from "@chat-adapter/state-memory";import type { Message, Thread } from "chat";import { chatSdkChannel, messageContentOf } from "eve/channels/chat-sdk";
export const { bot, channel, send } = chatSdkChannel({  userName: "My Agent",  adapters: {    kapso: createKapsoAdapter({      kapsoApiKey: process.env.KAPSO_API_KEY!,      phoneNumberId: process.env.KAPSO_PHONE_NUMBER_ID!,      webhookSecret: process.env.KAPSO_WEBHOOK_SECRET!,    }),  },  state: createMemoryState(),  // Hand every message to eve, even mid-reply, so eve can steer the running turn.  concurrency: "concurrent",  // WhatsApp can't edit sent messages, so send each reply whole.  streaming: false,});
bot.onNewMention(async (thread: Thread, message: Message) => {  await thread.subscribe();  await send(messageContentOf(message), { thread });});
bot.onSubscribedMessage(async (thread: Thread, message: Message) => {  await send(messageContentOf(message), { thread });});
export default channel;

See the Kapso adapter documentation for supported events, capabilities, and credentials.

Configure

Connect a WhatsApp number in Kapso, set KAPSO_API_KEY, KAPSO_PHONE_NUMBER_ID, and KAPSO_WEBHOOK_SECRET, then point the Kapso webhook at /eve/v1/kapso. Use this provider-managed option when you do not want to integrate directly with the WhatsApp Cloud API. See the Chat SDK channel docs for eve session dispatch, state, streaming, and human-in-the-loop behavior.