How nikhila-dhevi-r/finaccess-ai works
FinAccess-AI is a multilingual, voice-first financial inclusion application. Users start a session, then can complete scanned forms, explore benefit schemes, ask financial questions, or check suspected fraud; the frontend sends these workflows to a FastAPI backend. Form completion includes OCR, spoken-answer interpretation, confirmation, and document generation. The graph includes documented feature areas even where implementation excerpts are limited; edges are based on shown source or SOURCE INDEX references, and uncertain connections are omitted.
Main entry points: main.py FastAPI application · database.py Database · forms.py Form endpoints · client.js API client
Components 32
User experience
- Application shell
frontend/src/App.jsx - Session and language
frontend/src/hooks/useSession.js - Speech interaction
frontend/src/hooks/useSpeech.js - Form completion
frontend/src/pages/FormFill.jsx - Fraud check
frontend/src/pages/FraudCheck.jsx - Scheme discovery
frontend/src/pages/Schemes.jsx - Financial guidance
frontend/src/pages/Guidance.jsx - API client
frontend/src/api/client.js
API workflows
- FastAPI application
backend/main.py - Session endpoints
backend/routers/sessions.py - Form endpoints
backend/routers/forms.py - Confirmation endpoints
backend/routers/confirmations.py - Fraud endpoints
backend/routers/fraud.py - Scheme endpoints
backend/routers/schemes.py - Guidance endpoints
backend/routers/guidance.py
Domain services
- Form OCR
backend/services/ocr_service.py - Bank form detection
backend/services/bank_form_service.py - Cheque processing
backend/services/cheque_service.py - Voice interpretation
backend/services/voice_service.py - Document generation
backend/services/pdf_service.py - Challenge handling
backend/services/nonce_service.py - Fraud analysis
backend/services/fraud_service.py - Scam detection
backend/services/scam_detector.py - Message OCR
backend/services/message_ocr.py - Scheme matching
backend/services/scheme_service.py - Eligibility finder
backend/services/scheme_finder.py - Scheme catalogue
backend/services/schemes_data.py - Guidance answers
backend/services/guidance_service.py - Finance knowledge base
backend/services/finance_kb.py
Persistence
- Database
backend/database.py - Domain records
backend/models.py
Other components
- User
Connections 46
- User → Application shell: uses
- Application shell → Form completion: routes to
frontend/src/App.jsx - Application shell → Fraud check: routes to
frontend/src/App.jsx - Application shell → Scheme discovery: routes to
frontend/src/App.jsx - Application shell → Financial guidance: routes to
frontend/src/App.jsx - Form completion → Speech interaction: uses
frontend/src/pages/FormFill.jsx - Form completion → API client: requests
frontend/src/pages/FormFill.jsx - Fraud check → API client: requests
frontend/src/pages/FraudCheck.jsx - Scheme discovery → API client: requests
frontend/src/pages/Schemes.jsx - Financial guidance → API client: requests
frontend/src/pages/Guidance.jsx - Form completion → Session and language: uses
frontend/src/pages/FormFill.jsx - Fraud check → Session and language: uses
frontend/src/pages/FraudCheck.jsx - Scheme discovery → Session and language: uses
frontend/src/pages/Schemes.jsx - Financial guidance → Session and language: uses
frontend/src/pages/Guidance.jsx - Session and language → API client: creates session
frontend/src/hooks/useSession.js - API client → FastAPI application: calls API
- FastAPI application → Session endpoints: registers
backend/main.py - FastAPI application → Form endpoints: registers
backend/main.py - FastAPI application → Confirmation endpoints: registers
backend/main.py - FastAPI application → Fraud endpoints: registers
backend/main.py - FastAPI application → Scheme endpoints: registers
backend/main.py - FastAPI application → Guidance endpoints: registers
backend/main.py - Session endpoints → Database: uses
backend/routers/sessions.py - Form endpoints → Form OCR: processes upload
backend/routers/forms.py - Form endpoints → Voice interpretation: interprets answers
backend/routers/forms.py - Form endpoints → Document generation: generates document
backend/routers/forms.py - Form endpoints → Challenge handling: requests challenge
backend/routers/forms.py - Form endpoints → Database: uses
backend/routers/forms.py - Confirmation endpoints → Challenge handling: validates challenge
backend/routers/confirmations.py - Confirmation endpoints → Database: uses
backend/routers/confirmations.py - Fraud endpoints → Fraud analysis: analyzes submission
backend/routers/fraud.py - Fraud endpoints → Database: uses
backend/routers/fraud.py - Fraud analysis → Scam detection: checks scam
backend/services/fraud_service.py - Fraud analysis → Message OCR: extracts message
backend/services/fraud_service.py - Fraud analysis → Cheque processing: checks cheque
backend/services/fraud_service.py - Scheme endpoints → Scheme matching: matches schemes
backend/routers/schemes.py - Scheme endpoints → Database: uses
backend/routers/schemes.py - Scheme matching → Eligibility finder: finds eligibility
backend/services/scheme_service.py - Scheme matching → Scheme catalogue: reads catalogue
backend/services/scheme_service.py - Eligibility finder → Scheme catalogue: matches catalogue
backend/services/scheme_finder.py - Guidance endpoints → Guidance answers: answers question
backend/routers/guidance.py - Guidance endpoints → Database: uses
backend/routers/guidance.py - Guidance answers → Finance knowledge base: searches knowledge
backend/services/guidance_service.py - Guidance answers → Scheme catalogue: references schemes
backend/services/guidance_service.py - Guidance answers → Eligibility finder: checks eligibility
backend/services/guidance_service.py - Database → Domain records: maps records
backend/models.py