Chatbot project delivering an AI-powered WhatsApp chat experience. Uses the Gemini AI model and Twilio API to provide real-time, intelligent responses.
- AI-powered conversation π§
- WhatsApp integration via Twilio π²
- Easy configuration π§
- Error handling & logging π
- Python 3.8 or higher π
- Twilio account & WhatsApp-enabled number π
- OpenAI API key π
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
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"
python -m app
Webhook URL:
POST https://<your_server_address>/whatsapp
app/
__init__.py
: Application entry pointconfig.py
: Configuration variablesroutes/
whatsapp.py
: Webhook route
services/
chatbot.py
: OpenAI integrationtwillio.py
: Twilio messaging
requirements.txt
: DependenciesMakefile
: Helper commands
Bug reports, ideas, or pull requests are welcome. Let's build together! π
This project is licensed under the MIT License.
Β© 2025