Skip to content

A template for creating WhatsApp bots using the Baileys library with Gemini integration for enhanced functionality.

Notifications You must be signed in to change notification settings

ferdyhape/Whatsapp-Bot-Gemini-Baileys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WABot Gemini

📖 Description

Integrate WhatsApp Bot with Gemini API. This project is a simple WhatsApp bot that can interact with the Gemini API. This project is built using Node.js and whiskeysockets/baileys library.

😄 Actually this is not a meaningful project, it's just that I was bored and wanted to make a bot on whatsapp. So, I made this project.

🛠️ Requirements

  • Node.js v18+

🚀 How to Install

  1. Create API Key on aistudio
  2. Clone this repository
     git clone https://github.com/ferdyhape/Whatsapp-Bot-Gemini-Baileys.git
  3. Go to the project directory and install the dependencies
     cd Whatsapp-Bot-Gemini-Baileys
     npm install
  4. Copy .env.example to .env and paste your API Key to GEMINI_API_KEY
     cp .env.example .env
     GEMINI_API_KEY = "YOUR_API_KEY"
  5. Run the project
     npm start
  6. Open your browser and go to http://localhost:8000/scan to scan the QR Code with your WhatsApp app (this device will integrate with the bot)
  7. After scanning the QR Code, your whatsapp bot is ready to use
  1. Send a message to your WhatsApp bot with a message that includes /bot to the WhatsApp that has been scanned previously with the QR Code, for example:
     hello /bot, how are you?
  2. Wait a moment, the bot will reply to your message.
  3. Enjoy!

👨 About Creator

linkedin instagram github

About

A template for creating WhatsApp bots using the Baileys library with Gemini integration for enhanced functionality.

Topics

Resources

Stars

Watchers

Forks