SamvaadAI - Project Story Inspiration The spark for SamvaadAI came from a conversation with my uncle, a small-scale farmer in rural Maharashtra. He mentioned how he had heard about a government scheme that could have given him ₹6,000 per year, but by the time he found out about it through a local CSC operator, the application deadline had passed. "There are so many schemes," he said, "but nobody tells us which ones we actually qualify for." This hit hard. Here was someone who deserved government support, actively wanted to access it, but the system was so fragmented and complex that he couldn't navigate it on his own. We started researching and discovered a staggering reality: India has 1,000+ active welfare schemes across central and state governments, with billions of rupees in unutilized funds. The problem wasn't the availability of schemes—it was accessibility. Citizens face:
Multiple disconnected portals (MyScheme, NSP, ministry websites) Complex eligibility criteria written in legal language Information mostly in English, inaccessible to regional language speakers No guidance on which schemes they personally qualify for
300 million eligible citizens miss out on benefits they deserve—not because they don't exist, but because discovering them is impossibly complex. We decided to build SamvaadAI to bridge this gap.
What it does SamvaadAI is a voice-first conversational AI assistant that makes government scheme discovery as simple as having a conversation in your mother tongue. Here's how it transforms the citizen experience: Before SamvaadAI:
User spends 30+ minutes navigating multiple government portals Reads confusing eligibility criteria in English Still unsure which schemes they qualify for Gives up in frustration
With SamvaadAI:
User speaks naturally: "Main Maharashtra ka kisaan hoon, mere paas 2 acre zameen hai" (I'm a farmer from Maharashtra with 2 acres of land) AI understands context: Extracts profile (occupation: farmer, state: Maharashtra, land: 2 acres) Rule engine evaluates eligibility: Checks against every scheme's actual criteria Gets personalized results in 30 seconds:
PM Kisan Samman Nidhi: ✅ Eligible — ₹6,000/year Ayushman Bharat: ✅ Eligible — Free healthcare up to ₹5 lakh PM Awas Yojana: ⚠️ Partial — Need income proof Required documents, application links, next steps
Key Features:
🎤 Voice-First: Speak naturally, no typing required 🌍 Multilingual: Currently supports English, Hindi, Marathi (22 languages planned) ⚡ Instant: Results in under 30 seconds ✅ Deterministic: 100% accurate eligibility decisions using rule-based engine 📱 Accessible: Progressive Web App works on any device, optimized for low bandwidth 🔒 Privacy-First: Session-only processing, no permanent data storage
How we built it We built SamvaadAI using a hybrid intelligence architecture that combines AI for understanding with deterministic rules for decision-making. Architecture Overview Frontend Layer:
React 19.2 + Vite: Fast, modern UI framework Web Speech API: Browser-native voice recognition and synthesis Tailwind CSS: Responsive, mobile-first design Zustand: Lightweight state management Deployed on AWS Amplify with CloudFront CDN
Backend Layer:
FastAPI (Python 3.13): High-performance API framework Amazon Bedrock (Claude Sonnet/Nova): For natural language understanding Custom Profile Extractor: Regex-based + AI-enhanced profile extraction Deterministic Eligibility Engine: Rule-based evaluation of scheme criteria Template Generator: Multilingual response templates Deployed on AWS Lambda + API Gateway for serverless scalability
Data Layer:
Amazon S3: Stores scheme data in structured JSON format DynamoDB: Session management and user profile accumulation CloudWatch: Monitoring and logging
Key Technical Decisions
- Hybrid Intelligence (AI + Rules) ┌─────────────────────────────────────┐ │ User Input: "35 year farmer, MH" │ └──────────────┬──────────────────────┘ ↓ ┌──────────────────────────────────────┐ │ Profile Extraction (AI Layer) │ │ • Regex: occupation=farmer │ │ • AI Enhancement: state=Maharashtra │ │ • Accumulation: age=35 │ └──────────────┬───────────────────────┘ ↓ ┌──────────────────────────────────────┐ │ Eligibility Engine (Rules Only) │ │ • if age < 60 AND occupation == │ │ "farmer" → PM Kisan = ELIGIBLE │ │ • NO AI GUESSING │ └──────────────┬───────────────────────┘ ↓ Results Why this matters: AI is excellent at understanding natural language but can hallucinate. Eligibility decisions must be 100% accurate and auditable, so we use deterministic rules. Best of both worlds.
- Graceful Degradation
System works even if Amazon Bedrock fails Falls back to regex-based profile extraction Ensures reliability in production
- Low-Bandwidth Optimization
Client-side caching of scheme data Progressive loading Compressed responses (gzip) Minimal dependencies (PWA approach)
- Multilingual Support
Template-based response generation Language-specific prompt engineering Web Speech API supports 22+ Indian languages
Development Stack yamlFrontend:
- React 19.2, Vite, Tailwind CSS, Zustand, React Router v7
- Web Speech API for voice input/output
Backend:
- FastAPI 0.134, Python 3.13
- Amazon Bedrock (Nova Lite/Claude Sonnet)
- Pytest (82 tests, 100% pass rate)
Infrastructure:
- AWS: Lambda, API Gateway, S3, DynamoDB, Bedrock
- CloudFront CDN, CloudWatch monitoring
- AWS Amplify for frontend deployment
Challenges we ran into
- Voice Recognition Accuracy in Regional Languages Challenge: Web Speech API's accuracy for Hindi/Marathi was inconsistent (~70% in noisy environments). Solution:
Implemented confidence thresholds Added visual feedback showing transcribed text Allowed users to edit transcriptions before submission Planning to add custom speech models in future
- Handling Incomplete User Profiles Challenge: Users often provide partial information ("I'm a farmer") without specifying state, age, income. Solution:
Built a conversation manager that accumulates profile data across multiple turns Context-aware follow-up questions: "Which state are you from?" Partial eligibility results: "You might qualify for X, but I need your income to confirm"
- Scheme Data Normalization Challenge: Government scheme data is scattered across portals in inconsistent formats. Solution:
Created a structured JSON schema for scheme data Built data ingestion pipelines with validation Manual curation + verification for initial 5 schemes Planning automated scraping for scale
- Latency Optimization Challenge: Initial API response time was 3-5 seconds due to Amazon Bedrock cold starts. Solution:
Implemented parallel processing (profile extraction + scheme loading) Cached scheme data in Lambda memory Optimized DynamoDB queries with proper indexing Result: p95 latency reduced to <500ms
- Multilingual Prompt Engineering Challenge: Getting consistent, high-quality profile extraction across languages. Solution:
Language-specific system prompts for Bedrock Few-shot examples in Hindi/Marathi Validation layer to catch extraction errors Fallback to English translation when needed
- Testing Conversational Flows Challenge: Testing multi-turn conversations programmatically was complex. Solution:
Built pytest fixtures for conversation scenarios Created mock conversation histories Added regression tests for common edge cases Achieved 82 tests with 100% pass rate
Accomplishments that we're proud of
- Production-Ready Deployment We didn't just build a demo—we built a live, working application deployed at main.d1ldcuarhn106p.amplifyapp.com. Users can actually use it right now.
- Deterministic Accuracy Our eligibility engine has 100% accuracy because it uses rule-based logic, not AI guessing. Every decision is auditable and explainable.
- Hybrid Intelligence Architecture We solved the "AI for everything" trap. We use AI where it excels (language understanding) and rules where accuracy matters (decision-making). This is a production-grade approach.
- Comprehensive Testing 82 automated tests with 100% pass rate. We tested:
Profile extraction across languages Eligibility evaluation for all schemes Error handling and edge cases API performance and reliability
- Real-World Impact Potential Time reduction: 30 minutes → 30 seconds (60x faster) If we scale to just 1% of eligible citizens (3 million users):
1.5 million hours saved collectively Millions in unutilized benefits discovered Reduced dependency on intermediaries
- Scalable, Cost-Effective Architecture
Serverless = pay only for what we use S3 + DynamoDB = pennies per 1000 users Lambda + API Gateway = auto-scaling Estimated cost: <$0.01 per user interaction
What we learned Technical Learnings
- Voice-First UX is Hard
Designing for voice requires different mental models than GUI Visual feedback is crucial even in voice-first apps Error recovery (misheard words) needs careful UX design
- AWS Bedrock's Power and Limitations
Power: Handles multilingual NLP beautifully, no model training required Limitations: Cold starts, cost at scale, occasional hallucinations Learning: Always have fallbacks for production systems
- State Management in Conversational AI
Accumulating context across turns is non-trivial Need to handle contradictions ("I'm 30" → "Actually I'm 35") Session management is critical
- Rule Engines are Underrated
Everyone wants to use AI for everything Sometimes old-school if/else is the right tool Hybrid approaches > pure AI or pure rules
Domain Learnings
- Government Scheme Complexity is Real
Eligibility criteria have 5-10 conditions per scheme Criteria change frequently (policy updates) No standardized format across government
- Digital Divide is Not Just About Access
It's about literacy, language, and interface complexity A farmer with a smartphone ≠ able to use government portals Voice-first is a game-changer for inclusion
- Trust is Everything
Users need to see exactly why they're eligible/ineligible Transparency beats black-box AI Deterministic = trustworthy
Team Learnings
- Scope Management
Started wanting to build 1000 schemes → focused on 5 excellent ones Better to have 5 schemes working perfectly than 100 half-broken
- User-Centric Design
We tested with actual farmers in our network Their feedback shaped the voice-first approach Real users > our assumptions
- Documentation Matters
Comprehensive README helped team alignment Clear architecture docs saved debugging time Good docs = good project
What's next for SamvaadAI We have an ambitious roadmap focused on scale, coverage, and accessibility. Phase 1: Expand Language & Scheme Coverage (3 months)
Languages: Add Tamil, Telugu, Bengali, Gujarati, Kannada (total: 8 languages) Schemes: Expand from 5 to 50 schemes (top central + Maharashtra state schemes) Accuracy: Achieve >90% voice recognition accuracy across all languages
Phase 2: Multi-Channel Access (6 months)
WhatsApp Bot: Reach feature phone users (600M+ WhatsApp users in India) IVR System: Phone-based access (toll-free helpline) SMS Interface: For users with basic phones Mobile App: iOS + Android native apps
Phase 3: Intelligence Enhancement (6-12 months)
Automatic Form Filling: Pre-fill application forms based on profile Document Verification: Upload Aadhaar/income certificates for instant verification Application Tracking: "Where is my application?" status updates Smart Recommendations: Life event-based suggestions ("You just had a baby → here are child welfare schemes")
Phase 4: Full National Scale (12+ months)
1000+ Schemes: All central + all state schemes Real-Time Updates: Integration with government APIs for live scheme data Offline Mode: Download scheme info for offline access Integration with Portals: Direct submission to MyScheme, NSP, etc.
Phase 5: Ecosystem Building (18+ months)
Community Features: Success stories, Q&A forums CSC Integration: Partner with Common Service Centers Government Partnership: Work with Digital India, MyGov Impact Metrics: Track actual scheme uptake, fund utilization
Moonshot Vision By 2028: SamvaadAI becomes the default interface between 300M+ Indian citizens and government welfare schemes, saving billions in unutilized funds and transforming lives through accessible, inclusive technology.
Why We'll Win
- We're solving a real problem: 300M+ citizens need this, today.
- We have a working product: Not a concept—deployed and usable.
- We have the right architecture: Scalable, cost-effective, reliable.
- We're thinking long-term: Not a hackathon project—a mission to empower 1.4B people.
- We deeply care: This isn't about awards. It's about helping people like my uncle access what they deserve.
Built With
- amazon
- amazon-web-services
- bedrock
- cloudfront
- fastapi
- natural-language-processing
- pydantic
- react
- tailwind
- uvicorn
- vite
- zustand
Log in or sign up for Devpost to join the conversation.