<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Advik Sharma</title>
    <description>The latest articles on DEV Community by Advik Sharma (@advik_sharma917).</description>
    <link>https://dev.to/advik_sharma917</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3906793%2F0b83050f-f276-40f5-aaa1-6ec56a5a37f1.jpg</url>
      <title>DEV Community: Advik Sharma</title>
      <link>https://dev.to/advik_sharma917</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/advik_sharma917"/>
    <language>en</language>
    <item>
      <title>Building VoteWise India: An AI-Powered Election Process Education Simulator</title>
      <dc:creator>Advik Sharma</dc:creator>
      <pubDate>Thu, 30 Apr 2026 23:01:55 +0000</pubDate>
      <link>https://dev.to/advik_sharma917/building-votewise-india-an-ai-powered-election-process-education-simulator-2njb</link>
      <guid>https://dev.to/advik_sharma917/building-votewise-india-an-ai-powered-election-process-education-simulator-2njb</guid>
      <description>&lt;h1&gt;
  
  
  Building VoteWise India for PromptWars / Build with AI 2026
&lt;/h1&gt;

&lt;p&gt;For PromptWars / Build with AI 2026, I built VoteWise India, a non-partisan election process education app for students and first-time voters. The goal was to make election learning feel interactive instead of turning it into a long page of civic studies notes.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;Many young learners understand elections mainly as the moment of voting. But an election is a full process: eligibility, registration, electoral rolls, candidate nomination, campaigning, polling day, EVM/VVPAT, counting, and results. If students only learn the final step, the rest can feel confusing or intimidating.&lt;/p&gt;

&lt;p&gt;VoteWise India tries to make that process easier to understand through guided interaction.&lt;/p&gt;

&lt;p&gt;I later reorganized the prototype from one long page into lightweight app-style views: Home, Learn, Simulator, AI Guide, Glossary, Quiz, Teacher Mode, and Settings. It still uses one HTML entry and no framework, but hash routes make it feel easier to navigate.&lt;/p&gt;

&lt;p&gt;For judging, I added a 90-second tour on the Home view, a safe Google Services Status card, and a PromptWars evaluation card that maps the project directly to code quality, security, efficiency, testing, accessibility, and Google services.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Idea
&lt;/h2&gt;

&lt;p&gt;The app teaches by doing:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A journey map explains each election stage.&lt;/li&gt;
&lt;li&gt;A before/during/after timeline gives learners a quick mental model.&lt;/li&gt;
&lt;li&gt;A personalized pathway adapts learning for different users.&lt;/li&gt;
&lt;li&gt;Scenario cards help learners pick a route based on their situation.&lt;/li&gt;
&lt;li&gt;A searchable glossary and term tooltips explain hard words like Electoral Roll, VVPAT, NOTA, EVM, Constituency, and Model Code of Conduct.&lt;/li&gt;
&lt;li&gt;FAQ items answer common first-time voter questions.&lt;/li&gt;
&lt;li&gt;A misinformation check mini-game helps users practice spotting false claims.&lt;/li&gt;
&lt;li&gt;A mock EVM/VVPAT simulator lets users experience a fictional vote flow.&lt;/li&gt;
&lt;li&gt;A Gemini AI Election Guide answers process questions.&lt;/li&gt;
&lt;li&gt;Myth vs fact cards correct common misunderstandings.&lt;/li&gt;
&lt;li&gt;A VoteReady certificate quiz gives a score, weak topics, explanations, and next steps.&lt;/li&gt;
&lt;li&gt;Teacher Mode gives a 5-minute activity, discussion questions, key terms, quick quiz idea, and answer key.&lt;/li&gt;
&lt;li&gt;Accessibility settings include bigger text, high contrast, simple English, reduce motion, reading focus, theme shortcut, and reset controls.&lt;/li&gt;
&lt;li&gt;Optional Firestore support can store anonymous quiz outcomes when deployed with Google Cloud.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The design goal was a polished civic-tech feel: clean, modern, serious, and approachable.&lt;/p&gt;

&lt;h2&gt;
  
  
  AI and Prompt Strategy
&lt;/h2&gt;

&lt;p&gt;The AI guide uses Gemini only for election process education. The browser never sees the API key. Questions go to a Node server route, where they are validated before Gemini is called.&lt;/p&gt;

&lt;p&gt;The Gemini instruction is intentionally narrow:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Explain the Indian election process.&lt;/li&gt;
&lt;li&gt;Stay factual and beginner-friendly.&lt;/li&gt;
&lt;li&gt;Do not recommend, rank, support, or oppose political parties or candidates.&lt;/li&gt;
&lt;li&gt;Do not use real party or candidate names.&lt;/li&gt;
&lt;li&gt;Refuse political persuasion requests and redirect to process education.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This makes the AI feature part of the learning system instead of a chatbot pasted onto a page.&lt;/p&gt;

&lt;h2&gt;
  
  
  Safety Guardrails
&lt;/h2&gt;

