allAgent is next-generation insurance assistance platform designed for the Indian market. It bridges the gap between insurers and policyholders using advanced AI, providing a seamless experience across both web and mobile interfaces.
A simplified, accessible interface designed for mobile phones.
- AI Chat Assistant:
- Powered by AI models for instant, accurate responses.
- Context-aware conversations about Crop (PMFBY), Health, Life, and Vehicle insurance.
- Supports Hindi & English.
- Voice Call Support:
- Hands-free interaction: Speak naturally to the AI.
- Technology: Uses speech-to-text models for transcription and browser TTS for response.
- VAD (Voice Activity Detection): Automatically detects when you stop speaking.
- Smart Document Scanner:
- OCR Integration: Instantly extract text from documents (e.g., Aadhaar cards) using Camera or Gallery.
- Auto-Verify: Validates Aadhaar card formatting and masked numbers.
- Summarize with AI: One-click workflow to send scanned text to the Chat Agent for explanation.
- Localization: Instant switching between English and Hindi across the entire app.
A comprehensive admin panel for monitoring and management.
- Analytics Dashboard: Real-time stats on claims, policies, and active users.
- Interactive Charts:
- Regional coverage heatmaps (India map visualization).
- Claims trend analysis (Bar/Area charts).
- Policy distribution demographics (Pie charts).
- Claims Management: Advanced filtering, search, and status tracking for insurance claims.
- Settings & Customization: Manage user profiles and application preferences.
- Frontend: React (Vite) + TypeScript
- Styling: Tailwind CSS + Shadcn UI
- State Management: React Context API
- AI & ML:
- LLM: AI API (LLM)
- Speech-to-Text: AI API (Speech-to-Text)
- OCR: Tesseract.js
- Routing: React Router DOM (v6)
- Visualization: Recharts & Framer Motion
- Icons: Lucide React
- Node.js (v18+)
- AI API Key (for AI features)
This project is a client-side Single Page Application (SPA) built with Vite. There is no separate backend server process to run; all "backend" logic (AI, OCR) acts via serverless API calls directly from the browser.
-
Clone the repository:
git clone https://github.com/Abhay-Mmmm/allAgent.git cd allAgent -
Install dependencies:
npm install # or bun install -
Run the development server:
npm run dev
The app will proceed to start at
http://localhost:8080.
Since the app relies on external AI services, you must configure the API keys.
-
Create a file named
.envin the root folder. -
Add your AI API keys (Get them from your provider):
VITE_AI_API_KEY_VOICE=... # For Speech Transcription VITE_AI_API_KEY_CHAT=... # For Chat Intelligence
Note: You can use the same key for both variables if your token has access to both chat and speech models.
- Mobile App: Navigate to
/mobile(or use the toggle in the top-left). - Web Dashboard: Navigate to
/claims(default web view).
- User asks a query (e.g., "What is PMFBY?").
- System Prompt directs AI to act as an Insurance Expert.
- AI API generates a concise, formatted response.
- Record:
MediaRecordercaptures audio +AudioContextdetects silence. - Transcribe: Audio sent to Speech-to-Text API.
- Think: Transcribed text sent to LLM API.
- Speak: LLM response read aloud via
window.speechSynthesis.
- User captures image.
Tesseract.jsruns client-side OCR.- Extracted text is injected into Chat state.
- Chat Agent analyzes and summarizes the document content.
This project is licensed under the MIT License.