MedSarovar is a Telegram Bot that empowers users in India to navigate the healthcare landscape with ease. Our AI-powered platform tackles common pain points by helping users:
- Find Budget-Friendly Specialists: Get matched with doctors who fit your budget and address your specific needs.
- Skip the Wait: Effortlessly book and manage appointments, saving you valuable time.
- Get the Right Care: Securely share medical records with doctors for a seamless flow of information and a more accurate diagnosis.
- AI-powered Doctor Matching: Our AI engine matches you with the best-suited doctor based on your budget and symptoms. 🩺₹
- Effortless Appointment Booking: Manage appointments directly through the app, saving you time and hassle. ⏱️
- Secure Medical Record Sharing: Share medical records securely with your doctor, ensuring continuity of care.
- HTML, CSS: Building the user interface of the Telegram bot.
- Javascript, Node.js: Core development language and runtime environment for the bot's logic.
- Solidity: Programming language for smart contracts deployed on the Avalanche blockchain.
- Avalanche: Blockchain platform for secure and decentralized data management.
- MongoDB: Database for storing user information and doctor data.
- OpenAI API:Used for preliminary diagnosis based on user symptoms.
- Firebase SDK: Integration with Firebase for functionalities like user authentication or real-time messaging.
- Firebase Genkit: (Optional) Tool for managing Firebase project configuration .
- Gemma: (Unidentified library - clarify its purpose if used).
- GCP (Google Cloud Platform): Cloud infrastructure potentially used for hosting the bot or specific services .
- CallChimp SDK: Integration with CallChimp for appointment confirmation emails .
- Collects user information (name, age, phone number, maximum budget).
- Analyzes user symptoms using OpenAI's GPT-3.5-turbo model.
- Recommends doctors based on the diagnosis and user's budget.
- Allows users to book appointments with recommended doctors.
- Communicates with an external API to handle appointment bookings.
- Node.js and npm installed
- MongoDB for storing user data and doctor information
- A Telegram bot token from BotFather
- OpenAI API key
-
Clone the repository:
git clone https://github.com/yourusername/telegram-medical-assistant-bot.git cd telegram-medical-assistant-bot
-
Install the dependencies:
npm install
-
Create a
.env
file in the root directory and add your credentials:TELEGRAM_BOT_TOKEN=your-telegram-bot-token OPENAI_API_KEY=your-openai-api-key MONGODB_URI=your-mongodb-uri
-
Start the bot:
node index.js
- Start the bot by sending
/start
in your Telegram chat. - Follow the prompts to provide your name, age, phone number, and maximum budget.
- Describe the symptoms you are experiencing.
- The bot will provide a possible diagnosis and recommend doctors.
- Select a doctor to book an appointment.
The bot communicates with an external API to handle appointment bookings. Ensure your API endpoint is correctly configured in the code:
const response = await axios.post('https://hack4bengal-427819.el.r.appspot.com/call', {
doctorId: selectedDoctor._id,
chatId: chatId
});
Watch the https://youtu.be/e7Lbv203Zbw to see the bot in action.
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature-branch
). - Open a pull request.
This project is licensed under the MIT License.