Skip to content

Conversation

hvpareja
Copy link

Adds a WhatsApp Business API integration for AG-UI, enabling conversational AI agents to interact with users through WhatsApp.

Features

✅ Basic WhatsApp message sending/receiving
✅ AI integration (OpenAI, Anthropic)
✅ Webhook signature verification
✅ Media message support
✅ Comprehensive documentation and examples

Usage

import { WhatsAppAgent } from "@ag-ui/community-whatsapp";

const agent = new WhatsAppAgent({
  phoneNumberId: "your-phone-number-id",
  accessToken: "your-access-token",
  webhookSecret: "your-webhook-secret",
});

await agent.handleWebhook(webhookBody, signature);

Documentation

README.md - Setup tutorial and usage examples
ARCHITECTURE.md - Technical architecture overview (perhaps this can be content for docs)

Testing

pnpm run typecheck
npx tsx src/tests/simple-test.ts

@hvpareja hvpareja marked this pull request as ready for review July 31, 2025 15:50
@hvpareja hvpareja marked this pull request as draft August 3, 2025 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant