Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WhatsApp Chatbot with Gemini AI

A Node.js-based WhatsApp chatbot that uses whatsapp-web.js for WhatsApp interaction and Google's Gemini AI for intelligent responses. This project was developed as part of President University MSIT Machine Learning course assignment to demonstrate practical applications of AI in messaging platforms.

Prerequisites

Before running this bot, make sure you have:

  • Node.js
  • npm
  • A WhatsApp account
  • Google Cloud account with Gemini AI API access
  • Chrome/Chromium browser installed

Installation

  1. Clone the repository:
git clone https://github.com/nathanpasca/wa-chat-bot
cd wa-chat-bot
  1. Install dependencies:
npm install whatsapp-web.js
npm install @google/generative-ai
npm install qrcode-terminal
  1. Create a .env file in the root directory:
API_KEY=your_gemini_api_key_here

Usage

  1. Start the bot:
node index.js
  1. Scan the QR code with WhatsApp to authenticate

  2. The bot is now ready to receive and respond to messages

Academic Disclaimer

This project was developed as part of an academic assignment in Machine Learning. While it serves as a practical demonstration of AI concepts, it may need additional features and security measures for production use.

Acknowledgments

About

A Node.js-based WhatsApp chatbot that uses whatsapp-web.js for WhatsApp interaction and Google's Gemini AI for intelligent responses. This project was developed as part of President University MSIT Machine Learning course assignment to demonstrate practical applications of AI in messaging platforms.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages