Skip to content

Introducing the AI Chatbot for WhatsApp - a cutting-edge solution powered by OpenAI's ChatGPT, Playground & DALL·E. This innovative chatbot has been developed using NodeJS technology and leverages the latest advancements in AI to provide an unmatched user experience for WhatsApp today!

License

Notifications You must be signed in to change notification settings

Upasana9/Whatsapp-Ai-BOT

 
 

Repository files navigation

💬 Whatsapp-Ai-BOT 🤖

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.

💻 Created with NodeJS and Baileys Library

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.

🔍 READ FIRST

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, /img, and /sc respectively.

🔒 Unlock the Magic

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. 🔓

🚀 Getting Started

  1. Get an OpenAI API Key by creating an account here.
  2. Replace the API Key in the key.json file here.

💻 Install on Linux/Windows/Mac

  1. Install NodeJS and Git Bash.

    Windows

    NodeJS https://nodejs.org/en/download/
    Git https://git-scm.com/downloads/

    npm install -g npm
    

    Linux

    sudo apt -y remove nodejs
    curl -fsSl https://deb.nodesource.com/setup_lts.x | sudo bash - && sudo apt -y install nodejs
    
  2. Clone the repository:

    git clone https://github.com/yesbhautik/Whatsapp-Ai-BOT
    
  3. Go to the project directory:

    cd Whatsapp-Ai-BOT
    
  4. Clean NPM Cache:

    npm cache clean --force
    
  5. Install dependencies:

    npm install --force
    

    It's may take minimum 10 to 15 Minutes as per your internet connection & your system configuration. If you are facing issue in Node Package installation

    1. Delete node_modules folder
    2. Extract provided ZIP archive file in the Project root directory.
  6. Run the project:

    npm start
    

⚡ Deploy on Heroku

You can also easily deploy this bot on Heroku with just a few clicks.

  1. Create a new app on Heroku
  2. Connect your Github Repository with Heroku app
  3. Select the repository you want to deploy
  4. Enable Automatic Deploys
  5. Under the "Manual Deploy", click "Deploy Branch"
  6. Go to the "Settings" tab and click on "Reveal Config Vars"
  7. Add the following Environment Variables:
    • API_KEY: Your OpenAI API Key
  8. Go to the "Resources" tab and turn on the worker.
  9. Your bot should now be live and running on Heroku! 🚀

Don't have a Heroku account yet? Sign up for free here.

📱 Install on Termux

  1. Install NodeJS and Git:

    pkg install git nodejs -y
    
  2. Clone the repository:

    git clone https://github.com/yesbhautik/Whatsapp-Ai-BOT
    
  3. Go to the project directory:

    cd Whatsapp-Ai-BOT
    
  4. Install node_modules manually by downloading here and extracting to the project directory.

  5. Run the project:

    node index.js
    

Donate YouTube Video Instructions

To learn more about this AI WhatsApp bot and its features, you can watch the tutorial videos on my YouTube channel. Visit here to access the videos.

Contributing 🤝

Contributions are welcome! Please follow these steps to contribute to the project:

  1. Fork the repository🍴
  2. Create a new branch for your feature or bug fix 🌿
  3. Make your changes and commit them 💻
  4. Push your changes to your fork 🚀
  5. Create a pull request to the main repository 📥

🔥 Show some support | Donation

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

Donate

💬 Let's Connect

Feel free to reach out to us if you have questions, ideas, or simply want to chat. We're here to help and connect with the community.

📜 License

This repository is under the MIT License. For more information, see the LICENSE file.

About

Introducing the AI Chatbot for WhatsApp - a cutting-edge solution powered by OpenAI's ChatGPT, Playground & DALL·E. This innovative chatbot has been developed using NodeJS technology and leverages the latest advancements in AI to provide an unmatched user experience for WhatsApp today!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%