Token LabSearch

FINANCIAL AI

AI agents in finance: trading, collections and lending

How financial agents work, where value appears and how to evaluate vendors and results.

Sources & version details
Copper paths connect a market order book, an invoice payment and stepped loan repayments

A financial agent earns its keep by closing a workflow

A news release, customer reply, or income document is rarely sufficient to authorize a financial action. The agent identifies intent, obtains evidence and proposes a step. A policy gate checks authority, state and limits. The broker, invoice ledger or loan core records the result. Every consequential action carries an operation ID and an eventual receipt. After a timeout, look up that ID before retrying. An accepted order can still be unfilled, a promised payment can still be overdue, and an approved loan can still be unfunded.

Evidence → Policy and approval → Ledger result
Reference architecture

Financial mechanics behind the workflow

Trading. A market order prioritizes execution and can fill at several prices. A limit order caps the purchase price or floors the sale price, with a risk of partial or no execution. The quoted spread measures the difference between the best bid and offer. Implementation shortfall compares actual execution with a specified decision benchmark and can include the opportunity cost of unfilled quantity. A trade fill updates exposure immediately; settlement transfers securities and cash later. Most covered US securities moved to a standard T+1 settlement cycle in May 2024. SEC settlement noticehttps://www.sec.gov/newsroom/press-releases/2024-62

Receivables. An aging report groups unpaid invoices by days past due. DSO estimates how long credit sales remain outstanding; a period-end estimate divides ending receivables by period credit sales and multiplies by the days in that period. Cash application links receipts to invoices. A USD 900 receipt for a USD 1,000 invoice leaves USD 100 unresolved until a valid credit memo, approved deduction or further payment explains it. A promise to pay belongs in a follow-up schedule; settlement belongs in the ledger.

Lending. Underwriting estimates repayment ability and loss. PD is the probability of default over a defined horizon, LGD is the share lost conditional on default, and EAD is exposure at default. PD × LGD × EAD is a simplified loss estimate under aligned assumptions. An origination cohort groups loans by booking period. Compare cumulative losses at the same months on book and account for changes in borrower mix.

Trading: research, strategy and execution

Research teams buy coverage and time. A useful assistant compares the latest earnings release with earlier guidance, links each finding to its timestamped primary source and flags missing evidence. Strategy teams buy reproducibility: test on information available at the historical decision time, include delisted assets where relevant, and hold out periods before choosing parameters. Execution desks buy reliability: apply position and order limits outside the model, handle partial fills and verify positions from broker records.

If 200 reports per month fall from 30 to 12 minutes each including review, the team saves 60 hours. A separate strategy earning 12 basis points gross with nine basis points in round-trip costs nets three basis points before capacity effects. At 14 basis points of cost, it loses two. The two experiments measure different outcomes.

Execution economics from quote to settlement

A broker accepts an order, applies account and risk controls, and routes it to an execution venue or another broker. A venue reports individual fills. Clearing determines what each party owes, and settlement moves the cash and securities. Research agents consume timestamped market data and suggest actions. The broker’s execution and position systems own order and fill state. Store the customer order ID, any child order IDs, venue acknowledgements, fills and the final reconciliation separately. After a disconnect, querying the broker’s authoritative record is the primary way to distinguish an unsubmitted order from one with unknown acknowledgement or a partial fill.

Compare like orders before judging a router. For a buy, price improvement is measured relative to the reference offer, whereas effective spread uses the midpoint. If the bid is USD 99.98, the offer USD 100.02, and a buy fills at USD 100.01, it improves on the displayed offer by one cent. The simplified effective spread for that fill is twice the one-cent difference to the USD 100.00 midpoint, or two cents per share. An aggregate report should spell out the actual relevant timestamps and order buckets. The SEC’s 2024 Rule 605 amendments extend and update standardized execution-quality reporting, with a later notice establishing August 1, 2026 as the compliance date. FINRA Rule 5310 separately addresses best execution and regular and rigorous review. Segment comparisons by order type, size, security, session and quote conditions. A router that only fills on favorable paths can look inexpensive if the analysis drops its unfilled orders. SEC Rule 605https://www.sec.gov/files/rules/final/2024/34-99679.pdf · Compliance datehttps://www.sec.gov/rules-regulations/2025/09/disclosure-order-execution-information · FINRA Rule 5310https://www.finra.org/rules-guidance/rulebooks/finra-rules/5310

