Technical Blog - Loading...
React.js, Next.js & MERN Stack Tutorials
React.js, Next.js & MERN Stack Tutorials
Web Development
March 7, 2025
SHARE
When the Tirunelveli district administration launched the GovTechThon challenge, we saw an opportunity to solve a fundamental problem in public service delivery: the accessibility gap between government schemes and eligible citizens. In this article, I'll walk through our journey of creating MakkalNalamBot, India's first WhatsApp-based virtual assistant for government schemes, and share the technical challenges we overcame along the way.
Government schemes are designed to support citizens, but navigating the bureaucracy to find relevant programs remains a significant hurdle. Many individuals, particularly in rural areas, spend countless hours standing in queues at government offices just to learn which programs they qualify for. This inefficiency affects both citizens and administrators.
During my internship at Tirunelveli Collectorate, I witnessed this challenge firsthand. Working across multiple government departments, I realized that a technological solution could bridge this gap effectively.
Our team of three—RS Siva Subramanian, T Venkadesh, and myself (R Ajithkumar)—envisioned a conversational interface that could guide citizens to relevant government schemes based on their demographic profile, without compromising privacy or requiring technical expertise.
Key requirements included:
#### The Technology Stack
We built MakkalNalamBot using:
#### Development Journey
Our project evolved through several stages:
#### Technical Challenges and Solutions
Challenge 1: Structuring Diverse Scheme Data
We needed to organize varied scheme information in a standardized format that could be easily queried.
Solution: We created a hierarchical JSON structure with schemes categorized by department, eligibility criteria, and benefits. This made the data easily searchable and extensible:
javascript
{
"schemes": [
{
"id": "scheme-001",
"name": "Pre-matric Scholarship",
"department": "Adi Dravidar and Tribal Welfare",
"eligibility": {
"gender": ["male", "female"],
"age": { "min": 6, "max": 18 },
"income": { "max": 200000 }
},
"benefits": "Financial assistance for education",
"contactPoint": {
"office": "District Welfare Officer",
"phone": "04622-XXXXXX"
}
}
]
}
Challenge 2: Privacy Concerns
We needed to provide personalized recommendations without storing personal data.
Solution: We implemented a stateless architecture where user inputs are processed in-session without persistence. No Aadhaar or personal identifiers are stored, and previous interactions are automatically purged after completion.
Challenge 3: WhatsApp Business API Integration
Working with WhatsApp Business API presented unique challenges compared to Telegram.
Solution: We developed middleware that handled message formatting, interactive buttons, and session management specific to WhatsApp's requirements. This included:
javascript
// Sample code for handling WhatsApp interactive messages
function createSchemeSelectionMessage(schemes) {
const buttons = schemes.slice(0, 3).map(scheme => ({
type: "reply",
reply: {
id: scheme.id,
title: scheme.name.substring(0, 20)
}
}));
return {
type: "interactive",
interactive: {
type: "button",
body: {
text: "You may be eligible for these schemes:"
},
action: {
buttons
}
}
};
}
Challenge 4: Language Localization
Supporting Tamil was essential for reaching the target audience.
Solution: We implemented a translation layer that mapped all user interface elements and scheme information to Tamil. This was crucial for ensuring accessibility for non-English speakers.
Our MakkalNalamBot won first place among 500+ teams at GovTechThon, earning us a ₹1 lakh prize and official recognition from the Tamil Nadu IT Minister. More importantly, the project was adopted by the district administration and is being scaled to include more schemes.
Key metrics:
We're actively working on several enhancements:
MakkalNalamBot demonstrates how thoughtful application of technology can transform public service delivery. By leveraging familiar platforms like WhatsApp, we've created a solution that meets citizens where they are, eliminating barriers to accessing vital government programs.
The project exemplifies how modern development practices and accessible technologies can drive meaningful social impact. As we continue developing this platform, our vision is to create a model that can be replicated across states and eventually nationwide, ensuring every citizen can easily access the government support they need and deserve.
About the Author: R Ajithkumar is a software developer who interned at Tirunelveli Collectorate and was instrumental in data collection and technical development of MakkalNalamBot. He specializes in conversational interfaces and public service automation.
No comments yet.
Give a star rating and let me know your impressions.