A microservice for Whatsapp to communicate to Bahmni (for Appointment booking) by Patients.
- java version 1.8
- Apache Maven 3.9.3
git clone whatsapp-bahmni-service repo
cd whatsapp-bahmni-service
- Checkout the whatsapp-bahmni-service repository
- Generate the jar file by running
mvn clean install -DskipTests
Steps Involved in API Set Up:
- A Facebook account to register as a Meta Developer. Follow the steps mentioned here: link
- Create a Meta App by following the steps mentioned here: link
- After creating a Meta App, a Meta Business account is required to set up WhatsApp Cloud API completely.
- After creating Meta Business account, complete the API setup.
- Test the API by sending a message using test number to your WhatsApp.
Steps Involved in Webhook Configuration:
- Webhook Configuration requires a Public Callback URL for the Microservice.
- This HTTPS URL can be created using a tunneling tool called ngrok that exposes the local implementation of Microservice to the Internet and provides a public URL.
- Meta configures the webhook using a Verify Token provided by the developer.
- Once the webhook is configured notifications about messages sent by the users and delivery status can be received on the callback URL.
For further help and detailed description of the aforementioned steps, follow the official Meta documentation: link