Inspiration

What it does

How we built it

Challenges we ran into

Accomplishments that we're proud of

What we learned

What's next for Patrata

Inspiration

India runs hundreds of welfare schemes, and a large share of the people they are meant for never apply. The rules sit in long PDFs. To find out what fits, a person must hand income, caste and family details to an agent, a cyber-café or an app. We wanted a site that answers the question without taking the data.

What it does

Patrata asks up to 24 simple questions and shows, live, which of 23 central schemes a person likely qualifies for, which need one more answer, and which do not fit. Each result shows every condition as met, not met or not known yet, the documents to keep ready, where to apply and the official page. A plan merges the documents of the chosen schemes into one checklist.

An assistant runs in the browser on the visitor's own AI provider. It can fill in answers the visitor types, point to the questions that would decide the most schemes, explain a verdict and build the plan. It cannot change a verdict: verdicts come from code.

State schemes live on a second site, Rajya Desk, built from the same kit. When the visitor asks about state schemes, Patrata's agent asks Rajya Desk's agent, after the visitor agrees. Rajya Desk's rules run in the visitor's browser.

How we built it

  • Standard web technology only: static HTML, CSS and ES modules. No server, no build dependencies.
  • Each scheme is a record in schemes.json: benefit, rules, documents, how to apply, official source, review date.
  • A rule engine with three outcomes decides. A missing answer gives "needs more answers", never a guess.
  • The site follows the Open Agentic Web spec: agent-manifest.json, a declarative network JSON built from HOCON, links.json, the action bridge and the browser runtime from the spec's skill, unchanged.
  • The page's form and the agents' website_* tools call the same eight operations. One is irreversible (erase my details) and needs the visitor's confirmation.
  • Other sites get three stateless reads through the bridge. Peers are a closed list.
  • 16 Node tests cover the engine, the data, every action, privacy of the state summary and the built networks.

Privacy

There is no server. Answers are saved only in the browser. The site never asks for a name, an ID number, a phone number or an address. The assistant's state tool returns ages, incomes and land sizes as ranges. The assistant does send the visitor's messages and tool results to the AI provider the visitor chose; the page says so.

Who it is for

Sunita sells vegetables from a cart in Pune. She likely qualifies for six central schemes, among them a free gas connection, a working-capital loan and hospital cover. She does not know, and the person who offers to "check for her" wants her Aadhaar number and a fee. Sunita, Ramesh the farmer and Meena the new mother are the three sample people on the page: one click fills in their answers so a judge sees the whole product in ten seconds.

How it uses the Open Agentic Web

  • Declarative network. patrata.hocon defines a front agent and an application planner; the build resolves it to patrata.network.json, validated before any model call.
  • Actions, not scraping. Eight website_* actions with JSON schemas; the page's own buttons call the same code.
  • Peer network with consent. Rajya Desk is a separate site with its own manifest and network. The visitor's browser asks before the first call. The peer list is closed.
  • Bring your own model. OpenRouter, Otari or a pasted key. Nothing of ours sits between the visitor and the model.
  • Deny by default. The bridge shares three stateless reads. A peer cannot read or change the visitor's answers.
  • Fails closed. Invalid rules stop the build. Invalid answers are refused with a reason. Erasing needs a confirmation.

Design

One identity across both desks: editorial serif, the Devanagari wordmark, a dark stage and warm paper. The scheme wheel is the centre of the page: one petal for each scheme, amber while open, green when likely, dim when ruled out. Cards glide between groups when a verdict changes.

The sound is tuned to Raag Bhupali (Sa Re Ga Pa Dha). Each answer plays the next note of the scale, so filling in the form plays a short melody, and each scheme gained adds a rising phrase. All tones are synthesised in the browser, with no audio files, and one switch turns them off. All motion stops for visitors who ask for reduced motion.

Every verdict carries the label "Decided by open rules, not by AI". The plan goes to WhatsApp in one tap, as most families in India already share forms and lists there. The message holds the scheme names, official pages and documents, and none of the visitor's answers.

What is live and what is not

  • Live: both desks, all 32 rule sets, the sample people, the plan, the WhatsApp share, print, erase, the open manifests and networks, and the assistant on the visitor's own AI key.
  • Not done yet: the rules cover 23 central and 9 state schemes, not all of them. Rule texts were reviewed against official pages in November 2026 and will drift as schemes change. The assistant's quality depends on the model the visitor picks.
  • Not done by design: no account, no server, no ID numbers, no application filing.

Challenges

Keeping the model out of the decision. Splitting "you" from "your family" in the rules. Making one kit serve several desks. Writing agent instructions short enough for small free models.

Accomplishments

  • A verdict that is the same every time, with every condition shown.
  • No server, no build dependencies, no personal identifiers.
  • Two independent sites from one kit, talking through the open protocol.
  • 16 automated tests, and a build that refuses bad rule data.

What we learned

Agents are most useful around a decision, not inside it: collecting answers, choosing the next question, explaining and planning. Declarative rules make that split easy to verify. Consent is clearer when the page shows what leaves the browser, in ranges, before it leaves.

What's next

More states and more schemes, with departments and NGOs running their own desks. Hindi and other Indian languages in the page. A shared field vocabulary so any desk's rules work with any other desk's answers.

Built With

Share this project:

Updates

Submission history