botpress / messaging

Botpress messaging server
40 stars 37 forks source link

Add Support for WhatsApp Channel via WhatsApp Cloud API #676

Open ivarunseth opened 2 weeks ago

ivarunseth commented 2 weeks ago

This pull request introduces support for integrating WhatsApp as a messaging channel in the Botpress Messaging Server, leveraging the WhatsApp Cloud API. The implementation enables chatbot interactions on WhatsApp, expanding the platform's reach and providing users with a popular and widely used communication medium.

Key Features:

Implementation Details:

  1. WhatsApp API Client:

    • Integrated the WhatsApp Cloud API to handle message sending and receiving.
    • Added configuration options for WhatsApp credentials and settings.
  2. Message Handling:

    • Extended message handling logic to support WhatsApp-specific message types and formats.
    • Implemented parsers and formatters for converting messages between Botpress and WhatsApp formats.
  3. Renderer Support:

    • Text messages: Simple and multi-line text messages.
    • Media messages: Support for images, audio files, videos, and documents.
    • Interactive messages: Buttons and quick replies.
  4. Documentation:

    • Updated README and documentation files.

Testing:

Future Work:

Notes:


By integrating WhatsApp, this update significantly enhances the versatility and usability of the Botpress Messaging Server, enabling developers to create richer, more engaging chatbot experiences. Looking forward to feedback and suggestions for further enhancements.