In a synthetic parent buy of 1,000 shares benchmarked at USD 100.00, suppose 600 shares fill at USD 100.03 and the remaining 400 at USD 100.07. The volume-weighted fill price is USD 100.046, and simplified price-only shortfall is USD 46, or 4.6 basis points of the USD 100,000 benchmark amount. Reviewing only the first fill would miss USD 28 of price difference and the remaining quantity. Keep the original timestamp, benchmark, fill quantities, fees and any unfilled exposure. Firms can monetize research subscriptions, brokerage or infrastructure services, and sometimes routing-related arrangements. Fee and routing incentives belong in the comparison alongside client outcomes. SEC Rule 606 staff FAQhttps://www.sec.gov/rules-regulations/staff-guidance/trading-markets-frequently-asked-questions/faq-rule-606-regulation

Receivables collections: remove the obstacle to payment

Business receivables revolve around invoice matching, purchase orders, disputes and cash application. Consumer delinquency revolves around loan accounts, identity and contact policy. Suppose a buyer says one invoice is paid and the other lacks a purchase order. Match each clause to its invoice. Pause the first reminder, compare ledger and payment records, and route the second invoice to the owner of the missing document. Record promised payments as promises, reconcile actual receipts, and route changes to amount or terms for approval. Duplicate webhook delivery must not duplicate a posted payment.

At USD 12 million of annual credit sales, a five-day DSO improvement releases about USD 164,384 in modeled working capital under steady sales. If half would otherwise be financed at 8%, annual financing savings are about USD 6,575. Measure dispute age, verified receipts, promises kept and misdirected reminders. A fair pilot matches account size and aging, controls for seasonality and keeps a concurrent comparison group. For Quik and InvoiceJourney, resolving “already paid,” “missing PO” and disputed invoices is a concrete starting point.

Receivables allocation is a ledger problem

Cash allocation from invoice, remittance and bank evidence
Cash allocation from invoice, remittance and bank evidence

Small businesses can have a cash timing problem even when customers eventually pay. The Federal Reserve Banks’ 2026 report from the 2025 Small Business Credit Survey found that 50% of employer firms in its financial-challenges results reported uneven cash flow, a category that includes collections. It was a multi-select question, with 6,500 respondents for these items. That figure describes a broad cash-flow challenge; use the underlying survey and its current questionnaire when comparing industries or periods. 2026 Report on Employer Firmshttps://www.fedsmallbusiness.org/-/media/project/clevelandfedtenant/fsbsite/reports/2026/2026-report-on-employer-firms/2026-report-on-employer-firms.pdf

AR works across three records: the amount billed, the customer’s remittance instructions and the cash actually received. A support message may say that an invoice was paid while the bank entry identifies only a payer and an aggregate amount. Use the agent to retrieve invoices, read remittance documents and propose allocations. Validate each candidate against currency, payer, entity and open amount. Record unallocated cash separately if the available evidence permits multiple plausible allocations. Enforce a distinct policy for credit notes, approved deductions and write-offs. Each posted allocation should carry a payment-source ID and a stable operation ID so re-delivered events do not post it twice.

Consider a USD 12,000 invoice. The confirmed receipt allocates USD 8,000, and an authorized credit memo accounts for USD 1,000. The open balance is USD 3,000. If the buyer disputes the remaining amount, keep the balance open, pause the relevant collection sequence and route the dispute to its owner. The workflow’s value is the time from evidence arrival to a correct resolution, including reversals, not the number of reminders sent. At the economics level, separate payment timing from lifetime recovery and count the actual staff time, payment fees, exception reviews and integration costs. A vendor can charge a fixed software subscription, a usage fee or a fee tied to a clearly defined collection outcome. The contract’s definition of a successful resolution should make it possible to audit the fee from the underlying records.

