A real-time fraud detection and prevention platform with AI-powered chatbot featuring voice capabilities.
- Real-time Fraud Detection: Advanced workflow-based fraud detection system
- AI Fraud Assistant: Intelligent chatbot powered by Google Gemini with voice capabilities
- Voice Interface: ElevenLabs-powered text-to-speech with audio visualization
- Interactive Dashboard: Real-time metrics and transaction monitoring
- Global Transaction Mapping: 3D globe visualization of worldwide transactions
cd backend
ENABLE_SIMULATOR=false npm run dev
cd ../frontend
npm installOption A: Automated Setup (Recommended)
Use the interactive setup script:
cd backend
./setup-env.shOption B: Manual Setup
Copy the example environment file and configure your API keys:
cd backend
cp .env.example .envEdit .env file with your API keys:
# Gemini API Configuration
GEMINI_API_KEY=your_gemini_api_key_here
# ElevenLabs API Configuration (for voice features)
ELEVENLABS_API_KEY=your_elevenlabs_api_key_here
ELEVENLABS_VOICE_ID=rachelGoogle Gemini API:
- Visit Google AI Studio
- Create a new API key
- Copy the key to your
.envfile
ElevenLabs API (for voice features):
- Visit ElevenLabs
- Sign up for an account
- Go to your profile and generate an API key
- Copy the key to your
.envfile - Optionally, choose a different voice ID from their voice library
Start both backend and frontend servers:
# Terminal 1 - Backend
cd backend
npm run dev
# Terminal 2 - Frontend
cd frontend
npm run devThe application will be available at http://localhost:5173
The AI Fraud Assistant includes advanced voice capabilities:
- Voice Mode: Default mode with speech-to-text input and text-to-speech output
- Audio Visualization: Real-time audio visualization during AI responses
- Speech Recognition: Browser-based speech-to-text for voice input
- Voice Synthesis: ElevenLabs-powered high-quality voice synthesis
- Mode Toggle: Easy switching between voice and text modes
- Frontend: React, Vite, Three.js, React Flow
- Backend: Node.js, Express, Socket.io
- AI: Google Gemini API, ElevenLabs Voice API
- Visualization: D3.js, React Globe GL
- Real-time: WebSocket connections