This is a source code to build a WhatsApp bot using OpenAI bot and Node.js. The bot is capable of understanding natural language and providing information on various topics. It can be used to answer questions, provide advice, and even have conversations with users. With this source code, you can create a powerful bot that can be used for a variety of purposes.
NOTE: DON'T MESS UP WITH INDEX.JS FILE.
##Deploy on Termux
apt update
apt upgrade
pkg update && pkg upgrade
pkg install git -y
pkg install git -y
pkg install nodejs -y
git clone https://github.com/CyberExpert0101/whatsapp-chatgpt
cd whatsapp-chatgpt
npm install
npm start
NOTE: SETUP KEYS IN .env file
Visit: https://beta.openai.com/account/api-keys