This is chat bot built with Chat GPT from openai.com and using whatsapp-web.js api to connect with WhatsApp.
Before installing this you need generate and API Key from https://beta.openai.com
after that create an .env file in root directory of this project like this-
OPENAI_API_KEY=sk-YKMbn3OxnCBHB4qr0nttt3BlbkFJA404knaZOhlUuZ63BiE3
You can use this WhatsApp GPT Bot with you whatsapp account
- run
npm install
to install all dependency of this project. - run
npm start
to start Bot server - scan QR code with your first Whatsapp account from Linked Devices option
- after successful authentication, tell your friend to ask any question on your whatsapp number in this format. or you can also ask question by sending message from your second whatsapp account.
gpt, write a code for express server?