- Custom API channel for Chatwoot
- Uses WhatsApp web, so it works for both regular and business accounts.
- Supports incoming audio/images/gifs/stickers
- Supports outgoing audio/images
- Clone this repo
- Install dependencies
yarn install
- Build server
yarn build
- Create .env file (check .env.example)
- Run server
yarn start
Use the provided dockerfile to deploy in Dokku/Heroku, DigitalOcean, etc.
The server exposes a /qrcode
endpoint that returns the QR image or the text "session already initialized" if the service has already logged in.
The endpoint is protected, so you need to call it like this: /qrcode?token=. The auth token is any secret you want and you be added to as an env var (check .env.example).
Inspired by this repo: https://github.com/ignusmx/chatwoot-whatsapp-web
- Add support for contact attachments
- Add fault tolerance:
- Check for unprocessed outgoing messages
- Proxy webhook requests to a queue with dead-letter.