Agent capabilities · They connect

Read your bank feed.

A renewal seen coming, an odd payment pointed out. Monzo only, for now. No money moves without your press.

Who has thisRuthAlex

What you get

Every payment sorted into your own categories. The regular ones recognised as regular, so a renewal is seen before it lands and a payment that is not like the others is pointed out, once.

Once a month Alex tells Ruth how much the household has in hand after what is expected to go out, so the long view of your money starts from a real figure.

Monzo only, for now.

What they will not do

Move money on their ownMoving money to a pot happens on your press, and that can never be raised.
Touch an account at allRuth, who keeps the long view, holds no connection to any account. Balances are told to Ruth, by you or by Alex.
NagAn unusual payment is raised once. If you leave it, it is left.

How it is built

A bank feed is a long list of payments. What makes it useful is noticing shape in it: this one comes every month, that one has gone up, this one is not like the rest. That noticing is done in code, with plain arithmetic, so the same payments always give the same answer. The model is brought in only to talk to you about what the arithmetic found.

Alex is the only agent connected to the bank. Ruth, who thinks about the long term, is told one figure a month and never sees a transaction.

One night’s read

  1. Each night Alex asks the bank for what is new.

    A scheduled job, with a fortnight’s overlap so nothing late is missed · syncMonzoConnection

  2. Payments are fetched a page at a time.

    The bank’s own API, a hundred at a time · api.monzo.com/transactions

  3. Regular payments are found by counting.

    At least three in six months, with steady amounts and steady gaps · detectRecurringPayments

  4. An unusual one is found by comparing.

    More than a quarter away from the last two months · scanAnomalies

  5. Once a month, what is in hand is added up.

    Live balances, less what is expected to go out in the next thirty days · emitBufferState

  6. That one figure is sent to Ruth as a message.

    Checked first that it has not already been sent this month · cashflow_buffer

The parts
Monzo’s APIThe bank’s official way for software to read an account, with your permission.
OAuth 2.0The standard by which you grant that permission without sharing a password.
aha-oauthMy shared library that keeps the grant alive.
Cloudflare cronWhat wakes Alex each night and once a month.
AHAThe protocol that carries the monthly figure from Alex to Ruth.
The words, in plain English
Strong customer authenticationThe bank’s rule that a new connection is approved in its own app. Full history can be read only in the five minutes after.
RecurringA payment that repeats: found by counting, never guessed.
AnomalyA payment unlike your usual ones.
BufferWhat is in hand after the payments already expected.

What is not finished

Monzo onlyNo other bank is connected.
HistoryIf the five-minute window after connecting is missed, older history is not read.
CategoriesA payment’s category is the bank’s own. You can change one; the agents do not sort them from scratch.

Learning from the lived experience

An agent can only be as right as the record they read. When a model says something false the instinct is to blame the model. More often it has read a true-looking line in a store and reported it faithfully. Stale data is harder to spot than a wrong answer, because nothing about it looks wrong.

Alex once told me the bank feed had been dark for three weeks, and that reconnecting it was the one thing to do before a flight. It had been dark for three days, a month earlier. Each time I reconnected the bank a new connection was recorded and the old one was never retired, and one reader went through every one of them.

Because of that, reconnecting the bank now retires the connection it replaces, so there is only ever one live connection to read. And after a fix I check the running system, not the note that says it was fixed. “The feed has been dark since 20 August.” is the full account.

NextKnow the state of your company

What is in the bank, what is owed, and what is due, from your books and the public record.

Know the state of your company
All of themAgent capabilities

Every ability, and who has it.

The agents
Your dataWho holds what

What is held, for how long, and how to take it or delete it.

Privacy notice