Team Name: Three Point Zero
Revolutionizing financial inclusion through behavioral trust analysis and AI-driven credit assessment
TrustWeave is a cutting-edge AI-powered financial trust assessment platform that evaluates creditworthiness through behavioral patterns rather than traditional credit scores. Perfect for underbanked populations and emerging markets, it uses Google Gemini AI to analyze:
- π± Mobile Usage Patterns - SIM duration, recharge regularity, usage consistency
- β‘ Utility Payment Behavior - On-time payments, delay patterns, bill predictability
- π€ Community Engagement - Group participation, shared responsibility, dispute history
- π Evidence Documentation - Bills, receipts, payment proofs with AI analysis
- πΌ Financial Capacity - Employment, income stability, asset information
- 5 Specialized AI Agents working in harmony
- Google Gemini Integration for intelligent reasoning
- Behavioral Pattern Recognition across multiple domains
- Bias Detection & Fairness built-in protection
- T5 - Exceptional Trust (750-850 equivalent)
- T4 - Strong Trust (700-749 equivalent)
- T3 - Developing Trust (650-699 equivalent)
- T2 - Emerging Trust (600-649 equivalent)
- T1 - Limited Trust (550-599 equivalent)
- Specific improvement actions with timelines
- Next-level roadmap for trust band advancement
- Encouraging guidance and progress tracking
- Cultural context awareness for fair assessment
- No database dependencies - runs standalone
- Environment variable protection
- Rate limiting and security headers
- Graceful error handling with fallbacks
graph TD
A[User Input] --> B[Purpose & Routing Agent]
B --> C[Data Interpretation Agent]
C --> D[Trust Reasoning Agent]
D --> E[Bias & Fairness Agent]
E --> F[Improvement & Guidance Agent]
F --> G[Personalized Results]
H[Gemini AI] --> C
H --> D
H --> E
H --> F
- Purpose & Routing Agent - Determines assessment strategy based on loan purpose
- Data Interpretation Agent - AI-powered behavioral pattern analysis
- Trust Reasoning Agent - Intelligent trust band assignment with context
- Bias & Fairness Agent - Ensures fair treatment and bias correction
- Improvement & Guidance Agent - Generates personalized recommendations
- Node.js 18+
- npm or yarn
- Google Gemini API Key (Get it here)
git clone https://github.com/20Aarya05/three-point-zero-trustweave.git
cd three-point-zero-trustweave
npm install# Copy environment template
cp .env.example .env
# Add your Gemini API key
echo "GEMINI_API_KEY=your_actual_gemini_api_key_here" >> .envnpm run devβ
Server runs on http://localhost:3001
cd frontend
npm install
npm run devβ
Frontend runs on http://localhost:5173
POST /api/trust/assess
Content-Type: application/jsonRequest Body:
{
"purpose": "medium",
"mobile": {
"simDuration": "more_than_2_years",
"rechargeRegularity": "very_regular",
"usageConsistency": "very_stable"
},
"utility": {
"onTimePayment": "always",
"delayFrequency": "never",
"billPredictability": "very_consistent"
},
"community": {
"groupParticipation": "very_active",
"sharedResponsibility": "high",
"disputeHistory": "clear"
},
"evidence": [],
"loanExperience": "never",
"financial": {
"employmentType": "government",
"incomeRange": "30k-50k",
"incomeStability": "very_stable"
},
"assets": {
"property": false,
"fixedDeposits": true,
"collateralWillingness": true
}
}Response:
{
"trustBand": "T4 - Strong Trust",
"interpretation": "Outstanding financial reliability! You demonstrate exceptional consistency across all behavioral areas.",
"traditionalAlignment": "700-749",
"reasoning": [
"Outstanding 2+ year mobile relationship with very regular recharge patterns",
"Perfect utility payment record with no delays demonstrates financial discipline",
"Very active community participation shows strong social responsibility"
],
"metadata": {
"assessment_type": "ai-powered-trust",
"generated_at": "2024-01-15T10:30:00Z",
"version": "v2-ai"
}
}GET /healthResponse:
{
"status": "healthy",
"services": {
"api": "healthy",
"ai": "ready"
},
"timestamp": "2024-01-15T10:30:00Z",
"uptime": 3600
}- 5-Step Assessment Flow with intuitive UI
- Real-time AI Processing with progress indicators
- Detailed Results Display with trust band visualization
- Improvement Recommendations with actionable steps
- Responsive Design for mobile and desktop
- Purpose Selection - Choose loan type and amount
- Behavioral Input - Mobile, utility, community patterns
- Evidence Upload - Bills, receipts, payment proofs
- Financial Details - Employment and income information
- AI Analysis - Real-time processing with 5 AI agents
- Results & Guidance - Trust band with improvement roadmap
# Required
GEMINI_API_KEY=your_gemini_api_key_here
# Optional
PORT=3001
NODE_ENV=development
CORS_ORIGIN=http://localhost:3000# frontend/.env.local
VITE_GEMINI_API_KEY=your_gemini_api_key_here# Test trust assessment
curl -X POST http://localhost:3001/api/trust/assess \
-H "Content-Type: application/json" \
-d @examples/request-payload.json
# Health check
curl http://localhost:3001/healthcd frontend
npm run build
npm run previewTrust Band: T4 - Strong Trust
Traditional Alignment: 700-749
Confidence: High
Key Strengths:
β
2+ year mobile relationship with consistent patterns
β
Perfect utility payment record (always on-time)
β
Very active community participation
β
Government employment with stable income
Improvement Actions:
π Upload 3 more months of evidence β Potential T5 upgrade
π Add employment certificate β Boost confidence score
β° Timeline: 2-3 months for T5 Exceptional Trust
Trust Band: T3 - Developing Trust
Traditional Alignment: 650-699
Confidence: Moderate
Key Strengths:
β
Good mobile usage consistency
β
Generally reliable utility payments
β
Active community member
Improvement Actions:
π± Maintain current payment patterns β Strengthen reliability
π Upload 6 months of comprehensive evidence β Boost to T4
πΌ Provide income stability documentation β Increase confidence
β° Timeline: 3-4 months for T4 Strong Trust
trustweave/
βββ src/ # Backend source
β βββ services/ # AI agents & core services
β βββ routes/ # API endpoints
β βββ middleware/ # Security & validation
β βββ types/ # TypeScript definitions
βββ frontend/ # React frontend
β βββ components/ # UI components
β βββ services/ # API clients
β βββ types.ts # Frontend types
βββ database/ # SQL schemas (optional)
βββ postman-samples/ # API testing samples
βββ examples/ # Request/response examples
- Backend: Node.js, Express, TypeScript
- Frontend: React, TypeScript, Vite
- AI: Google Gemini 2.0 Flash
- Security: Helmet, CORS, Rate Limiting
- Validation: Zod schema validation
- Alternative credit scoring for underbanked populations
- Loan approval automation with AI-powered insights
- Risk assessment based on behavioral patterns
- Financial inclusion for emerging markets
- Digital lending platforms with behavioral analysis
- Microfinance for small business owners
- P2P lending with trust-based matching
- Credit building programs with guidance
- Financial inclusion initiatives
- Rural banking programs
- Policy development based on behavioral insights
We welcome contributions! Please see our Contributing Guidelines for details.
# Clone repository
git clone https://github.com/20Aarya05/three-point-zero-trustweave.git
# Install dependencies
npm install
cd frontend && npm install
# Start development servers
npm run dev # Backend on :3001
cd frontend && npm run dev # Frontend on :5173