Skip to content

About

This is Nextjs Ai Medical Voice Agent with Openrouter (OpenAI SDK), Vapi (assemblyAi), etc

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

Β 

History

23 Commits

Folders and files

Repository files navigation

πŸ₯ MediVoice AI

MediVoice AI Logo

AI-Powered Medical Voice Assistant for Smart Healthcare Consultations

Next.js TypeScript Tailwind CSS Clerk

License: MIT Version


🌟 Overview

MediVoice AI is a cutting-edge AI Medical Voice Agent built with Next.js that revolutionizes healthcare consultations. Users can describe their symptoms, get matched with specialized AI doctors, and conduct voice conversations for medical advice. After each consultation, users receive comprehensive medical reports in structured PDF format.

✨ Key Features

  • πŸ€– AI-Powered Symptom Analysis
  • πŸŽ™οΈ Voice Conversation Support
  • πŸ“‹ Detailed Medical Reports
  • πŸ‘₯ Multiple AI Medical Specialists
  • πŸ’³ Flexible Pricing Plans
  • πŸ” Secure Authentication
  • πŸ“± Responsive Design

πŸ’Ž Pricing Plans

πŸ†“ Free Plan

  • 1 AI Medical Doctor Agent
  • 10 Consultation Credits
  • Basic medical consultations
  • Standard report generation

πŸ’Ž Pro Plan - $9.99/month

  • 10 Different AI Medical Doctor Agents including:
    • General Physician AI
    • Cardiologist AI
    • Neurologist AI
    • Pediatrician AI
    • Dermatologist AI
    • Orthopedic AI
    • Psychiatrist AI
    • Gynecologist AI
    • ENT Specialist AI
    • Gastroenterologist AI
  • Unlimited Consultations
  • Priority Support
  • Advanced Report Features
  • Voice Conversation History

Upgrade to Pro for unlimited access to specialized medical AI assistants!


πŸ“‹ Medical Report Format

Each consultation generates a comprehensive medical report in JSON format:

{
  "sessionId": "unique_session_identifier",
  "agent": "Medical_Specialist_AI",
  "user": "Patient_Name_or_Anonymous",
  "timestamp": "2024-03-19T10:42:00.000Z",
  "chiefComplaint": "Brief summary of main health concern",
  "summary": "2-3 sentence summary of consultation",
  "symptoms": ["symptom1", "symptom2", "symptom3"],
  "duration": "Duration of symptoms",
  "severity": "mild|moderate|severe",
  "medicationsMentioned": ["medication1", "medication2"],
  "recommendations": ["recommendation1", "recommendation2"]
}

πŸ“Š Report Fields Explained

Field Description Type
sessionId Unique consultation identifier string
agent AI medical specialist name string
user Patient name or "Anonymous" string
timestamp Consultation date/time (ISO) string
chiefComplaint Main health concern summary string
summary Consultation overview string
symptoms List of reported symptoms array
duration How long symptoms persisted string
severity Symptom severity level string
medicationsMentioned Current medications array
recommendations AI-generated advice array

πŸš€ Quick Start

πŸ“‹ Prerequisites

  • Node.js 18+
  • npm or yarn package manager
  • PostgreSQL database (NeonDB recommended)

βš™οΈ Installation

# Clone the repository
git clone https://github.com/NaingMinThant77/Next-AI-Medical-Agent.git
cd Next-AI-Medical-Agent

# Install dependencies
npm install

# Copy environment variables
cp .env.example .env.local

# Run the development server
npm run dev

πŸ”§ Environment Setup

Configure your .env.local file with the following variables:

# Database
DATABASE_URL=your_postgresql_database_url

# Clerk Authentication
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=your_clerk_publishable_key
CLERK_SECRET_KEY=your_clerk_secret_key

# OpenRouter API
OPEN_ROUTER_API_KEY=your_openrouter_api_key

# Vapi Voice Assistant
NEXT_PUBLIC_VAPI_VOICE_ASSISTANT_ID=your_vapi_assistant_id
NEXT_PUBLIC_VAPI_PUBLIC_KEY=your_vapi_public_key

🌐 Open http://localhost:3000 to view the application


πŸ› οΈ Tech Stack

🎨 Frontend Technologies

Next.js TypeScript Tailwind CSS Shadcn

🎯 UI/UX Libraries

Framer Motion React Icons Next Theme

πŸ—„οΈ Backend & Database

Drizzle ORM PostgreSQL NeonDB

πŸ” Authentication & APIs

Clerk OpenAI Vapi AssemblyAI

πŸ“¦ Core Dependencies

Category Technologies
Framework Next.js 14+
Language TypeScript
Styling Tailwind CSS + Shadcn UI
Database Drizzle ORM + NeonDB
Authentication Clerk
AI/ML OpenRouter (GPT-3.5-turbo)
Voice Vapi + AssemblyAI
State Management React Context API
HTTP Client Axios
Date/Time Moment.js
Animations Framer Motion

πŸ–ΌοΈ Project Showcase

πŸ” Authentication Flow

Register & Login System

πŸ“ Register Page Register Page

πŸ”‘ Login Page (OAuth Google & Email support) Login Page

πŸ” Password Entry Password Page

βœ‰οΈ Email Verification OTP Page


πŸ†“ Free Version Features

Experience AI Medical Consultations with Basic Features

🏠 Home Dashboard Home Page

πŸ‘€ User Profile Management User Profile

πŸ’³ Profile Model Tag

Image

πŸ’³ Update Profile & Add New Email

Image

πŸ’³ Update Password

Image

πŸ’³ Billing & Subscription Billing

🩺 Consultation Flow New Consultation

🩺 Selected Doctor

Image

🩺 Direct Consultation With Conduct Button in Doctor Lists

Image

πŸ’¬ AI Conversation Interface Conversation Page

πŸ’¬ Talk With AI Medical Doctor Agent

Image

πŸ“Š Medical Reports Image

πŸ“Š History Page With Data

Image

πŸ“Š History Page with No Data Yet

Image

πŸ“Š Pricing Page

Image


πŸ’Ž Pro Version Features

Unlock Unlimited Access to Specialized Medical AI

πŸ’Ž Buying Pro Version

Image

πŸ’Ž Pricing Page with Pro Active

Image

πŸ’Ž Billing Pro Version & Renew Date

Image

πŸ’Ž Billing Transaction

Image

πŸ’Ž Dashboard Home Page - Pro Version

Image


About

This is Nextjs Ai Medical Voice Agent with Openrouter (OpenAI SDK), Vapi (assemblyAi), etc

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages