-
Create an application on Meta Developers for WhatsApp use, copy app secret and issue a whatsapp access token
-
Buy a domain, set up SSL on your server
-
Create a Webhook application on Meta developers, adjust it properly to use with WhatsApp (read docs). Use
https://{Paste your domain here}/whatsapp/webhook
as the webhook url -
Issue your OpenAI access token
-
Connect to your server using ssh
-
Install docker & docker-compose on your machine (go to the docker official site).
-
Clone this repo to a directory on the server
git clone https://github.com/father-bot/WhatsApp-ChatGPT-bot.git
- Go to the cloned repo, run this line in the terminal
APP_SECRET={Paste WhatsApp app secret here} \
API_KEY={Paste WhatsApp access token here} \
WEBHOOK_VERIFY_TOKEN={Paste WhatsApp webhook verify token here} \
OPEN_AI_API_KEY={Paste OpenAI access token here} \
docker-compose up