Receive Kapso webhooks
Forward your public POST route to bot.webhooks.kapso(request) for inbound WhatsApp events.
Use @kapso/chat-adapter when a Chat SDK agent needs to receive Kapso WhatsApp webhooks, reply in threads, send buttons or media, and read conversation history.
The adapter keeps the WhatsApp transport close to Chat SDK primitives: threads, direct messages, cards, files, and history.
Forward your public POST route to bot.webhooks.kapso(request) for inbound WhatsApp events.
Handle direct messages and post replies through Chat SDK thread APIs.
Use the Kapso adapter openDM method with KAPSO_PHONE_NUMBER_ID for outbound WhatsApp conversations.
Send Chat SDK cards with WhatsApp reply buttons and pass files as Chat SDK attachments.
Fetch Kapso-backed message history and enrich threads with contact and conversation records.
Use @kapso/whatsapp-cloud-api directly for raw templates, flows, catalogs, or lower-level WhatsApp API calls.
Start with memory state locally, then move to durable Chat SDK state before production traffic.
WhatsApp is a real messaging channel, so the agent adapter should keep delivery, media, and webhook rules explicit.
Use the same webhook secret in Kapso and in the adapter so inbound events can be verified.
Do not use memory state for production conversations that need continuity across restarts.
WhatsApp reply buttons support up to 3 buttons, with labels from 1 to 20 characters.
Connect the adapter, receive one inbound message, reply through a thread, and let Kapso keep the conversation record visible.