WhatsApp Bot integrated with GPT-3 built with NodeJS
- Firstly, go to the solution directory and install the dependencies by executing the following command:
npm install
- Then create a local configuration file called .env.local by copying .env file and its content and replacing the placeholders (<*>) with the correct settings value, and finally run the following command:
npm run local
- After all (steps 1 and 2 above), you should see in your terminal (with logs) a QR Code to connect to the WhatsApp device you want as shown in the image below.
- Finally, you will see a log message reporting the device was successfully connected. That's all! Have fun ;)
The same steps as local (section above) except step 2 command which must be the following below:
npm start
Firstly, go to the solution directory where is located the Dockerfile file and execute the following commands:
docker build . -t <docker-image-name>
docker run -d <docker-image-name>
After the docker container is running you can check out the logs to get the QR Code to connect the device to it by executing the following command:
docker logs <container-id> --tail <number-of-lines>