Lending: verify throughput and risk independently

The intake agent structures files and requests missing documents. Verified inputs enter validated underwriting models and lender policy. The disbursement ledger confirms funds sent, and servicing data feeds back delinquency and losses. Store the actual decision reasons and policy version with each decision. Under the US Regulation B interpretation, specific adverse-action reasons must accurately describe the factors the creditor actually considered or scored.

At 10,000 applications per month and a 40% manual follow-up rate, eliminating one-quarter of those follow-ups saves 1,000 cases monthly. At 12 minutes each, that is 200 hours. Separately, USD 10 million of exposure at 4% probability of default and 50% loss given default implies USD 200,000 in simplified expected loss. A one-percentage-point increase adds USD 50,000. Compare matured loan vintages and stratify by risk to prevent fast growth in immature loans from masking losses.

Lending economics depend on three different owners

The originator decides under credit policy and originates the loan. The capital provider supplies or purchases funding exposure, depending on the arrangement. The servicer posts payments, manages delinquency and feeds realized outcomes back to risk teams. These roles can live within one institution or across several contracts. An AI-assisted intake workflow can speed verification and reduce abandonment without changing underwriting. A platform business may earn referral, lending, servicing or other fees and may keep some loans on its balance sheet. As of September 30, 2026, Upstart reported USD 940.7 million of loans on its balance sheet. This is a period-end stock. Its reported originations in dollars and number of originations, commitments and draws describe period activity. Review exposure by funding partner, product and vintage. A vetted decision engine can still face a funding shortfall if one capital purchaser stops buying. Upstart Q3 2026 Form 10-Qhttps://ir.upstart.com/static-files/29e43a32-f6f3-4e83-8704-da6af64587f1

A simplified, one-year illustrative waterfall sets gross interest and fee income at USD 900, funding cost at USD 400, and acquisition and servicing at USD 180. With USD 10,000 of exposure, a 4% default probability and 50% loss given default imply USD 200 expected credit loss. Contribution before overhead and capital charges is USD 120. At 7% default probability under the same assumptions, loss rises to USD 350 and contribution falls to minus USD 30. Real portfolios additionally depend on amortization, prepayment, timing, recoveries and funding terms. Decision models need outcome monitoring by comparable vintage and risk group. A new intake channel can change customer mix, so report application completion separately from mature credit performance.

How AI changes the economics and the work

Trading shifts research from reading to reviewing. Dated source extraction and traceable draft analysis let one analyst monitor more events. The desk still owns exposure and execution. Two analysts consuming the same model summary may overlook the same error. Measure reviewer corrections and missed events before expanding coverage, and have an independent order gateway enforce limits and provide a halt.

Collections shifts from sending reminders to resolving exceptions. An AR specialist can handle stale remittances, partial payments and missing POs by working one queue with invoice-linked evidence. This improves the value of an integration with the ERP and bank feed. Compare an existing rules-based workflow with an assisted workflow on matched accounts. Track verified payment, false reminders and cost per resolved exception together; escalating every difficult case can inflate apparent automation quality while preserving most labor.

Lending shifts work from chasing documents to investigating exceptions. Intake can translate and structure submitted material, flag contradictions and assemble requests for review. Credit policy and approved risk models retain control over approval and pricing. Staff need access to the actual decision factors and their lineage. Track completion, analyst minutes and discrepancies first; compare approvals, losses and outcomes across cohorts only when the evidence has matured. A cheaper intake funnel can change who applies, so historical loss rates may cease to describe the new portfolio.

Vendors, scale and procurement

Company and scopeDisclosed scale
Robinhood Cortex · Q3 2026 · GoldInvestor research and portfolio summaries
5.2M Gold
Alpaca · Series D · 2026-01-14Brokerage APIs and order execution
USD 150M / USD 1.15B valuation
interface.ai · Platform · 2026-11Early delinquency at banks and credit unions
100+ institutions
HighRadius · PlatformEnterprise invoicing, disputes and cash application
1,500+ organizations
BILL · Cumulative TPV · 2026-10-19SMB payments and finance workflows
USD 2T+
Upstart · Q3 2026 · OriginationsCredit underwriting and lender marketplace
USD 4.118B / 574,089 reported activity units
Pagaya · Q3 2026 · Network VolumeEmbedded credit decisions and financing network
USD 3.6B

