Documentation

AI-Powered Homeopathy Web Application

Advanced AI-powered homeopathy software for intelligent remedy suggestion and patient consultation

AI-Powered
Voice Input
Secure

About This Application

HomeOSense is a cutting-edge AI-powered homeopathy web application designed to revolutionize the way homeopathic practitioners deliver patient care and remedy recommendations.

Intelligent Analysis

Our AI system analyzes symptoms through the Kent Repertory method to provide the most accurate remedy recommendations based on comprehensive case-taking.

Professional Grade

Built for homeopathic professionals, featuring dual-provider validation, comprehensive patient history tracking, and evidence-based recommendations.

Live AI Physician Chat

Interactive case-taking with AI through Kent questionnaire and conversational interface for natural, patient-friendly consultation experience.

Voice-Enabled Input

Integrated voice input functionality allowing patients and practitioners to describe symptoms naturally using microphone input with automatic transcription.

Key Features

Advanced AI Suggestions with Live Chat

Interactive Kent questionnaire with 20 targeted questions. AI asks questions progressively to gather comprehensive patient information for accurate remedy selection.

Dual-Provider System with Auto-Fallback

Utilizes Google Gemini and Groq AI providers with automatic fallback mechanism. If primary provider fails, system seamlessly switches to backup provider.

Voice Input & Transcription

Click microphone button to record symptoms and answers. Browser-based speech recognition automatically transcribes voice input to text in real-time.

Comprehensive Remedy Analysis

AI analyzes case details and provides multiple remedy recommendations with potency, dosage, rationale, lifestyle modifications, and cautions.

PDF Export & Sharing

Export remedy recommendations as professional PDF with clinic header, or share directly via WhatsApp with patients.

Secure Data Management

API keys encrypted with AES-256-GCM and stored securely in database. Patient information protected with enterprise-grade security.

How to Use This Application

1Initial Setup

  1. Sign Up:Create account with your email and clinic details
  2. Configure API Keys:Go to Settings → Add Google Gemini or Groq API keys (at least one required)
  3. Clinic Details:Fill in clinic name, address, and doctor details for professional output

2Standard Consult (Basic AI)

  1. Navigate:Go to Consult → Enter patient name and chief complaint
  2. Submit:Click "Submit" to get AI analysis and remedy suggestions
  3. Export:Export as PDF or share via WhatsApp with patient

3Advanced AI Suggestions (Live Chat with AI Physician)

  1. Navigate:Go to Advanced AI Suggestions in sidebar
  2. Enter Details:Fill patient name, age, gender, and chief complaint
  3. Select Provider:Choose between Gemini or Groq (both available, auto-fallback if needed)

4Using Voice Input

  1. Click Mic:Click microphone (🎤) button next to text input
  2. Speak:Speak clearly into your microphone (allow browser access when prompted)
  3. Transcribe:Text appears automatically; click Stop or continue speaking
  4. Submit:Review transcribed text and click "Submit Answer"

5Interview Flow (20-Question Kent Questionnaire)

  1. Questions 1-5:AI asks about symptom characteristics, timing, and modalities
  2. Questions 6-12:Mental state, sleep patterns, cravings, and constitutional factors
  3. Question 15:System asks: continue 5 more questions or analyze now?
  4. Questions 16-20:Refine understanding of peculiar symptoms (if chosen)
  5. Analysis:AI provides comprehensive remedy recommendations with rationale

6Viewing & Exporting Remedy Recommendations

  1. Remedy Details:View potency, dosage, schedule, rationale, and lifestyle modifications
  2. Alternatives:See why other remedies weren't selected with detailed explanations
  3. Export PDF:Click "Save / Print as PDF" for professional document with clinic header
  4. WhatsApp Share:Click "Send via WhatsApp" to share with patient directly

Skin Consult (camera and photo support)

Skin Consult is a separate consultation for skin complaints. You add photos of the affected skin and fill a skin-focused case history; the AI uses both for its observations and remedy plan.

Step by step

  1. Open:Sidebar → Skin consult, or the Skin tab in the phone bottom menu (/consult/skin).
  2. Photos:Tap Camera to use the phone camera, or Gallery to upload. Up to 4 photos: one close photo in daylight with the patch in focus, and one wider photo showing the spread.
  3. Patient and complaint:Name, age and gender, the main complaint and the affected site are required.
  4. Skin details:Onset, spread, sensation, itching pattern, discharge, dryness or scaling, appearance, triggers, previous treatment and family history.
  5. Modalities and generals:Worse by, better by, sweating, thirst, sleep and thermal state.
  6. Case strength:The checklist shows what is still missing. Ask AI what's missing gives up to 6 targeted questions; tapping an answer fills the matching box.
  7. Analyze:Choose Gemini or Groq and press Analyze skin case (or Ctrl+Enter). If the chosen AI is unavailable, the other one answers automatically.

What the AI gives

Visual observations (lesion type, colour, scaling, spread), at least 6 Kent rubrics when the case has enough symptoms, modalities, a remedy with potency and dosage, two alternatives, and red-flag cautions. If a photo is blurry, too dark or does not show the area, it says so and asks for a better photo.

Privacy and limits

Photos are resized on the device and sent only for analysis; they are not stored with the case or in the draft. The AI does not diagnose a skin disease. The physician verifies the findings and decides the treatment. Get the patient's consent before taking photos.

Technology Stack

Frontend

  • • Next.js 16.0.7 with React 18
  • • TypeScript for type safety
  • • Tailwind CSS + shadcn/ui
  • • Framer Motion for animations

Backend & Services

  • • Next.js API Routes
  • • Secure authentication (Auth + Database)
  • • Node.js runtime
  • • RESTful API architecture

AI Providers

  • • Google Gemini (Primary)
  • • Groq Llama (Fallback)
  • • Web Speech API (Voice)
  • • Auto-fallback mechanism

Security

  • • AES-256-GCM encryption
  • • JWT authentication
  • • Secure database storage
  • • HTTPS communication

Frequently Asked Questions

Can I use photos for skin cases?

Yes. Skin Consult (/consult/skin) supports the phone camera and gallery uploads, up to 4 photos per case. The AI reads the photos together with the skin case history.

Are skin photos saved?

No. Photos are sent only for the AI analysis and are not stored with the case or in the draft. Only the written case and the result are saved to patient history.

Do I need API keys to use this app?

Yes, at least one API key is required (Google Gemini or Groq). You can get them for free: Google Gemini from aistudio.google.com and Groq from console.groq.com

What browsers support voice input?

Voice input works on Chrome, Edge, and Firefox. For best results, use the latest version of your browser and ensure microphone permissions are granted.

How long does the interview take?

A typical 20-question interview takes 10-15 minutes depending on answer length. You can choose to stop after 15 questions if sufficient information is gathered.

Is my patient data secure?

Yes, all data is encrypted with AES-256-GCM and stored securely in a secure database. API keys are encrypted per-user and never stored in plain text.

Can I export recommendations as PDF?

Yes, every remedy recommendation can be exported as a professional PDF with your clinic header, doctor name, address, and detailed remedy information.

What if the AI fails to generate a response?

The system automatically falls back from Gemini to Groq if either provider fails. You can also manually switch providers using the buttons in the interface.

How many questions are in the Kent interview?

The interview includes 20 targeted questions based on the Kent Repertory method. At question 15, you can choose to continue or analyze immediately.

Can multiple doctors use the same clinic account?

Each doctor should create their own account with their name. All accounts in a clinic can have the same clinic details configured in Settings.

Ready to Get Started?

Start using HomeOSense AI-powered homeopathy software to deliver better patient care with intelligent remedy suggestions and interactive case-taking.