&lt;p&gt;VoteWise India is completely non-partisan. It does not use real parties or real candidates in simulations. The mock voting simulator uses only Candidate A, Candidate B, Candidate C, and NOTA.&lt;/p&gt;

&lt;p&gt;The AI guide blocks political recommendation questions before sending them to Gemini. For example, if someone asks who to vote for, the app refuses politely and offers to explain how voting works or how to evaluate information safely.&lt;/p&gt;

&lt;p&gt;The app also includes a clear disclaimer: it is educational, non-partisan, and not an official Election Commission website.&lt;/p&gt;

&lt;h2&gt;
  
  
  Accessibility
&lt;/h2&gt;

&lt;p&gt;Accessibility was treated as part of the actual product, not a footer claim. The app includes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Keyboard-friendly controls.&lt;/li&gt;
&lt;li&gt;Visible focus states.&lt;/li&gt;
&lt;li&gt;Semantic headings.&lt;/li&gt;
&lt;li&gt;Skip link.&lt;/li&gt;
&lt;li&gt;Screen-reader-friendly status messages.&lt;/li&gt;
&lt;li&gt;Bigger text mode.&lt;/li&gt;
&lt;li&gt;High contrast mode.&lt;/li&gt;
&lt;li&gt;Simple English mode.&lt;/li&gt;
&lt;li&gt;Reduce motion mode.&lt;/li&gt;
&lt;li&gt;Dark and light themes.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These features help make civic learning more usable for more people.&lt;/p&gt;

&lt;h2&gt;
  
  
  Testing
&lt;/h2&gt;

&lt;p&gt;I added focused tests for the areas most likely to matter in a hackathon demo:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Quiz scoring.&lt;/li&gt;
&lt;li&gt;VoteReady label ranges.&lt;/li&gt;
&lt;li&gt;Weak topic detection.&lt;/li&gt;
&lt;li&gt;Glossary search.&lt;/li&gt;
&lt;li&gt;Misinformation answer checking.&lt;/li&gt;
&lt;li&gt;VoteReady certificate defaults.&lt;/li&gt;
&lt;li&gt;Hash route resolution for app-style views.&lt;/li&gt;
&lt;li&gt;Political recommendation blocking.&lt;/li&gt;
&lt;li&gt;VVPAT slip rendering after a simulated vote.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The tests use Node's built-in test runner, which keeps the project lightweight and easy to run.&lt;/p&gt;

&lt;h2&gt;
  
  
  Google Services
&lt;/h2&gt;

&lt;p&gt;The project uses Gemini for the AI Election Guide. It is designed so the API key stays on the server through environment variables. The project can be deployed to Google Cloud Run or Firebase App Hosting, and the README explains how to configure Gemini securely.&lt;/p&gt;

&lt;p&gt;I also added deployment-ready Google service support without pretending it is already live:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Firebase Hosting can serve the static frontend.&lt;/li&gt;
&lt;li&gt;Firebase Hosting can rewrite &lt;code&gt;/api/**&lt;/code&gt; requests to Cloud Run.&lt;/li&gt;
&lt;li&gt;Cloud Run can run the Node backend.&lt;/li&gt;
&lt;li&gt;Secret Manager can provide &lt;code&gt;GEMINI_API_KEY&lt;/code&gt; in production.&lt;/li&gt;
&lt;li&gt;Firestore can store anonymous quiz-result metadata if enabled.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What I Learned
&lt;/h2&gt;

&lt;p&gt;The biggest lesson was that civic education apps need both clarity and restraint. It is easy to add more facts, more cards, and more UI. It is harder to make the experience calm enough that a first-time voter can understand what to do next.&lt;/p&gt;

&lt;p&gt;I also learned that AI safety is not only about one prompt. The app needs layered protection: UI messaging, local validation, server-side blocking, model instructions, and clear disclaimers.&lt;/p&gt;

&lt;h2&gt;
  
  
  Future Improvements
&lt;/h2&gt;

&lt;p&gt;Future versions could add:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Multi-language support.&lt;/li&gt;
&lt;li&gt;More classroom activities.&lt;/li&gt;
&lt;li&gt;Teacher dashboard mode.&lt;/li&gt;
&lt;li&gt;Offline-first content.&lt;/li&gt;
&lt;li&gt;A Firebase database for anonymous quiz analytics.&lt;/li&gt;
&lt;li&gt;Voice narration for accessibility.&lt;/li&gt;
&lt;li&gt;More detailed process modules with citations to official election education material.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;VoteWise India is a small build, but the mission is important: help people understand the election process without pushing them toward any political choice.&lt;/p&gt;

&lt;p&gt;Live app: &lt;a href="https://votewise-india-api-366445017721.us-central1.run.app" rel="noopener noreferrer"&gt;https://votewise-india-api-366445017721.us-central1.run.app&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/AdvikSharma917/votewise-india" rel="noopener noreferrer"&gt;https://github.com/AdvikSharma917/votewise-india&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>googlecloud</category>
      <category>hackathon</category>
      <category>civictech</category>
    </item>
  </channel>
</rss>
