Veritas AI is an AI-powered insurance claims fraud detection platform that accelerates and authenticates the claim verification process for insurance companies. Built with React, TypeScript, and Tailwind CSS, it provides a comprehensive solution for claim analysis, fraud detection, and investigative workflows.
- User registration and login
- JWT token-based authentication
- Persistent user sessions with localStorage
- Personalized user experience
- Real-time claims statistics
- Quick action buttons for common tasks
- Recent claims overview
- Personalized welcome interface
- Multi-step claim creation with detailed form validation
- Drag-and-drop file upload with S3 integration
- Real-time upload progress tracking
- Claims listing with filtering and sorting
- Detailed claim analysis pages
- Automated fraud detection with risk scoring
- Evidence analysis including image metadata examination
- Timeline inconsistency detection
- Pattern matching against historical fraud cases
- Comprehensive fraud risk reports
- Interactive chat interface for claim investigation
- Real-time AI responses for investigative queries
- Claim-specific analysis with contextual insights
- Quick action buttons for common investigation tasks
- Dark theme with professional design
- Responsive layout for all screen sizes
- Interactive components with smooth animations
- Accessibility-compliant interface
- React 18 - Modern React with hooks
- TypeScript - Type-safe development
- Tailwind CSS - Utility-first styling
- Redux Toolkit - State management
- React Router - Client-side routing
- Chart.js - Data visualization
- REST API integration with Python FastAPI backend
- JWT Authentication with Bearer tokens
- AWS S3 file upload with presigned URLs
- Real-time data fetching and updates
Veritas_AI/
βββ public/ # Static assets
βββ src/
β βββ components/ # Reusable UI components
β β βββ common/ # Shared components (Modal, Icons, etc.)
β β βββ features/ # Feature-specific components
β βββ pages/ # Main application pages
β β βββ Landing.tsx # Marketing landing page
β β βββ Dashboard.tsx # Main dashboard
β β βββ Claims.tsx # Claims management
β β βββ ClaimDetail.tsx # Individual claim analysis
β β βββ AICopilot.tsx # AI investigation interface
β β βββ Login.tsx # Authentication
β β βββ Signup.tsx # User registration
β βββ layouts/ # Page layout components
β β βββ DashboardLayout.tsx
β βββ services/ # API integration
β β βββ api.ts # Centralized API service
β βββ redux/ # State management
β β βββ store.ts # Redux store configuration
β β βββ features/ # Redux slices
β βββ types/ # TypeScript type definitions
β βββ styles/ # Global styles
βββ package.json # Dependencies and scripts
βββ tailwind.config.js # Tailwind CSS configuration
βββ tsconfig.json # TypeScript configuration
βββ vite.config.ts # Vite build configuration
- Node.js 18+
- npm or yarn
- Git
- Clone the repository
git clone https://github.com/your-username/veritas-ai.git
cd veritas-ai
- Install dependencies
npm install
- Environment Setup
Create a
.env
file in the root directory:
VITE_API_BASE_URL=https://veritas-ai-backend-db28.onrender.com/api/v1
- Start development server
npm run dev
The application will be available at http://localhost:5173
npm run build
npm run preview
The project uses Tailwind CSS v4 with the new configuration:
- Import:
@import "tailwindcss"
in CSS files - PostCSS plugin:
@tailwindcss/postcss
All API calls are centralized in src/services/api.ts
:
- Authentication endpoints
- Claims CRUD operations
- File upload to S3
- AI investigation queries
- Login/Register - User authentication
- Create Claim - Multi-step form with evidence upload
- File Upload - Drag-and-drop with progress tracking
- Analysis Trigger - Immediate "Run Analysis" button
- Results Display - Fraud risk score and detailed report
- Claims Dashboard - Overview of all claims
- Claim Selection - Choose specific claim for analysis
- AI Co-pilot - Interactive investigation interface
- Evidence Analysis - AI-powered insights and recommendations
The application uses JWT-based authentication:
- Login: OAuth2 password flow with form data
- Token Storage: Secure localStorage persistence
- Auto-refresh: Automatic token validation
- Protected Routes: Route-level authentication guards
Redux Toolkit is used for state management:
- Auth Slice: User authentication and profile data
- Modal Slice: UI state for modals and forms
- Persistent Storage: User data persistence across sessions
- Background:
slate-900
(Dark theme) - Surfaces:
slate-800
,slate-700
- Primary:
emerald-500/600
(Actions and highlights) - Text:
white
,slate-300
,slate-400
- Status Colors:
red-400
(High risk),yellow-400
(Medium),green-400
(Low)
- Headers: Bold, large text for page titles
- Body: Clean, readable text with proper contrast
- Code: Monospace font for claim IDs and technical data
The project is configured for Vercel deployment:
- Build Command:
npm run build
- Output Directory:
dist
- Node Version: 18+
Set the following in your deployment platform:
VITE_API_BASE_URL=your_backend_url
- Use the provided HTML test client for API validation
- Test all user workflows end-to-end
- Verify file upload functionality with various file types
- Authentication: Login/logout/registration flows
- Claim Creation: Multi-step form with file uploads
- Analysis: Trigger analysis and view results
- AI Co-pilot: Interactive investigation queries
POST /auth/signup
- User registrationPOST /auth/token
- User login (OAuth2 form data)
GET /claims/
- List all claimsPOST /claims/
- Create new claimGET /claims/{id}
- Get specific claimPOST /claims/{id}/trigger-analysis
- Run fraud analysis
POST /investigate/{claim_id}/query
- AI investigation queries
-
Build Errors
- Ensure all dependencies are in
dependencies
(notdevDependencies
) - Check for case-sensitive import paths
- Ensure all dependencies are in
-
File Upload Issues
- Verify S3 presigned URL format
- Check file upload order (fields first, then file)
-
Authentication Problems
- Clear localStorage and retry login
- Verify API endpoint URLs
- Fork the repository
- Create a feature branch:
git checkout -b feature/your-feature
- Commit changes:
git commit -m "Add your feature"
- Push to branch:
git push origin feature/your-feature
- Open a Pull Request
- Use TypeScript for type safety
- Follow React hooks patterns
- Maintain consistent component structure
- Write descriptive commit messages
This project is licensed under the MIT License - see the LICENSE file for details.
- Backend API: FastAPI Python backend with AI/ML integration
- UI Framework: React with TypeScript for robust development
- Styling: Tailwind CSS for rapid, consistent styling
- State Management: Redux Toolkit for predictable state updates
- File Storage: AWS S3 for secure file handling
For support and questions:
- Create an issue in the GitHub repository
- Contact the development team
- Check the troubleshooting section above
Veritas AI - Transforming insurance fraud detection with AI-powered analysis and investigation tools.