Skip to content

Simple WhatsApp bot that can interact with the Gemini API

Notifications You must be signed in to change notification settings

ferdyhape/wabot-gemini

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 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 whatsapp-web.js library.

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

📦 Built With

🛠️ Requirements

  • Node.js v18+

🚀 How to Install

  1. Create API Key on aistudio
  2. Clone this repository
     git clone https://github.com/ferdyhape/wabot-gemini.git
  3. Go to the project directory and install the dependencies
     cd wabot-gemini
     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. Scan the QR Code on your WhatsApp Web (You can see the QR Code on your terminal)
  7. Reference on index.js, to use the bot you can send a message to your WhatsApp number with the format:
     .bot <message>
    Example:
     .bot Hello, what's up?
  8. The bot will reply to your message
  9. Enjoy!

👨 About Creator

portfolio linkedin instagram github

About

Simple WhatsApp bot that can interact with the Gemini API

Resources

Stars

Watchers

Forks