Add WhatsApp adapter using Meta's WhatsApp Business Cloud#179
Closed
chitru wants to merge 1 commit intovercel:mainfrom
Closed
Add WhatsApp adapter using Meta's WhatsApp Business Cloud#179chitru wants to merge 1 commit intovercel:mainfrom
chitru wants to merge 1 commit intovercel:mainfrom
Conversation
API Adds @chat-adapter/whatsapp with support for:
- Webhook verification (GET handshake + X-Hub-Signature-256)
- Incoming text, media, reaction, and interactive messages
- Outgoing text messages, reactions, and interactive messages
(buttons/lists)
- Thread ID format: whatsapp:{phoneNumberId}:{userPhoneNumber}
- Cache-based message fetching (same pattern as Telegram adapter)
- Error mapping to adapter-specific error types Limitations: edit/delete throw NotImplementedError, typing is a no-op.
Contributor
|
@chitru is attempting to deploy a commit to the Vercel Labs Team on Vercel. A member of the Team first needs to authorize it. |
Member
haydenbleasel
added a commit
to ghellach/chat
that referenced
this pull request
Mar 6, 2026
Bring over several enhancements from chitru's WhatsApp adapter PR (vercel#179): - Voice message support (separate from audio) - Legacy button response handling (template quick replies) - Callback data encoding/decoding for interactive reply round-trips - Message truncation at WhatsApp's 4096 char limit - Example app integration (adapters, webhook route, package.json) - GET webhook forwarding for WhatsApp verification challenges - Package README and changeset - Tests for all new functionality (68 total) Co-Authored-By: Chitru Shrestha <chitra.shrestha@akuru.com.au> Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
cramforce
pushed a commit
to ghellach/chat
that referenced
this pull request
Mar 8, 2026
Bring over several enhancements from chitru's WhatsApp adapter PR (vercel#179): - Voice message support (separate from audio) - Legacy button response handling (template quick replies) - Callback data encoding/decoding for interactive reply round-trips - Message truncation at WhatsApp's 4096 char limit - Example app integration (adapters, webhook route, package.json) - GET webhook forwarding for WhatsApp verification challenges - Package README and changeset - Tests for all new functionality (68 total) Co-Authored-By: Chitru Shrestha <chitra.shrestha@akuru.com.au> Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
5 tasks
cramforce
pushed a commit
to ghellach/chat
that referenced
this pull request
Mar 8, 2026
Bring over several enhancements from chitru's WhatsApp adapter PR (vercel#179): - Voice message support (separate from audio) - Legacy button response handling (template quick replies) - Callback data encoding/decoding for interactive reply round-trips - Message truncation at WhatsApp's 4096 char limit - Example app integration (adapters, webhook route, package.json) - GET webhook forwarding for WhatsApp verification challenges - Package README and changeset - Tests for all new functionality (68 total) Co-Authored-By: Chitru Shrestha <chitra.shrestha@akuru.com.au> Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
@chat-adapter/whatsapp— a WhatsApp adapter using Meta's official [WhatsApp Business Cloud API (https://developers.facebook.com/docs/whatsapp/cloud-api).Serverless-compatible, zero external dependencies, follows the same patterns as the existing Telegram adapter.
Features
Limitations
NotImplementedErrorNotImplementedErrorEnvironment Variables
WHATSAPP_ACCESS_TOKENWHATSAPP_PHONE_NUMBER_IDWHATSAPP_VERIFY_TOKENWHATSAPP_APP_SECRETTest plan
posting, reactions, interactive messages, error mapping, pagination)
pnpm validatepasses (knip, lint, typecheck, test, build)