Web application

Web app for exploring possible benefits

A person describes their situation and receives an overview of possible benefits. AI interprets the text; separate code handles the calculations. The app does not submit applications or make official eligibility decisions.

← Back to projects

Project scope

From a conversation to a working web application.

The goal was to let a person describe their circumstances in ordinary language and receive an understandable overview of possible benefits. That required more than a chat window: input validation, rule-based calculations, explanations, payments and access control.

Implemented code covered intake, results, a paid personalised roadmap, a facility directory and an admin interface. Behind these sat a database, payment-event processing and reconciliation of access with payment status. Infrastructure existed for an encrypted document vault, but document upload was out of scope. The application does not file government applications or make an official eligibility determination.

How the work happens

AI reads the input. Code does the calculation.

6 steps
WorkflowWhen something needs attention
  1. 01Describe the situation

    A person explains their situation in free text.

  2. 02Extract the needed fields

    Personal-data scrubbing and AI extraction.

  3. 03Validate the input

    Check structured fields before calculating.

  4. 04Code calculates

    The rules engine uses the checked fields.

  5. 05Recheck headline amounts

    Code recomputes the headline amounts.

  6. 06Explain the next step

    Results and, with access, a personal roadmap.

Simplified workflow: AI interprets the text; calculation logic stays separate.

What did the workflow do?

  1. Describe the situation

    The user writes about their circumstances. Free text is not yet a collection of verified facts.

  2. AI extracts fields

    AI converts the narrative into structured fields. Personal-data scrubbing and field validation check the input; these safeguards are not infallible.

  3. Code calculates

    The rules engine uses structured fields and defined rules. AI does not compute or alter monetary amounts.

  4. Check before delivery

    Code recomputes headline amounts. Unclear or complex situations are routed to a person rather than filled with an invented number.

  5. Results and access

    The user receives an explanation and, with the appropriate entitlement, a personalised roadmap. Payment handling and preservation of paid access are separate engineering tasks.

What failed, and what changed?

A silent substitute can be worse than a visible error.

A broken API key in the test environment silently activated a simple fallback extractor that did not understand negation. The fix separated development mock data from the real workflow and made extraction failure visible to the user.

Payment documentation is not a real event payload.

The payment handler assumed incorrect field names, and cancellation could remove already-paid access. The fix used the actual event shape and retained access through the paid period.

The chat window was only the beginning.

Alongside input interpretation, the product needed a results view, payment handling and access control. A useful application had to connect those parts rather than stop at an AI response.

My role and the AI contribution

I directed product scope, sources and priorities, and decided what was ready to release. AI agents I directed split planning, implementation and review responsibilities. This was not an application completed in a single conversation.

Where did the data go?

AI extraction uses an external model service. Payment and encryption services also have their own data boundaries. Self-hosting does not mean all processing occurs on the same server.

Description → calculationTwo different jobs, a clear division of work
AI helps extract data from the description. Amounts and access rights stay in inspectable code.

Sources: project source review and my operating experience. Examples are illustrative, not customer data.

The problem

The application has to understand freely written input and run a precise calculation on it. Two different risks sit side by side: the interpretation can be plausible but wrong, and the calculation still has to be repeatable.

What was built

  • A web application where AI interprets the input and converts it into a checkable structure. Deterministic code, not the model, does the calculation, so the same input always gives the same result.
  • Payments and access go through separate checks, and every release is a human decision. The split of duties is deliberate: AI helps understand, the code answers for the numbers.

My role and the AI role

My role

I defined the product and its direction, and I did the final quality assurance before every release.

AI role

AI assisted with writing and reviewing the code. Final responsibility for the result stayed with me.

A selected lesson

One fallback returned a plausible but incorrect interpreted input. The source report describes that explicit degraded-state handling was added afterwards and the fallback was narrowed. A plausible answer is not proof that the interpretation is right.

Next step

Want to build something similar?

I can help you build with AI while you keep control of the result.

Get in touch