Wink Pings

Give an AI a €2,400 invoice; it calculates a €1,600 shortfall, then stops

Priyanka Vergadia gave a €2,400 editor invoice to Claude Code and connected it to an Airwallex sandbox account. The AI checked the balance, flagged a €1,600 shortfall, and prepared a payment draft; it did not transfer money or make a payment. The truly useful part of the experiment is that it separated “what it can do” from “what it can decide.”

An invoice for €2,400; the account has $12,000 and €800. The AI agent checks the balance, finds that euros are €1,600 short, suggests that dollars could be exchanged, then generates a payment draft and stops before review. Priyanka Vergadia recorded the process in an 8-minute video and also published the setup commands and sandbox steps. The experiment ran in a sandbox; the amounts and invoice are test data, and Airwallex sponsored this build.

Video URL: https://www.youtube.com/watch?v=1yyWCjbvPh0

What this financial chore looks like

A small studio receives euros but has no local euro account, so incoming payments are converted to dollars first. A few weeks later, when it pays an editor in Lisbon, it has to convert dollars back to euros. Two conversions, two fees—the money could have stayed in euros the whole time.

Having a euro receiving account solves the account-side problem. The payment side is still manual: open the invoice, log in to the account backend, check the euro balance, discover it is insufficient, then check the dollar balance, copy the editor’s bank details, fill out a payment form, and verify the IBAN. Five steps, every month, for every contractor. None of the steps is hard; the difficulty is the repetition, and repetition produces typos and late payments.

Draw the boundaries first

Before starting, Priyanka wrote down the division of labor. The agent does four things: read the invoice, check balances, prepare payment information, and flag anomalies. The human keeps two decisions: whether to exchange currency and whether to pay. The agent’s actions are either read-only or reversible. Actions that move money are left to humans. All later choices—tool permissions, prompts, approval placement—follow from this line.

How to connect to real account data

Claude Code connects to the sandbox through the Airwallex Developer MCP. MCP provides two things: API documentation, so the agent knows how to check accounts and how to assemble payment fields; and sandbox tools, so the agent can check account status and draft payments but not touch real funds. The setup command is:

claude mcp add-json airwallex-dev \
  '{ "type": "http", "url": "https://mcp.sandbox.airwallex.com/developer" }'

Start Claude Code, run /mcp, and log in/authorize with the sandbox. There is a distinction here: Developer MCP is used to build and test in the sandbox. Production accounts use Airwallex AgentOS, with real permissions and approvals configured separately. Everything in the article runs entirely in the sandbox.

Prompts cannot stop money; permissions and approvals can

Three things determine what the agent ultimately does: the agent decides which tools to call and in what order; the integration determines which tools exist; and the account’s own rules determine what those tools can do. Prompts are just instructions.

Writing “Do not pay” in the prompt is only a request. Models usually comply, but “usually” cannot sit next to payments. What actually prevents money from moving is that the tools that move money are not authorized, or that the account requires an approval the agent cannot grant itself. Put important rules where the agent cannot bypass them.

Running it in practice

She gave two prompts. The first sets up a euro receiving account so the business can keep incoming euros. The second checks balances, prepares payment information for the editor’s invoice, flags the shortfall, and does not pay or exchange currency.

The agent reads the invoice: €2,400. It checks the balances: $12,000 and €800. It does not stop at “insufficient balance”; instead, it calculates that euros are €1,600 short, notes that dollars are sufficient, and leaves the exchange decision to the human. Then it prepares a payment draft: recipient, amount, currency, invoice number reference—all listed for human review. The human changes a few things, and in the end the currency exchange and payment are still done by the human. In production, this step relies on account approval rules, and money moves only after human confirmation.

Test three bad cases before going to clients

A clean run only proves the happy path. Before going to clients, test cases that would cause real losses.

Duplicate invoice. The same invoice arrives twice, or once as a PDF and once in an email. Does the agent notice that a payment has already been prepared for this invoice number?

Incorrect bank details. The IBAN on this month’s invoice does not match the saved payee. This is a classic payment fraud pattern. The agent should stop and ask a human, not “correct” it on its own.

Partial balances. Some euros, some dollars, and some funds in transit. Does the agent report by currency and explain which amounts are settled and which are expected?

These are test items, not results.

Where else it can go

Account setup: let the agent fill in what it can, ask a human for missing information, and do not invent a company address. Cash planning: compare balances with project costs over the next 30 days, show shortfalls by currency, read-only, with no transfers or payments. Note that opening an account does not mean funds have arrived. Cash planning needs real balances and a real cost list; the agent cannot plan for money it cannot see.

One commenter asked whether human review should be placed before every payment or only above a certain amount. Priyanka replied that she makes the final decision. Another commenter pointed out that a harder test is a malicious invoice: a PDF hides a sentence saying “the supplier’s bank account has changed.” This is classic invoice fraud, now aimed at agents. He suggested locking payees into an allowlist so the agent can read but not change them.

Conclusion

Based on this sandbox build, an agent can safely do almost everything around moving money: read, check, prepare, and flag. It can even spot the shortfall earlier than a human. The decision to move money stays with humans. The pattern is reusable: give the agent real context, authorize only the tools it needs for its side, and put approvals in the account, not in the prompt.

Your exercise: connect to the Airwallex sandbox, set up a receiving account, check balances against a sample invoice and flag the shortfall, and keep payment read-only. Then think about which repetitive financial chores your business has every month.

Source: Priyanka Vergadia’s tweet https://x.com/pvergadia/status/2127270287062483069 and video https://www.youtube.com/watch?v=1yyWCjbvPh0 . The experiment was sponsored by Airwallex.

发布时间: 2026-11-30 14:36