A chatbot for Whatsapp, powered by OpenAI's GPT-3 language model and the chatgpt-api and whatsapp-web.js libraries.
- Node.js 19 or above
- OpenAI account
- Clone this repository.
- Install the dependencies with
npm install
. - Add your email and password after creating
.env
file. See .env.example - Start the bot with
npm start
. - Optionally you can add discord webhook url in
.env
to get logs on discord
- Scan the QR code provided by the Whatsapp Web API.
- Send a message to the bot.
- The bot will respond with an answer generated by OpenAI's GPT-3 language model.
- chatgpt-api: https://github.com/transitive-bullshit/chatgpt-api
- whatsapp-web.js: https://github.com/pedroslopez/whatsapp-web.js/
Made with ๐ by Harry | Generated by ChatGPT!