A voice-enabled AI companion designed for elderly care, providing continuous voice conversations with automatic check-ins and family contact access.
- 🎤 Continuous Voice Conversations: Fully hands-free - just talk naturally, no button pressing
- 🤖 AI-Powered: Uses OpenAI GPT-4o-mini for fast, emotional, caring responses
- 💬 Automatic Logging: Conversations saved to MongoDB + text files
- 👥 Family Contacts: Quick call buttons for Anthony (Son) and David (Daughter)
- 🎯 Elderly-Focused: Personalized for Jenny with emotional warmth and care
- 🌐 Elder-Friendly UI: Large buttons, high contrast, simple design
npm installCreate a .env file in the root directory:
cp .env.example .envThen edit .env and add your OpenAI API key:
OPENAI_API_KEY=your_actual_api_key_here
PORT=3000
You can get an API key from OpenAI's website.
npm startOr for development with auto-reload:
npm run devNavigate to http://localhost:3000 in your web browser.
- Click "Call ADA" once to start
- ADA greets: "Hey Jenny, I hope you are doing great today."
- Just talk naturally - no button pressing needed
- After 5 seconds of silence, your message auto-sends
- ADA responds with voice automatically
- Recording auto-resumes - continue talking!
- Click "Call ADA" again to end the conversation
Family Contacts:
- Tap "Anthony" or "David" buttons to call them directly
- Calls open your phone dialer with their number pre-filled
hackaton/
├── server.js # Express backend server
├── package.json # Node.js dependencies
├── .env # Environment variables (create this)
├── public/
│ ├── index.html # Frontend HTML
│ ├── style.css # Styling
│ └── app.js # Frontend JavaScript
└── conversations/ # Auto-generated conversation logs
All conversations are saved to text files in the conversations/ directory, organized by date. Each file contains:
- Timestamp of each exchange
- User's spoken message
- ADA's response
- Silence Detection: Auto-sends after 5 seconds of silence (handles background noise)
- Continuous Flow: Talk → Pause → Hear Response → Talk Again (fully automatic)
- Optimized Speed: ~0.8-2.5 second response times
- Graceful Fallback: Works even if MongoDB is unavailable
COMPLETE_SYSTEM_SUMMARY.md- Full system overview and architectureDEPLOYMENT_GUIDE.md- How to deploy to Vercel/Render/ngrokMONGODB_SETUP.md- Mo ngoDB configurationCHATGPT_PROMPT_PREDEFINED_QUESTIONS.md- Prompt for adding medication/PT reminders
- Microphone not working: Check browser permissions and allow microphone access
- API errors: Verify your OpenAI API key is correct and has sufficient credits
- Port already in use: Change the PORT in
.envfile