Bindu icon indicating copy to clipboard operation
Bindu copied to clipboard

[Feature]: WhatsApp CloudBot Integration

Open raahulrahl opened this issue 9 months ago • 4 comments


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

raahulrahl avatar Feb 12 '26 05:02 raahulrahl

Hi Please assign this issue to me I want to work on this

thanks!

aadityasarda avatar Feb 14 '26 07:02 aadityasarda

Work on this branch: git fetch origin git checkout 149-feature-whatsapp-cloudbot-integration

raahulrahl avatar Feb 14 '26 07:02 raahulrahl

hi @raahulrahl i want to work on this issue, please assign it to me thank you

Hritikshah02 avatar Feb 16 '26 10:02 Hritikshah02

@raahulrahl can i work on this ?

anushkapunekar avatar Mar 08 '26 18:03 anushkapunekar