The numbers describe different scopes. Ask who buys the product, where it reads and writes, who may approve actions, and which ledger can reconstruct the outcome. For a brokerage interface that means orders and positions. For collections it means invoices, correspondence and cash application. For lending it means application provenance, decisions, funding and servicing. Vendor case studies should disclose cohort, observation window and attribution before readers generalize.

Deployment and business validation

Start in shadow mode on recorded cases, then expose reviewed drafts, then permit only explicitly whitelisted actions with written authorization and bounded amounts. Set the outcome denominator to eligible cases at intake. Track assisted decisions, handoffs, rejected suggestions, reopenings and reversals. Where feasible, randomize by customer or account so the baseline and assisted groups can be compared without cross-contamination. Evaluate how stale feeds, unavailable counterparties, duplicate messages and changed data affect reconciliation. Roll back by disabling writes and preserving the audit trail for unresolved operations. For trading, measure execution shortfall and unfilled exposure. For AR, measure correctly allocated cash and false reminders. For lending, compare mature credit outcomes plus application and servicing errors.

The US interagency April 2026 model-risk update, SR 26-2, is most relevant to Fed-supervised banks over USD 30 billion in assets. Its attachment explicitly excludes generative and agentic AI models from its scope and points to institution-level risk management for appropriate controls. Conventional underwriting models remain subject to the guidance’s applicable scope. For third-party dependencies, list the provider, data access, operational fallback, independent verification and contract termination plan. For an adverse credit decision, retain the actual factors considered and the associated policy/model version so the required notice can be supported when applicable. SR 26-2https://www.federalreserve.gov/supervisionreg/srletters/SR2602.pdf · Interagency third-party guidancehttps://www.fdic.gov/news/press-releases/2023/pr23047a.pdf · CFPB Regulation B interpretationhttps://www.consumerfinance.gov/rules-policy/regulations/1002/2026-07-21/interp-9/

Practice and verification

Run the deterministic example with Python 3.10+ and the standard library. Expected outputs are 60 hours, three basis points, USD 164,384 working capital and USD 50,000 added expected loss. Raise transaction costs to 14 basis points, reduce the DSO change to zero, and double the default-rate change. Expected results are minus two basis points, zero dollars and USD 100,000 respectively. These fixtures illustrate sensitivities; production validation requires contemporaneous cohorts and recorded failure outcomes.

The extended fixtures also verify USD 46 execution shortfall, USD 3,000 outstanding AR and USD 120 versus −30 lending contribution.

finance-agent-economics.py

"""Deterministic teaching example, Python 3.10+ standard library."""

def annual_working_capital(credit_sales, days_saved):
    return credit_sales * days_saved / 365


def expected_loss(exposure, probability, loss_given_default):
    return exposure * probability * loss_given_default


def reconcile_open_balance(billed, allocated, authorized_credit):
    if min(billed, allocated, authorized_credit) < 0 or allocated + authorized_credit > billed:
        raise ValueError("allocation and credit must fit the invoice")
    return billed - allocated - authorized_credit


