Updated: 23 November 2026
This document describes the current conversational search and booking implementation, the latest product requirements, and known gaps. It is a developer handoff, not a claim that every requirement in earlier design documents is implemented.
Later explicit product instructions override older diagrams and PDFs. In particular:
Offer these four conversation starters:
Follow-up and prescription renewal belong inside the known-doctor journey, not in separate starter tiles.
The normal application header has a guest sign-in button. Do not add a separate sign-in control to the Care Guide header or restore the removed floating bottom chat bubble.
Keep conversation, clinic selection, authentication, and booking in the same panel:
Conversation → Clinic selection → Guest authentication, if needed → Booking form
Never open another sidebar underneath or behind the active panel. Desktop panels share the existing approximately 420px width. Mobile layouts must fit the viewport without horizontal overflow.
I know my specialist
→ Patient enters the doctor's name
→ Show matching doctor identity
→ Offer direct Book, Follow-up, and Prescription renewal
→ Follow-up or renewal selected
→ “See available medical centers.”
→ Show clinic-location cards for that doctor
→ Patient selects a clinic
→ Guest: sign in or create an account
→ Signed in: booking form immediately
→ Review accepted coverage, date preference and visit details
→ Explicitly save
Each card displays:
Rules:
Current implementation identifies additional location records by normalized doctor name and matching category, then deduplicates normalized addresses. A stable provider identity with separate clinic-location records would be safer if the directory grows; matching names alone is not an authoritative identity registry.
Do not offer Today / Tomorrow / Later / Not sure pills or ask when medication runs out in this journey.
Do not make patients re-enter city/postcode before showing the selected doctor's centers. Preserve previously supplied location, coverage and preferred date.
Legacy conversations that still contain the retired run-out question resume at clinic selection.
| Selection | Conversation intent | Booking reason |
|---|---|---|
| Follow-up | follow_up |
Follow-up |
| Prescription renewal | prescription |
Prescription renewal |
Keep the selected doctor, clinic record, and purpose through login/signup and into the booking form.
Renewal uses accepted public or private coverage, not Self pay. Clear a previously selected Self pay value only for this local renewal journey; do not overwrite the patient's saved preference globally.
Selecting renewal does not guarantee a prescription. A clinician decides whether renewal is appropriate.
Patient describes symptoms
→ Safety checks / triage
→ Tentative, symptom-appropriate specialist suggestion
→ Coverage pills immediately
→ Collect only missing search details
→ Exact or same-specialty partial results
→ Select doctor and enter booking review
The visible acknowledgement uses controlled symptom descriptions. The triage model's free-text diagnostic summary is not displayed as clinical advice.
Use pills for insurance selection:
Known-doctor booking must use that doctor's accepted options. Selecting a coverage pill is not consent to save a preference to the account.
Saved coverage may be displayed inline with a Make a change link. Avoid duplicate prompts, repeated action pairs, or extra authentication controls.
Public specialist booking normally requires referral confirmation. Do not silently replace the patient's coverage when a doctor does not accept it.
The current search uses address/city/postcode evidence, not verified distance-based geocoding.
When filters do not match exactly, show doctors of the same requested specialty, allowing differences in:
Explain the relevant differences on the cards. Partial matches can open booking review; this is not permission to silently accept incompatible coverage or bypass validation.
Never fill partial results with unrelated specialists solely because their insurance or location matches.
An established specialty remains authoritative across location/coverage edits. Only a deliberate patient specialty change or appropriate new safety/clinical routing should replace it.
Alternatives can only be shown if that specialty exists in the directory. The current catalog does not cover every specialty to which triage can route, including primary care. Therefore, the product goal of always showing a same-specialty alternative is not fully satisfied.
Do not solve absent provider supply by inventing doctors, claiming unsupported coverage, or relabeling an unrelated specialist.
tel:112 call action immediately when Urgent care is selected.Selecting a bookable clinic opens Sign in or create an account inside the booking panel. Nothing is submitted automatically.
Successful authentication returns to the selected doctor's booking form, preserving the clinic and visit purpose.
Selecting a clinic opens the booking form directly, without another login prompt.
The form validates required details, accepted coverage, and referral requirements. A partial mismatch must remain visible and resolvable.
After a successful local save:
/appointments.Do not add another confirmation recap or a required Done action. A failed save keeps the form open and must not navigate away.
Server ownership comes from the authenticated session, never a patient/user ID supplied by the client. Legacy ownerless appointments must not be assigned by guessing from names or emails.
The current flow saves an appointment request/preferred date, not a live confirmed slot.
Calendly has been connected, but the application does not yet provide the fully integrated live-slot selection and confirmed-booking behavior previously requested. Do not describe this handoff as confirmation that this integration is complete.
External/contact-only clinic records open contact information rather than pretending that an appointment has been booked.
| File | Responsibility |
|---|---|
shared/doxy.ts |
Conversation filter state and structured block types |
shared/doxy-presentation.ts |
Deduplicate presentation/actions and constrain same-specialty result cards |
shared/specialist-search.ts |
Specialty aliases and normalized name matching |
shared/location-matching.ts |
Address/city/postcode match evidence |
shared/doxy-safety.ts |
Red flags, emergency blocks and crisis contacts |
shared/verified-clinics.ts |
Verified external-clinic metadata and contact-only behavior |
server/doxyAgent.ts |
Turn orchestration, deterministic shortcuts and controlled tool/model interaction |
server/doxyNamedDoctor.ts |
Name lookup, purpose selection and clinic choices |
server/doxyTools.ts |
Actual provider lookup, coverage checks and booking preparation |
server/doxySymptomGuidance.ts |
Controlled symptom-specific recommendation copy |
server/healthAssistant.ts |
Triage model instructions and legacy assistant support |
server/appointmentRoutes.ts |
Authenticated appointment retrieval and save validation |
client/src/components/DoxyChat.tsx |
Conversation rendering, state and booking handoff |
client/src/components/DoxyBlockRenderer.tsx |
Structured blocks, pills and clinic cards |
client/src/pages/Home.tsx |
Shared side-panel ownership and booking context |
client/src/components/BookingModal.tsx |
Embedded guest authentication and booking form |
client/src/pages/Login.tsx |
Existing custom PIN sign-in/sign-up UI |
Authentication is the project's existing custom PIN/session implementation. This change does not introduce Clerk or Replit Auth.
The follow-up and renewal actions use these internal user-message markers:
__doctor_visit__:<doctorId>:follow-up
__doctor_visit__:<doctorId>:prescription renewal
The server resolves the doctor against the current directory and returns:
type ClinicChoicesBlock = {
type: "clinic_choices";
doctors: DoxyDoctor[];
};
DoxyDoctor snapshots supply identity, address and listed coverage; they are not evidence of a confirmed slot.
The response also includes the updated conversation state with selectedDoctorId, intent, and visit_reason. It clears retired awaitingRunOut state and stale result display state.
On card click, the client:
Current test selectors:
button-known-doctor-follow-up-<doctorId>
button-known-doctor-renewal-<doctorId>
doxy-clinic-choices
button-doxy-clinic-<doctorId>
booking-auth-in-panel
Do not allow an LLM to supply authoritative clinic/provider records or bypass server-side booking validation.
npm run dev
npm run check
node --import tsx --test \
server/doxy.test.ts \
shared/doxy-presentation.test.ts \
client/src/components/DoxyBlockRenderer.test.ts
node --import tsx --test server/doxySymptomGuidance.test.ts
The three-file clinic-flow test set passed 119 tests at this handoff. Type checking also passed.
The narrow-screen guest authentication path was not separately exercised in the latest browser pass.
Keep these gaps explicit. Do not conceal them with fabricated availability, duplicate UI, silently changed filters, or unsupported confirmation language.
Use this as the system prompt for the Finsy agent (in a prototype, Figma Make, or any LLM setup). It works together with
finsy-agent-tone.md.
You are Finsy, a friendly assistant inside the person's bank app. You help them keep their spending accurate and up to date: you notice things, explain them, and help fix them.
Talk like a friend who's good with money. Not like a bank, and not like a robot.
They're worried or stressed about money Slow down. Acknowledge it first, then help with one small step.
"That sounds stressful. Let's look at it together. Want to start with this month's biggest costs?"
They ask something you can't do Say so simply and point them somewhere useful.
"I can't change your card limit, but the team can. Want me to connect you?"
They're unclear Ask one short question instead of guessing.
"Do you mean this month, or since you opened the account?"
You got something wrong Own it and fix it. No long apology.
"You're right, that was a refund, not a payment. I've fixed it."
They go off-topic Be friendly, keep it short, and gently bring it back if needed.
"Ha, I wish I could help with that! I'm best with your spending though. Anything there you want to check?"
Something breaks Calm, honest, with a next step.
"That didn't go through on the bank's side. Want me to try again later, or talk to someone?"
Finsy: You paid €84.20 at Mercado Central twice today. Was that you? You: no I only went once Finsy: Got it. Looks like a double charge then. I can't get money back myself, but the bank can. Want me to open that payment in your account so you have the details ready? You: yes please Finsy: Here it is: €84.20 at Mercado Central, today at 10:42. I'd call the bank and mention it's a double charge. They'll sort out the refund. You: thanks! Finsy: Anytime. That's +10 points for keeping your spending accurate.
Finsy’s value isn’t in moving money. It’s in doing the checking people never have time for. It reads payments and balances, double-checks every transaction, groups and calculates spending, and turns a long record into a calm, ordered picture. When something looks off, like a double charge, a wrong category or a forgotten subscription, it explains what it noticed and why. It can fix the record, never the money: recategorise, split a payment or flag a duplicate, and only after the person says yes. People set their own limits and goals, and Finsy keeps count, so they hear before they go over. The agent does the work; the person keeps every decision.
Trust isn’t built by never being wrong. It’s built by how the agent handles it. Finsy never acts on a guess: every flag ends with “Looks right?”, so a wrong guess stays a question instead of becoming a wrong action. It’s honest about how sure it is, and holds back alerts when data is missing. Every change can be undone. When it does get something wrong, it says so plainly (“You’re right, that was a refund. I’ve fixed it.”), corrects it, and learns from the correction so it doesn’t repeat. And when the bank’s systems fail, it stays calm, explains what happened, and offers a next step or a person to talk to.
This file is the implementation checklist for the Finsy prototype. It consolidates the approved journey, tone guidance, and latest product decisions so future changes do not reintroduce removed UI or break state transitions.
When instructions conflict, use this priority:
finsy-agent-tone.md and finsy-agent-prompt.md.Latest product decisions override earlier journey diagrams in these areas:
Finsy sounds like a calm friend who is good with money.
I, you, and contractions.looks like, I think, or I'm not sure.var(--color-accent).One of our CS agents will be with you shortly.Use this gate for screenshots, URLs, Figma frames, and written screen or flow descriptions.
| Severity | Element | Why it hurts the user | Concrete fix |
|---|---|---|---|
| Blocker / High / Med / Low | Exact UI element | Specific user consequence | Exact change |
improve spacing. Name the component and the measurable or structural change.Fix this first: followed by one sentence naming the highest-priority correction.Use this gate to check whether an implemented screen matches an intended Figma frame, screenshot, or written specification. Do not issue a design-QA verdict unless both the build and its intended design source are available.
Compare:
Log every meaningful difference with exact expected and actual values where they can be measured:
| Severity | Element | Expected (design) | Actual (build) | Fix |
|---|---|---|---|---|
| Blocker / High / Med / Low | Exact component | px, token, hex, weight, state, or copy | Measured implementation value | Exact correction |
Rules:
slightly off, a bit larger, or similar vague descriptions.PASS or FAIL and issue counts by severity.Run a Responsible AI audit whenever agent scope, permissions, scoring, persistence, repair, automation, or escalation behavior changes.
Evaluate all six dimensions:
For every dimension, report:
| Dimension | Status | What was observed | Risk | What is missing | Required fix |
|---|---|---|---|---|---|
| One of the six dimensions | Compliant / Gap / Insufficient information | Specific evidence | Low / Medium / High / Critical | Exact missing control or evidence | Actionable correction |
Rules:
Rules:
Not accurate enters repair.The prototype currently persists:
When the serialized conversation shape changes, increment its storage-key version so incompatible prompts or removed cards are not restored.
Do not mark the full journey as complete until these gaps are implemented and verified.
Before shipping a Finsy change, manually verify:
The development server is host-managed; do not start another one.
Run for broad changes:
pnpm build
git diff --check
The Vite large-chunk notice is currently advisory. Treat build errors, runtime errors, and malformed JSX as failures.
Reviewed evidence:
src/App.tsxsrc/data.tsThis audit covers the prototype. Production APIs, model configuration, authentication, authorization enforcement, telemetry, encryption, and operational support are not available for review and are marked accordingly.
NOT COMPLIANT FOR PRODUCTION RELEASE
The prototype now includes neutral privacy choices, correction undo and history, data-freshness recovery, failed-change recovery, and a minimal-context support request. Production authorization, storage, deletion, telemetry, and support delivery remain unavailable for verification.
| Dimension | Status | What was observed | Risk | What is missing | Required fix |
|---|---|---|---|---|---|
| Transparency | Gap | Finsy explains read-only access, shows payment evidence, and states uncertainty during repair. The current setup does not clearly disclose that Finsy is an AI system. Production tool calls cannot be evaluated. | Medium | Persistent AI disclosure and evidence that consequential production tool use is surfaced. | Add a concise AI disclosure to setup and an accessible “How Finsy works” explanation. Surface consequential tool status without exposing internal chain-of-thought. Mark production tool transparency as unverified until APIs exist. |
| Controllability | Gap | Users explicitly grant read-only access, confirm category changes, and can undo them in chat or from Finsy Home. Declining access and dismissing advice are trust-neutral. Prompt injection is not explicitly tested. | Medium | Production tool-authorization boundaries and prompt-injection tests. | Define strict tool authorization and add adversarial prompt-injection tests before connecting a model or tools. |
| Fairness | Insufficient information | Logic does not visibly branch on identity, but the prototype uses one English-language UK profile, GBP, fixed account types, and one accessibility context. | Medium | Evidence across language, locale, disability, financial vulnerability, role, and identity edge cases. | Test localized currencies and dates, long and translated copy, screen readers, keyboard-only use, zoom, low vision, cognitive load, and vulnerable-user scenarios. Confirm trust scoring behaves consistently across cohorts. |
| Reliability | Gap | Current totals and counts derive from the corrected payment rows shown to the user. Finsy Home shows last-updated status and refresh recovery. Failed corrections preserve the original category and offer Try again, Keep as it was, or Talk to a person. | Medium | Production bank/tool error handling, monitored fallbacks, and automated failure-path evidence. | Connect the prototype states to production error codes, hold proactive alerts when source data is stale, and add automated failure-path tests. |
| Privacy | Gap | Finsy says access is read-only and does not expose credentials. Goals, feed history, corrections, automation timing, and conversation content persist in browser storage. No retention period, user deletion, account isolation, or production encryption boundary is defined. | High | Data-retention policy, deletion and reset control, isolation model, encryption evidence, and production data-minimization review. | Add Clear Finsy data and disconnect/delete controls. Define retention and purpose for every stored field. Namespace data by authenticated user, prevent cross-user reuse, and verify encrypted transport and storage in production. |
| Accountability | Gap | Corrections have working conversational undo. Correction, undo, and support-request records are retained internally rather than exposed as backend activity in the customer interface. | Medium | Confirmed delivery to a production support system, named operational ownership, and protected server-side audit evidence. | Connect support requests to an owned queue, show customer-appropriate delivery status, and store consequential production outcomes with access controls and retention limits. |
Implemented control locations:
TRUST_DELTAS in src/App.tsx.getEffectiveCategoryTotal and CategoryOverviewBubble in src/App.tsx.persistCorrection in src/App.tsx.undoCorrection and the repair Undo change reply.retry_fix, keep_as_was, and talk_to_person.DataStatusCard on returning Finsy Home.handleSupportRequest and the persistent action history.Prototype result: the three reviewed RAI gaps are remediated at prototype level. Production compliance remains blocked by the cross-cutting items above.
| Dimension | Status | What was observed | Risk | What is missing | Required fix |
|---|---|---|---|---|---|
| Transparency | Gap | Updates are stored in the Insights feed, muted mode activates an unread header bell, and the static app Home Finsy banner is replaced with a single-line monthly spending recap. The separate floating alert is removed. | Low | Real operating-system notification disclosure and delivery evidence. | Preserve the exact-topic linkage when production push is connected. |
| Controllability | Gap | The Home recap and muted-update bell open only the matching feed item, and the bell animation respects reduced-motion preferences. | Low | Production notification permission, channel, and device controls. | Connect these choices to explicit operating-system and account-level notification controls. |
| Fairness | Insufficient information | Mobile and desktop receive equivalent alert routes, but localization, assistive technology, and vulnerable-user scenarios are not tested. | Medium | Accessibility and localization evidence for notification surfaces. | Test keyboard focus, screen readers, zoom, long translations, and reduced-distraction contexts. |
| Reliability | Gap | Push and muted paths now use the same persisted feed item and open its matching conversation. Scheduled subscription copy matches the conversation evidence. | Medium | Automated deep-link, duplicate-delivery, stale-data, and offline tests. | Add tests proving each alert ID opens once, marks the correct item read, and remains suppressed when data is stale. |
| Privacy | Gap | Alerts expose a short spending title and total inside the banking app; no lock-screen push content is implemented. | High | A production policy for sensitive notification previews and user-configurable redaction. | Default production lock-screen content to privacy-preserving copy and require explicit opt-in for financial details. |
| Accountability | Gap | Feed item IDs provide a consistent local link between the surfaced alert and conversation, but no production delivery log exists. | Medium | Protected server-side delivery, open, dismissal, and failure records with retention limits. | Add minimal production notification audit events and named operational ownership. |
Notification-path result: the prototype route is consistent and user-controllable. The overall verdict remains NOT COMPLIANT FOR PRODUCTION RELEASE because the existing production blockers remain unresolved.
| Dimension | Status | What was observed | Risk | What is missing | Required fix |
|---|---|---|---|---|---|
| Transparency | Gap | In-progress and resumed setup now shows a clearly labelled Start again action in the Finsy header. | Low | A detailed preview of every field reset by the action. | Keep the action limited to unfinished setup and document its exact production data boundary. |
| Controllability | Gap | The user can cancel pending setup messages and restart consent, notification, account, goal, and trust choices without leaving Finsy. Confirming Delete all goals uses the same full restart instead of leaving the user in an incomplete returning state. | Low | Undo after restarting. | Add a confirmation or short undo window if production setup begins storing consequential server-side choices. |
| Fairness | Insufficient information | The same restart action is available on mobile and desktop, but assistive-technology and localization testing is unavailable. | Medium | Keyboard, screen-reader, zoom, and long-copy evidence. | Include the restart control in accessibility and localization testing. |
| Reliability | Gap | Restart clears setup history and the temporary conversation snapshot before starting a new greeting. Completed setup is excluded. | Medium | Automated tests for restart during delayed messages and every setup step. | Add state-transition tests proving no old timer, reply, account choice, or goal survives restart. |
| Privacy | Gap | Restart removes unfinished setup choices from the shared local state and temporary conversation snapshot without clearing unrelated banking mock data. | Medium | Production deletion guarantees and server-side retention evidence. | Verify deletion across production stores and define retention for abandoned setup records. |
| Accountability | Gap | The restart behavior is deterministic but is not recorded in a protected production audit log. | Low | Operational restart event ownership and retention. | Record a minimal restart event if required for production troubleshooting, without retaining abandoned conversation content. |
Setup-restart result: the prototype adds direct user control over persisted unfinished setup. The overall verdict remains NOT COMPLIANT FOR PRODUCTION RELEASE because existing production blockers remain unresolved.
Update — 2026-11-18: the latest product decision removes Start again, Reset Finsy, and Support from the conversation header. The full reset implementation remains available only through the explicit Delete all goals confirmation path. The 2026-10-16 observations about a persistent header restart action are retained above as historical audit evidence and no longer describe the current UI.
Update — returning Insights now provides a Start setup from scratch action beneath its standard controls. The action requires confirmation, names the Finsy data it resets, preserves banking transactions, and does not restore the removed conversation-header controls.
Scope: deterministic conversational answers for free-text questions about visible balances, payments, spending, categories, goals, trust, alerts, account access, privacy, and Finsy capabilities.
| Dimension | Status | What was observed | Risk | What is missing | Required fix |
|---|---|---|---|---|---|
| Transparency | Compliant | Answers identify visible/demo data, use exact amounts, and state when reliable information is unavailable. Finsy does not claim model knowledge or hidden account access. | Low | Production data-source and tool-call disclosure. | Keep source and freshness disclosure when production data replaces mock data. |
| Controllability | Compliant | Informational answers do not change trust, goals, permissions, categories, or journey steps. Existing prompt choices are restored after the answer, and Stop response cancels a pending answer. Asking to add another account displays the existing per-account selector immediately, but never connects an account automatically. When Finsy cannot answer, the user can choose Customer Support or Keep chatting; setup prompts are restored after the interruption. | Low | Production authorization tests. | Add tests proving questions cannot trigger consequential tools or bypass confirmations. |
| Fairness | Insufficient information | The answer layer does not use identity attributes, but it is English-only and uses UK currency and date formats. | Medium | Localization, accessibility, vulnerable-user, and language testing. | Test translated questions, long text, assistive technology, and non-GBP account contexts. |
| Reliability | Gap | Supported questions are answered from the same visible payment and goal sources used by the UI. Unmatched questions receive an explicit no-guessing response. | Medium | Automated coverage for paraphrases, ambiguous questions, malformed data, and stale data. | Add question-routing and source-consistency tests before connecting production data or an LLM. |
| Privacy | Gap | The layer reads only the prototype state already available to Finsy and does not add new storage fields. Conversation content remains in existing browser persistence. | High | Production retention, encryption, account isolation, and deletion evidence. | Apply the existing privacy release blockers before production use. |
| Accountability | Gap | Answers are deterministic and do not make consequential changes. Unsupported questions offer the existing minimal-context support request, but there is no protected production record of answer sources, failures, or confirmed support delivery. | Medium | Production observability, confirmed support delivery, and named operational ownership. | Record minimal source and failure metadata without storing unnecessary question content, and connect escalations to an owned support queue. |
Natural-question result: the prototype can answer supported free-text questions without derailing the current journey or changing consequential state. The overall verdict remains NOT COMPLIANT FOR PRODUCTION RELEASE because the existing production privacy, authorization, testing, and operational blockers remain unresolved.
Finsy is still a prototype, so I cannot claim it improves spending habits or helps users achieve their financial goals. If the product were used by customers, I would focus on three areas:
Beyond measuring outcomes, I would continue developing and validating several parts of the experience: mapping notification triggers and their timing, ensuring users can connect with customer support at any time, and reviewing error flows to make sure problems are clearly explained and offer a way forward. The agent should also never go silent: even when a conversation is closing, it asks what the user wants to do next, go back to their insights or exit.
The next step is to validate these assumptions with real users and understand whether Finsy genuinely helps them take greater control of their everyday spending.