VoiceGuard is an intelligent voice call analysis platform that detects and prevents scam calls in real-time using advanced AI technology. Built with React, Node.js, and the Retell API, VoiceGuard provides comprehensive protection against phone scams with detailed analytics and insights.
- Real-time Scam Detection - AI-powered analysis of voice calls to identify potential scams
- Interactive Voice Calls - Integrated with Retell API for live call handling
- Comprehensive Dashboard - View key metrics, trends, and insights at a glance
- Conversation Analytics - Detailed transcripts and analysis of all calls
- Smart Labeling - Categorize calls as scam, legitimate, or suspicious
- Export Functionality - Download conversation data in CSV format
- Total calls processed
- Scam detection rate
- Customer churn & retention analysis
- Real-time feedback tracking
- Trending patterns and insights
- Beautiful landing page with smooth animations
- Responsive design for all devices
- Dark mode optimized
- Intuitive navigation and user flows
- Node.js 18+ and npm
- PostgreSQL database
- Retell API account and credentials
- Clone the repository
git clone https://github.com/shaibaank/customer-support-n8n.git
cd customer-support-n8n- Install frontend dependencies
npm install- Install backend dependencies
cd server
npm install- Set up environment variables
Create a .env file in the server directory:
DATABASE_URL="postgresql://username:password@localhost:5432/voiceguard"
RETELL_API_KEY="your_retell_api_key"- Initialize the database
cd server
npx prisma migrate dev
npx prisma db seed- Start the application
Terminal 1 (Backend):
cd server
npm startTerminal 2 (Frontend):
npm run devThe app will be available at http://localhost:5173
voiceguard/
โโโ src/
โ โโโ Components/
โ โ โโโ Hero.jsx # Landing page with beautiful design
โ โ โโโ Dashboard.jsx # Analytics dashboard
โ โ โโโ Conversations.jsx # Call history and transcripts
โ โ โโโ Call.jsx # Live call interface
โ โ โโโ Login.jsx # Authentication
โ โ โโโ Navbar.jsx # Navigation
โ โโโ hooks/
โ โ โโโ useAuth.js # Authentication hook
โ โ โโโ usePhoneCall.js # Call management hook
โ โ โโโ useDebounce.js # Utility hook
โ โโโ styles/
โ โ โโโ colors.css # Brand colors and themes
โ โโโ App.jsx # Main app component
โโโ server/
โ โโโ server.js # Express server
โ โโโ retellClient.js # Retell API integration
โ โโโ db.js # Database connection
โ โโโ routes/
โ โ โโโ conversations.js # API routes
โ โโโ prisma/
โ โโโ schema.prisma # Database schema
โ โโโ seed.js # Sample data
โโโ README.md
- React 18 - UI framework
- Vite - Build tool and dev server
- Framer Motion - Smooth animations
- Lucide React - Beautiful icons
- React Router - Navigation
- TailwindCSS - Utility-first styling
- Node.js & Express - Server framework
- Prisma - Database ORM
- PostgreSQL - Database
- Retell API - Voice call handling
- CORS & Body Parser - Middleware
- Navigate to the Call section
- Enter the phone number to test
- Click "Start Protected Call"
- VoiceGuard will analyze the conversation in real-time
- Access the Dashboard to see overall metrics
- View conversation history in the Conversations section
- Click on any call to see detailed transcript and analysis
- Label calls as scam/legitimate for improved detection
- Navigate to Conversations
- Click "Export CSV" to download all call data
- Use the data for further analysis or reporting
- End-to-end call encryption
- Secure authentication system
- Protected API endpoints
- Environment variable protection
- SQL injection prevention via Prisma
POST /api/create-phone-call- Initiate a new callGET /api/health- Health check
GET /api/conversations- List all conversationsGET /api/conversations/:id/transcript- Get transcriptPOST /api/conversations/ingest- Store conversation dataPOST /api/conversations/:id/label- Label a conversationGET /api/conversations/export/csv- Export data
Edit src/styles/colors.css to customize the color scheme:
--brand-1: #your-primary-color;
--brand-2: #your-secondary-color;Modify src/Components/Hero.jsx to update:
- Hero section content
- Feature highlights
- Testimonials
- Pricing plans
Contributions are welcome! Please follow these steps:
- Fork the repository
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Shaib - @shaibaank
- Retell API for voice call infrastructure
- The React and Node.js communities
- All contributors and testers
For support, email support@voiceguard.com or open an issue on GitHub.
- Multi-language support
- Mobile app (iOS/Android)
- Advanced ML model training
- Integration with CRM systems
- Real-time team collaboration
- Custom alert configurations
Made with โค๏ธ by the VoiceGuard Team