What was at stake
In a money app, one invented amount breaks trust in all the others.
Finely has an assistant. You type a question about your money, such as “How much did I spend at Carrefour last month?”, and it answers with a sentence and one or more cards of figures.
A language model is good at understanding the many ways people ask. It can also produce a figure that looks right and is not. In a finance app, that mistake must never reach the screen. Not every iPhone can run Apple’s model, and some people want the reasoning of a larger one.
My responsibility — the whole assistant. Finely is my own app. I designed and built the assistant: what the model is asked, the rules that complete and check each question, the calculations behind every answer, and the checks on what an external model writes.
The model reads, Finely counts
By default, the work is split in two. Apple’s on-device model (Foundation Models, the language model behind Apple Intelligence, which runs on the iPhone itself) only works out what is being asked. Finely’s own code does everything else: it reads the period, checks that the question is about money, and calculates every amount from the transactions stored on the phone. In this mode, nothing leaves the iPhone.
The owner can also connect Claude or OpenAI. That path, and how Finely keeps its figures honest there, is step 5.
1. Choose who reads the question
When the app launches, Finely asks the system whether the on-device model can ever run on this iPhone. If it cannot, plain rules read every question: known phrases in English and French, the shop names in your own transactions and recurring payments, and a list of well-known shops built into the app. Otherwise, Finely checks again at every question, so the model takes over as soon as Apple Intelligence is turned on and ready.
Both readers produce the same thing and hand it to the same next steps, so the figures in an answer never depend on which one read the question. The rules simply understand fewer ways of asking. A control at the top of the chat names the engine: “Apple Intelligence”, “Guided answers” for the rules, or the external model the owner connected.
The chat when it opens, with suggested questions. Tapping a suggestion skips the reading step: it is already a question Finely understands.
2. Ask the model for two things only
Before any model runs, Finely’s rules read what they can by themselves: a holiday such as Christmas, a life event such as a move, a theme that groups categories, a category, and whether the money comes in or goes out. When they recognize a holiday or a theme, that reading wins over the model’s.
Finely then asks the model which of Finely’s kinds of question the message is, and which shop it names, if any.
The reply is not free text. Apple’s framework makes the model fill in a fixed form with two fields: a choice from a list of twenty-one kinds of question, and a shop name. Nineteen of those kinds are questions Finely can answer, such as spending at a shop, what is left this month, or what fixed charges and subscriptions cost together. The last two are “not about money” and “unclear”. The form has no field for a period or an amount.
The model sees the new message, plus a short note of the last three questions and how each was read. That helps a follow-up like “And last year?” stay about Carrefour. It never sees a transaction, a balance, or an earlier answer. Each question starts a new session, so the model remembers nothing on its own. Finely also asks for its single most likely reading, rather than a varied one, so the same sentence gets the same reading.
The reading is cleaned up before anything relies on it:
if the message is longer than 2,000 characters: let the rules read itotherwise: ask the model what kind of question it is, and which shop it names if the model fails for any reason: let the rules read it instead if the model answers "unclear": let the rules have a second look keep the shop only if it is a known shop or a category, or follows "at" or "chez" in the message if a question about a shop is left without one: treat it as unclearNo real money question runs to 2,000 characters, and a longer message could overflow what Apple’s model can take in at once.
3. Complete the question and check it
The period comes from the words, read by Finely. The first version asked the model for the period too, from a short list. Testing on an iPhone showed it guessing, and answers came back for the wrong period. Finely now reads the period itself, with rules that combine a number, a unit, and words like “last” or “this”, in English and French: “last month”, “the last 8 months”, “in March”, “2024”, “since January”, or a range such as “from April to June”. The same question now gets the same period, with or without Apple Intelligence.
Follow-ups keep their subject. When a message names a period but nothing Finely can place, it keeps the subject and the shop of the question before.
Finely decides what is on topic. The model does not always stay on topic, so Finely checks for itself:
if the message asks what to invest in, or what to buy or sell, asks for a joke or a poem, or is about someone else's money: refuseotherwise, if it names no money word, currency sign, category, known shop, holiday, or life event, and it is not a follow-up that still talks about money or only changes the period: refuse4. Calculate from the transactions
Only this step touches money. It reads the same list of past and upcoming money that every Finely screen reads (see The Ledger Behind Finely), and adds it up with exact decimal numbers, so no amount drifts by a cent. For the Carrefour question:
take the money already spent in the period, leaving out upcoming chargeskeep the payments whose label names the shopif none are left: use the whole history instead, and say sototal = the payments, minus any refunds from that shopif the refunds are larger: say so, and give no averageanswer with the total, the number of payments, the average, and the list of payments countedA question about Carrefour also counts payments labelled “Carrefour Market”: Finely reads the shop’s name in each label the same way it reads it in a question.
The sentence around the figures is Finely’s too. It is written in advance, in English and French, with blanks for the figures: “You’ve spent 340,00 € at Carrefour last month.” On this path, apart from the shop’s name, no text from the model reaches the screen. With Hide amounts turned on, the answers hide their figures too.
Some answers add a chart card: income month by month, a period beside the one before it, or a ranking that shows the five biggest groups. Finely picks the chart from the kind of question and draws it from its own totals.
The answer, from a screen recording of Finely made with sample data. Watch the 20-second recording of the question being typed, sped up, then answered in real time. Finely’s rules read this exact sentence as spending at Carrefour, last month, and a test checks it.
5. Or let Claude or OpenAI reason, with Finely’s figures
Apple’s on-device model is small. For deeper questions, the owner can connect Claude Opus 5.5, by Anthropic, or GPT-6.1 Sol, by OpenAI, from the same control, with their own API key. Finely has no server: the iPhone talks to the provider directly.
Consent comes before the key. A sheet lists what is sent: the question and up to three earlier ones, the figures Finely works out, and the label, date, category, and note of the transactions the model asks for. It also lists what is never sent: the profile name, the amount of each transaction unless its label or note states it, and the whole history at once. Nothing is sent before the first question. The key is kept in the iPhone’s Keychain, on this device only, and withdrawing consent erases the key, the consent, and the choice of provider.
The model reads money only through Finely’s tools. It receives the question, the earlier questions but never the earlier answers, today’s date, and four tools. All four only read:
| Tool | What it gives the model |
|---|---|
| Ask Finely | Runs one of Finely’s nineteen answers and returns its sentence and cards |
| List transactions | The label, date, category, and note of matching rows, never their amount |
| Add up transactions | The exact total of rows the model picked from a list |
| Totals by group | Totals by category, shop, subscription, or month, with the change from the period before |
With Hide amounts turned on, every amount a tool returns reaches the model as hidden, and the model is told to say so. Questions about what to invest in, buy, or sell are refused before anything is sent.
Every figure in the reply is checked. Finely records every figure its tools returned and every figure in the question. Each figure the model writes must match one of them:
trusted = every figure the tools returned, and every figure in the questionfor each amount, percentage, or count in the model's reply: if it matches no trusted figure of the same kind, exactly or rounded: ask the model once to rewrite its reply without itif the rewrite still has an unchecked figure: show Finely's own answer instead, and say whyThe reply’s wording is the model’s, labelled with its name. Its cards are always Finely’s: the model can ask for a ranking or a chart through the totals tool, and Finely draws it from its own totals, or refuses a request it cannot draw honestly.
When a question does not fit
| What is asked or happens | What Finely answers |
|---|---|
| Something that is not about money | ”I can only help with the money you track in Finely, things like spending, income, subscriptions and savings.” |
| What to invest in, or what to buy | The same reply, even when the question is full of money words |
| A period Finely cannot pin down, like “next month” or a future date | The answer for its usual period, with a sentence saying so, never a nearby month picked in silence |
| A shop with no spending at all | ”I couldn’t find any spending matching…” with the shop’s name |
| A money question it cannot place | ”I can’t match that to a Finely analysis yet,” and suggestions |
| Claude or OpenAI writes a figure Finely cannot check | ”Claude gave a figure the app couldn’t check. Here is the app’s answer.” |
| Claude or OpenAI cannot be reached, or rejects the key | Finely’s own answer, with a sentence saying why, and a button to change the key when the key is the problem |
Testing what decides the answer
The tests cover everything that decides an answer: the rules, the period reading, the topic check, follow-ups, and the calculations. They use Swift Testing, made-up transactions, and a fixed “today”, so the result never depends on the day they run.
record four Carrefour payments: 40 and 35 last month, 500 this month, 1,000 three years agoask how much was spent at Carrefour last monthcheck that the answer says 75, and not 1,575check that it says "last month"check that it counts 2 payments, not 4The external path is tested against a stand-in provider: the conversation, the tools, the figure check, and how the key is stored. The tests never call a real model, so how well a model reads questions is not covered by automated tests.
Trade-offs
- A fixed list of questions on the iPhone. On the device, the assistant answers nineteen kinds of question, not anything at all. Outside them, it says it cannot match the question and offers suggestions, instead of guessing. With Claude or OpenAI, other questions can be answered through the tools.
- The model can still misread a question. The figures would then be right, but for the wrong question. Answers say in words what they calculated, so a misreading shows.
- An external model trades privacy for depth. It is off until the owner turns it on, needs their consent and their own key, and bills them for each question. Finely checks its figures; the rest of its wording is the model’s, and the reply says which model wrote it.
- Rules need upkeep. Every new way of asking, in either language, can mean a new rule.
History
- Retitled and updated for Claude and OpenAI, figure checks, chart cards, and the latest reading rules.
- Rewritten in plain language.
- Published