A2AFinance AutomationAccounts Payable

Agentic Finance Automation: When Payables Asks Procurement

PG
Patrick Gilberg · Head of Accounts
November 16, 2026
Agentic Finance Automation: When Payables Asks Procurement

The Moment

It is 4:40 on a Thursday afternoon, two days before month-end close, at an illustrative organisation: a regional property manager with 40 buildings, one accounts payable team and a procurement team that runs its own systems. An invoice from an HVAC contractor sits in the ERP queue, scheduled for tomorrow's payment run. The amount looks right. The vendor master record is clean. But the purchase order number on the invoice points to a PO that was amended last week, and nobody in accounts payable can see whether the amended amount was approved or whether the goods receipt was ever posted. I have run AP teams for a long time, and this is the moment where agentic finance automation either earns its place or does not: not the easy invoice, the one that needs an answer from another team before anyone can pay it.

The scene below is one illustration of a pattern, not a measured result. The times and amounts in it are illustrative.

What Used to Happen

In the version of this afternoon I know best, an AP clerk flags the invoice and puts it on hold. She emails the procurement buyer named on the PO. The buyer is at a site walk. She calls the procurement shared inbox's phone line and leaves a message. The ERP shows two PO versions and no way to tell which is current.

The next morning the buyer replies with a screenshot of the amended PO and says the receiving team "should have" posted the goods receipt. The clerk emails the building's facilities coordinator, who confirms the units were installed but did not post the receipt because the delivery came in two shipments. By the time the receipt is posted and the clerk re-keys the corrected PO amount into her match worksheet, the payment run has gone without this invoice. It slips to next week, past month-end close, and lands on the accrual list. Three people spent part of their day on one invoice, and the audit trail is a chain of emails.

That is what happens when the two teams that each own half of a three-way match work in different systems and talk by email.

What Happened Instead

Here is the same afternoon with two agents: the accounts payable agent, which runs as a StudioX mission, and the procurement team's agent, which that team built and runs on a different platform. They work together over the Agent2Agent protocol. If A2A is new to you, What Is the Agent2Agent (A2A) Protocol? covers the basics.

The trigger. The invoice lands in the ERP queue. The AP agent picks it up, reads the invoice lines, checks the vendor against the vendor master, and finds the PO reference. It compares the invoice to the PO it can see and notices the PO has an amendment and no goods receipt posted against the latest version. It cannot complete a three-way match, and procurement, not AP, is the system of record for purchase orders.

Reading the other agent's card. The AP agent reads the procurement agent's Agent Card. The card describes the agent, its endpoint, the authentication it requires, and its skills, including one for confirming the status of a purchase order. It also states that the agent supports streaming. Before this mission ever went live, the AP team had tried the procurement agent from the A2A playground in Studio with sample PO numbers, to see exactly what it returned before relying on it.

Sending the task. Before the request leaves, Agent Policies check it. The policy the finance team wrote allows the AP agent to send PO numbers and invoice references to the procurement agent, and nothing from the vendor's bank details. The allow is logged. The AP agent sends a task with a short text part ("Confirm current PO number, approved amount and goods-received status for this invoice") and a structured data part carrying the PO number, the invoice number, the vendor ID and the invoice amount.

The task's states. The procurement agent accepts the task, and it moves from submitted to working. The AP agent follows the updates as they stream back. Partway through, the task moves to input-required: the PO has two delivery lines and the procurement agent asks which line the invoice covers. The AP agent answers from the invoice line detail, and the task returns to working. Then it completes.

The artifact. What comes back is an artifact with structured data: the current PO number and amendment, the approved amount on the amended PO, and the goods-received status for each line. In this scene, the first line shows received and the second shows received with a quantity that matches the invoice. How the procurement agent got there stays on its side.

What the AP agent did with it. With the PO and goods receipt confirmed, the AP agent runs the three-way match: invoice amount against the approved PO amount, quantities against the goods receipt. In this scene the match passes. Had it failed, the invoice would go on hold, routed to an AP clerk.

Where a person decided. The invoice is above the threshold the finance team set for approval. The mission pauses at the approval step and the controller sees a request with the invoice, the procurement agent's artifact and the match result side by side. She approves. Segregation of duties holds: the agent that prepared the payment did not approve it, and the person who approved it did not prepare it.

