A WhatsApp chatbot that answers health questions with MedGemma, Google's open medical language model. A Node.js client receives each message and sends it to a Flask API, which runs MedGemma 4B through Hugging Face Transformers.
The bot keeps the last ten messages of each chat as context and clears them when the user types "reset". Every reply ends with a reminder to consult a healthcare professional.
- WhatsAppUser sends a question
- Node.js clientwhatsapp-web.js
- Flask APIChat history per user
- MedGemma 4BHugging Face Transformers