if __name__ == "__main__":
    hours = 200 * (30 - 12) / 60
    capital = annual_working_capital(12_000_000, 5)
    added_loss = expected_loss(10_000_000, .05, .50) - expected_loss(10_000_000, .04, .50)
    assert (hours, 12 - 9, round(capital), round(added_loss)) == (60, 3, 164384, 50000)
    assert annual_working_capital(12_000_000, 0) == 0
    assert 12 - 14 == -2
    assert expected_loss(10_000_000, .06, .50) - expected_loss(10_000_000, .04, .50) == 100000
    print(f"{hours:.0f} h; {12 - 9} bp; USD {capital:.0f}; USD {added_loss:.0f}")

    # Prices are in cents. Keep weighted fills exact until the display boundary.
    total_execution_cents = 600 * 10003 + 400 * 10007
    shortfall_cents = total_execution_cents - 1_000 * 10000
    assert shortfall_cents == 4_600
    assert reconcile_open_balance(12000, 8000, 1000) == 3000
    fixed_contribution = 900 - 400 - 180
    assert fixed_contribution - round(expected_loss(10_000, .04, .50)) == 120
    assert fixed_contribution - round(expected_loss(10_000, .07, .50)) == -30
    print("Deep cases: USD 46 execution shortfall; USD 3000 open AR; USD 120 / -30 loan contribution")

Original interview question 1. What happens after an order timeout? Hint: distinguish submission from fill. One point for identifying ambiguity, three for querying by operation ID, five for covering partial fills, retry safety and reconciliation.

Original interview question 2. Does a five-day DSO reduction add USD 164,384 to profit? Hint: compare balance sheets and income statements. One point for defining DSO, three for working-capital arithmetic, five for modeling actual financing and a matched control.

Original interview question 3. Can faster approval and flat early delinquency justify expansion? Hint: check the observation window. One point for credit risk, three for mature vintages, five for risk matching, decision provenance and a rollback criterion.

Sources and disclosure dates

  1. Robinhood Cortex · Q3 2026 · Goldhttps://investors.robinhood.com/static-files/fd90f575-5b4c-4cde-a16d-d114c920fb6a
  2. Alpaca · Series D · 2026-01-14https://alpaca.markets/blog/alpaca-raises-150-million-at-a-1-15b-valuation-to-build-the-global-standard-for-brokerage-infrastructure/
  3. interface.ai · Platform · 2026-11https://interface.ai/events/reach-2026
  4. HighRadius · Platformhttps://www.highradius.com/about/company-overview/
  5. BILL · Cumulative TPV · 2026-10-19https://investor.bill.com/news/news-details/2026/BILL-Surpasses-2-Trillion-in-Cumulative-Total-Payment-Volume/default.aspx
  6. Upstart · Q3 2026 · Originationshttps://ir.upstart.com/news-releases/news-release-details/upstart-announces-third-quarter-2026-results
  7. Upstart · Q3 2026 Form 10-Q · metric definitionshttps://ir.upstart.com/static-files/29e43a32-f6f3-4e83-8704-da6af64587f1
  8. Pagaya · Q3 2026 · Network Volumehttps://investor.pagaya.com/news-releases/news-release-details/pagaya-reports-third-quarter-2026-results
  9. CFPB · Regulation B · §1002.9https://www.consumerfinance.gov/rules-policy/regulations/1002/2026-07-21/interp-9/
  10. interface.ai · Smart Collections · 2026-02-19https://uat.interface.ai/newsroom/interface-ai-launches-smart-collections-an-agentic-multi-channel-collections-ai-agent-built-for-credit-unions-and-community-banks-to-increase-payments/
  11. HighRadius · Red Bull case study · Vendor reporthttps://pages.highradius.com/hubfs/highradius.com/case-study/content_coe_new/case_studies/redbull_casestudy.pdf
Sources & version details

Videos with a purpose

Watch → explain → implement → test

These are external English-language resources. Captions and availability depend on YouTube. The player loads only after you choose Play; it contacts YouTube, and no experiment inputs are sent.

Your next learning step

Test invalid arguments, expired permission and duplicate retries; inspect final state.

Build / verify → · Continue your route →
Study guide & lesson outlineLEARNING CONTRACT

Understand → implement → investigate

Goal: explain the mechanism in this lesson, reproduce one example and test a failure case. Reading alone does not mark mastery.

Predict, test and keep evidence

Before revealing an answer, predict one result. After the exercise, record the discrepancy and a transfer test. Saved locally across language editions.

Open notebook / export / clear →

The mathematical review scope is recorded per lesson. It does not establish empirical paper reproduction; report suspected errors in your notes. Review scope