Using whatsapp-web-js and ChatGPT
To use, ensure that you have an API key from OpenAI
Replace "CHAT_API_KEY" in below line inside ./src/chat.ts
const API_KEY = 'CHAT_API_KEY'
To initialize;
git clone git@github.com:cross19xx/gpwhatsapp.git
cd gpwhatsapp
npm install
npm start
Scan generated QR with whatsapp app on mobile at the "Link a Device" page under settings to perform the sync.
Client is ready!
Begin all messages to the client with "hi arya" to trigger AI responses.