The outcome. The invoice joins tomorrow's payment run. The AP clerk is told in a single message that it cleared and why. The run's provenance record shows which agent acted, the task sent to procurement, the artifact that came back, the match result and the controller's approval.

Accounts payable agent StudioX mission Procurement agent Another platform, procurement team Invoice in ERP queue, PO unclear Agent Card: confirm PO status Task: PO, amount, GR? working, input-required, completed Artifact Three-way match Above threshold: controller approves Payment run + provenance record Agent Policies check every call Allow or deny is logged One OpenTelemetry trace per run

Why It Worked: The Architecture of Agentic Finance Automation

Two agents, two teams, two platforms. Accounts payable owns its agent. Procurement owns its agent. Neither had to rebuild on the other's platform or hand over system access, and the AP agent asked the source of truth rather than a stale copy.

The Agent Card. StudioX supports A2A 1.0. Each StudioX assistant and mission is published as an A2A agent with its own Agent Card that describes its capabilities, so compatible agents know what work they can send it. StudioX's A2A gateway is at /a2a. In this story the direction ran the other way: the AP mission read the procurement agent's card to learn what it could ask, what to send and how to authenticate.

The task lifecycle. Because the work was a task with states, the AP agent knew whether procurement was still working, needed more input, or was finished. The input-required step is the one that used to cost a day of email. Here it was a question and an answer between agents.

Policy and approval. Agent Policies, written in Open Policy Agent's Rego and set under Business settings, Security & Access, Agent Policies, checked each call before it ran and logged every allow or deny. The approval step above the threshold kept a person on the decision that moves money.

The provenance record. The W3C PROV record for the run answers the questions an auditor asks at month-end close: who acted, on what data, and what they produced. The OpenTelemetry trace lets IT follow the same run across services in the observability tool they already use.

There are limits worth stating. The procurement agent has to support A2A for this to work; if it does not, the handoff falls back to people. The AP agent can check only whether procurement's answer matches the invoice, not whether it is correct. More on how StudioX runs finance work is on the FinanceX page.

What This Pattern Generalizes To

The same shape, one agent asking another team's agent for a fact it does not own, shows up across finance operations:

  • Vendor master changes. When an invoice carries new remittance details, the AP agent asks the vendor management team's agent to confirm whether the change was verified, and holds the payment until it was.
  • Credit memos. When a vendor issues a credit, the AP agent asks the procurement agent which PO and invoice it applies to before netting it in the payment run.
  • Accrual support at month-end close. The general ledger team's agent asks the procurement agent for open purchase orders with goods receipts posted but no invoice yet, so the accrual list is built from the source.
  • Expense coding. The AP agent asks a budget owner's agent which cost center a non-PO invoice belongs to, and routes it to the budget owner for approval when the agent cannot say.
  • Duplicate checks across entities. In a multi-entity ERP, one entity's AP agent asks another's whether the same invoice number from the same vendor has already been paid.

Each one keeps segregation of duties intact: the agent that asks is not the agent that answers, and the person who approves payment is neither.

Frequently Asked Questions

Does the procurement agent see our invoices or bank details?

It sees only what the AP agent sends in the task. In this story, Agent Policies allowed PO numbers, invoice references, vendor IDs and amounts, and nothing else.

What happens if the three-way match fails?

The invoice goes on hold with the specific mismatch attached, such as an amount above the approved PO amount or a quantity not yet received, and is routed to an AP clerk. The agent does not override the match.

How do we test another team's agent before relying on it?

Try it from the A2A playground in Studio with sample requests and review what it returns, before you build it into a mission. That is what the AP team did here before going live.

Call to Action

If your payment runs keep waiting on answers from procurement, receiving or vendor management, map the handoffs your AP clerks make by email today. Each one is a candidate for an agent-to-agent task with a policy and an approval around it. See how StudioX handles finance operations on the FinanceX page, and talk to us about the first handoff to automate.

Related Reading

Discussion

No comments yet — start the conversation.

Join the discussion

See StudioX run.

Put autonomous AI workers to work on your own systems and knowledge.