Bindu
Bindu copied to clipboard
[Feature]: WhatsApp CloudBot Integration
name: WhatsApp CloudBot Integration about: Integrate WhatsApp Cloud API for agent communication via WhatsApp title: '[FEATURE] WhatsApp CloudBot Integration' labels: enhancement, integration, messaging assignees: ''
Overview
Enable Bindu agents to communicate via WhatsApp using the WhatsApp Cloud API and py-whatsapp-cloudbot library.
Steps
1. Setup & Dependencies
- [ ] Add
py-whatsapp-cloudbot[fastapi]to dependencies - [ ] Configure Meta Developer Account credentials
- [ ] Set up WhatsApp Business Account (WABA)
- [ ] Register Phone Number ID
- [ ] Generate System User Access Token
- [ ] Add environment variables (WHATSAPP_TOKEN, PHONE_NUMBER_ID, VERIFY_TOKEN)
2. Core Integration
- [ ] Create WhatsApp bot wrapper for Bindu agents
- [ ] Implement webhook endpoint for incoming messages
- [ ] Set up FastAPI webhook integration
- [ ] Add message routing to appropriate agents
- [ ] Implement session management for conversations
3. Message Handling
- [ ] Handle incoming text messages
- [ ] Handle incoming media (images, documents, audio)
- [ ] Handle interactive messages (buttons, lists)
- [ ] Handle location sharing
- [ ] Handle contact sharing
- [ ] Implement message acknowledgment (read receipts)
4. Outbound Messaging
- [ ] Send text responses from agents
- [ ] Send media responses (images, documents)
- [ ] Send interactive messages (quick replies, buttons)
- [ ] Send location data
- [ ] Send reactions/emojis
- [ ] Implement message templates
5. Agent Features
- [ ] Map Bindu skills to WhatsApp commands
- [ ] Implement context persistence across WhatsApp sessions
- [ ] Add multi-agent routing based on message content
- [ ] Implement error handling and fallback responses
- [ ] Add rate limiting and quota management
6. Testing & Documentation
- [ ] Test end-to-end message flow
- [ ] Test media handling
- [ ] Test error scenarios
- [ ] Create setup guide for WhatsApp Cloud API
- [ ] Add example WhatsApp bot configuration
- [ ] Document webhook configuration steps
Success Criteria
- Agents can receive and respond to WhatsApp messages
- Media messages handled correctly
- Interactive features working (buttons, lists)
- Session context maintained across conversations
- Clear documentation for setup
Technical Notes
- Library:
py-whatsapp-cloudbot(async Python library) - Webhook framework: FastAPI
- Requires Meta Developer Account and WhatsApp Business Account
- Uses WhatsApp Cloud API (not Business API)
- Supports text, media, location, contacts, interactive messages, reactions
Resources
Hi Please assign this issue to me I want to work on this
thanks!
Work on this branch: git fetch origin git checkout 149-feature-whatsapp-cloudbot-integration
hi @raahulrahl i want to work on this issue, please assign it to me thank you
@raahulrahl can i work on this ?