Skip to content

πŸ€–πŸ’¬ Chatbot project delivering an AI-powered WhatsApp chat experience. Uses the Gemini AI model and Twilio API to provide real-time, intelligent responses.

License

Notifications You must be signed in to change notification settings

Xjectro/whatsapp-chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

WhatsApp Chatbot πŸ€–πŸ’¬

Chatbot project delivering an AI-powered WhatsApp chat experience. Uses the Gemini AI model and Twilio API to provide real-time, intelligent responses.

βš™οΈ Features

  • AI-powered conversation 🧠
  • WhatsApp integration via Twilio πŸ“²
  • Easy configuration πŸ”§
  • Error handling & logging πŸ“

πŸ“‹ Prerequisites

  • Python 3.8 or higher 🐍
  • Twilio account & WhatsApp-enabled number πŸ“ž
  • OpenAI API key πŸ”‘

πŸš€ Installation

git clone https://github.com/Xjectro/whatsaap-chatbot.git
cd whatsaap-chatbot
python -m venv venv
.\venv\Scripts\Activate.ps1
pip install -r requirements.txt

πŸ”§ Configuration

Update the variables in app/config.py:

GEMINI_API_KEY   = "your_gemini_ai_key"
TWILIO_ACCOUNT_SID = "your_twilio_sid"
TWILIO_AUTH_TOKEN = "your_twilio_token"
TWILIO_WHATSAPP_NUMBER = "whatsapp:+1234567890"

πŸƒ Usage

python -m app

Webhook URL:

POST https://<your_server_address>/whatsapp

πŸ—‚οΈ Project Structure

  • app/
    • __init__.py : Application entry point
    • config.py : Configuration variables
    • routes/
      • whatsapp.py : Webhook route
    • services/
      • chatbot.py : OpenAI integration
      • twillio.py : Twilio messaging
  • requirements.txt : Dependencies
  • Makefile : Helper commands

🀝 Contributing

Bug reports, ideas, or pull requests are welcome. Let's build together! 🌟

πŸ“ License

This project is licensed under the MIT License.
Β© 2025

About

πŸ€–πŸ’¬ Chatbot project delivering an AI-powered WhatsApp chat experience. Uses the Gemini AI model and Twilio API to provide real-time, intelligent responses.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published