A cutting-edge AI chatbot for WhatsApp 🤖💬 built using NodeJS technology and powered by OpenAI. This project leverages the advanced deep learning models of ChatGPT, Playground, and DALL·E from OpenAI.
This repository contains the source code for a WhatsApp AI Bot that utilizes OpenAI's ChatGPT and DALL-E technology to provide a unique text-based and image-based conversational experience for users. The library used for integration is Baileys.
Please note that this bot has 2 features - ChatGPT (text) and DALL-E (Text To Image). To use these features, simply use the commands /ai
and /img
respectively.
The magic of this AI WhatsApp bot lies in its code, which has been carefully crafted and encrypted to protect it from prying eyes. But don't worry, if you need to take a closer look and understand the workings of the bot, just drop me a message on my website or LinkedIn. I'll be happy to share the key to unlock the full potential of this amazing creation. 🔓
-
Install NodeJS and Git Bash.
NodeJS https://nodejs.org/en/download/
Git https://git-scm.com/downloads/npm install -g npm
sudo apt -y remove nodejs curl -fsSl https://deb.nodesource.com/setup_lts.x | sudo bash - && sudo apt -y install nodejs
-
Clone the repository:
git clone https://github.com/yesbhautik/Whatsapp-Ai-BOT
-
Go to the project directory:
cd Whatsapp-Ai-BOT
-
Install dependencies:
npm install
-
Run the project:
node index.js
You can also easily deploy this bot on Heroku with just a few clicks.
- Create a new app on Heroku
- Connect your Github Repository with Heroku app
- Select the repository you want to deploy
- Enable Automatic Deploys
- Under the "Manual Deploy", click "Deploy Branch"
- Go to the "Settings" tab and click on "Reveal Config Vars"
- Add the following Environment Variables:
API_KEY
: Your OpenAI API Key
- Go to the "Resources" tab and turn on the worker.
- Your bot should now be live and running on Heroku! 🚀
Don't have a Heroku account yet? Sign up for free here.
-
Install NodeJS and Git:
pkg install git nodejs -y
-
Clone the repository:
git clone https://github.com/yesbhautik/Whatsapp-Ai-BOT
-
Go to the project directory:
cd Whatsapp-Ai-BOT
-
Install node_modules manually by downloading here and extracting to the project directory.
-
Run the project:
node index.js
If you find this repository helpful, show your support by giving it a 🌟! Your support means a lot to me and helps me keep contributing to the open-source community.
Also, if you'd like to support me financially, you can do so via my donation link: https://go.yesbhautik.co.in/8i6wdu
- Website: https://i-am.yesbhautik.co.in/
- LinkedIn profile: https://www.linkedin.com/in/yesbhautik
- Instagram page: https://www.instagram.com/yesbhautik
Feel free to reach out to me if you have any questions, ideas or just want to chat. I'm always here to help and connect with the community.
This repository is under the GPL-3 License. For more information, see the LICENSE file.