A WhatsApp API client that connects through the WhatsApp Web browser app
It uses Puppeteer to run a real instance of Whatsapp Web to avoid getting blocked.
NOTE: I can't guarantee you will not be blocked by using this method, although it has worked for me. WhatsApp does not allow bots or unofficial clients on their platform, so this shouldn't be considered totally safe.
This project i using ExpressJS
as Web Service.
Install packages
~$ npm install
Run
~$ npm start
Using Docker is most preferred way to run this application.
~$ docker run landx/whatsapp-api-dashboard
If you do not want to run it with Docker, it's recommended to run in using pm2
on production environment.
Install pm2
~$ npm install -g pm2
Run using pm2
~$ pm2 start index.js
You can run it on specifhic port
~$ PORT=3000 pm2 start index.js
To show QR Code, show the log using
~$ pm2 logs
Reference: https://pm2.keymetrics.io/docs/usage/quick-start
You can integrate this project with Google DialogFlow. Copy .env.example
to .env
and fill env file with approriate values
WEBHOOK=WebHook URL for customizable
PROJECT_ID=DialogFlow Project ID from Google Console
PROJECT_KEY_FILE=Dialog Flow Project Key
Postman collection for this project is on https://www.getpostman.com/collections/cd5ccc53e2f30f06b388