An intelligent cooking assistant that integrates with WhatsApp to provide personalized recipe recommendations and cooking guidance.
- 🤖 AI-powered conversational system with multiple chef personalities
- 📱 WhatsApp Business API integration
- 🥘 Personalized recipe recommendations
- 👤 User profile management
- 📝 Ingredient tracking and management
- 🧠 Context-aware conversations
- 🛒 Smart grocery planning
whatsapp_bot/
├── app/
│ ├── api/ # API routes and endpoints
│ ├── core/ # Core configuration and settings
│ ├── db/ # Database models and connection
│ ├── services/ # Business logic and services
│ ├── models/ # Pydantic models
│ └── utils/ # Utility functions
├── tests/ # Test files
├── .env # Environment variables
├── requirements.txt # Project dependencies
└── main.py # Application entry point
- Clone the repository
- Create a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
- Create a
.envfile with the following variables:MONGODB_URL=your_mongodb_url TWILIO_ACCOUNT_SID=your_twilio_sid TWILIO_AUTH_TOKEN=your_twilio_token OPENAI_API_KEY=your_openai_key WHATSAPP_NUMBER=your_whatsapp_number - Run the application:
uvicorn main:app --reload
Once the server is running, visit http://localhost:8000/docs for the interactive API documentation.
MONGODB_URL: MongoDB connection stringTWILIO_ACCOUNT_SID: Twilio Account SIDTWILIO_AUTH_TOKEN: Twilio Auth TokenOPENAI_API_KEY: OpenAI API KeyWHATSAPP_NUMBER: Your WhatsApp Business numberJWT_SECRET_KEY: Secret key for JWT token generationALGORITHM: Algorithm for JWT token generation
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
MIT License