/frappe_whatsapp

WhatsApp cloud integration for frappe

Primary LanguagePythonOtherNOASSERTION

Frappe Whatsapp

WhatsApp integration for frappe. Use directly meta API's without any 3rd party integration.

whatsapp

Note: If your not using live credential follow the step no 2 to add the number on meta to which your are sending message

Installation Steps

Step 1) One time to get app

bench get-app https://github.com/shridarpatil/frappe_whatsapp

Step 2) to install app on any instance/site

bench --site [sitename] install-app frappe_whatsapp

Send whatsapp notification from frappe app based on docevents.

Get your whats app credentials

https://developers.facebook.com/docs/whatsapp/cloud-api/get-started

Enter whatsapp credentials

image

Create Template

image

Supports all docevents

Create notifications

whatsapp_notification

Sending text message without creating template

Create an entry in the WhatsApp message. On save it will trigger and whats app API to send a message

image

WhatsApp messages are received via WhatsApp cloud API. image

outgoing (1)

Incomming message

  • Setup webhook on meta
    • Add verify token on meta and update the same on whatsapp settings
    • Add webhook url on meta <your domain>/api/method/frappe_whatsapp.utils.webhook.webhook
  • Add apropriate webhook fields
    • messages to receive message
    • add other required web fields

Incoming Message for WhatsApp Flows will look like this Screenshot 2024-03-07 at 10 56 27

License

MIT