Building Financial AI Agents on AWS and Airwallex

Dan Kim
VP, Product Partnerships, Ecosystem & Developer Experience

TL;DR
Moving financial AI agents beyond chat requires separating model proposals from payment execution. Eight reference kits demonstrate how AWS and Airwallex support this approach. In short: the AI only reads data and proposes actions, the kit’s own rules calculate and check every amount, and higher-risk payments need a person’s sign-off before they go out.
AWS agent infrastructure and controls: Amazon Bedrock AgentCore Runtime hosts isolated agent sessions; Gateway authenticates tool access. Each kit’s own application on AWS provides user sign-in, deterministic calculations, policy checks, approvals, and audit records.
Airwallex financial capabilities: Controlled workflows check multi-currency balances, lock foreign exchange (FX) quotes, execute conversions and payouts, issue virtual cards, and operate across customer Connected Accounts.
Build in the Sandbox now: Deploy the kits into your AWS account to test workflows against the Airwallex Sandbox. Airwallex REST APIs already support production integrations; native user-level permissions and approvals for agent-initiated money movement are planned for 2027.
At the recent Airwallex Agentic Banking Hackathon, we promoted eight reference starter kits built on Amazon Bedrock AgentCore and the Airwallex Sandbox as a starting point for developers. In this post, we walk through the architecture behind those kits and how teams can apply the patterns across treasury, cards, payouts, disputes, and multi-tenant platform workflows.
Finance teams spend hours reading invoices, checking multi-currency balances, matching payout lists, and gathering chargeback evidence. AI agents can handle that preparation, whereas keeping AI in a read-only chat sidebar leaves staff copying and pasting every transaction by hand. Moving beyond a chat sidebar requires application-enforced calculations, spending limits, and human approvals where required by policy, and the Airwallex Sandbox gives builders an environment to test those controls before moving workflows to production.
Airwallex’s payments and foreign exchange (FX) REST APIs run in production today. These Sandbox reference kits use account-level API keys and implement user sign-in, workflow policies, and approvals in the kits’ own application on AWS, ahead of our Q1 2027 rollout of native user-level permissions and approvals for agent-initiated money movement.
Separating AI Prompts from Money Movement
If an engineering team gives a runtime agent broad account credentials and direct tools to move money, a wrong model estimate or a prompt injection inside an uploaded document can trigger a payout. In these eight kits, teams use Amazon Bedrock AgentCore Runtime for managed hosting with isolated agent sessions and AgentCore Gateway to authenticate callers before requests reach the kits’ read and proposal tools, instead of building their own agent-hosting and tool-access infrastructure. The kits’ application code, not the agent, makes the Airwallex REST API calls, including multi-tenant Connected Account operations using the x-on-behalf-of header, FX conversions, dispute responses, and platform transfers.

All eight kits share the same sign-in, tool-access, workflow, approval, and execution controls:
The model reads and proposes: The agent never holds an Airwallex API key. It can only call tools that read data through a per-kit Reader Lambda (an AWS Lambda function) restricted in code to GET data requests, or submit a structured proposal, and no tool input accepts an Airwallex account, tenant, or request ID.
Application code calculates the numbers: When the agent submits a proposal, AWS Step Functions orchestrates Lambda functions that run deterministic Python code to calculate every derived amount (such as conversions and fees), select the Airwallex accounts, and check reserve floors and spending limits. In Kits 2 and 6, the agent also supplies amounts and payee details it reads from documents such as vendor terms or a payroll file.
A second user approves: A second authorized user (usually a human) must approve the computed transaction before it runs, except for low-risk actions within policy limits (such as locking an exchange rate quote or running a treasury plan backed by corroborated cash forecasts). New cards and card limit increases in Kit 2, and every payroll batch in Kit 6, always need a second user’s approval. When a proposal needs approval, the workflow waits for its approvers to sign in with Amazon Cognito and approve or reject the proposal through the kits’ Approval API. If the proposal isn’t approved within the approval window set for that action, it expires and nothing runs.
One adapter executes writes: Every business write to Airwallex runs through the shared Mutation Adapter, which logs each operation in Amazon DynamoDB before calling Airwallex, checks whether an interrupted call succeeded before retrying, and stops for human review if the outcome is unclear.
Least-privilege IAM roles: AWS Identity and Access Management (IAM) roles limit each component to its specific job. The agent, tool Lambdas, and workflow step Lambdas cannot read the Airwallex credentials in AWS Secrets Manager. Each kit’s tool and workflow step roles can invoke only its Reader Lambda, and its workflow step roles can access only that kit’s DynamoDB ledger partitions. Only a kit’s Step Functions state machine role can invoke the Mutation Adapter. In other words: every part of the system can only do its own job, so no single part can both decide on a payment and send it. In this proof of concept, the Reader Lambdas and Mutation Adapter share the Sandbox credential, with GET-only business-data access enforced in Reader code. Production adaptations should give the Reader Lambdas separate scoped read-only keys and restrict the adapter’s credentials to the permissions its operations need.
The result: AI speeds up finance work without ever holding the keys to move money.
Walking Through a Treasury Decision
To see how those controls work in practice, take the first of the eight starter kits, Kit 1 (Adaptive Treasury Controller). In our Sandbox scenario, a company has five obligations across USD, EUR, and GBP due within 72 hours and must keep at least $20,000 USD in reserve. The company holds enough USD for its urgent conversions, and because sample bank and invoice records corroborate an expected $8,000 USD payment from Acme Retail, policy rules allow up to $10,000 USD in FX conversions to run automatically. Then Acme emails to say its payment is delayed.

When a finance user asks the agent to prepare the payment plan, the agent cannot pass dollar amounts or bank account numbers into its tools. It first proposes locking FX quotes. A separate workflow, which moves no money, locks an Airwallex FX quote for each currency the plan must buy. The agent then submits only the IDs of the obligations to pay and cites the line from Acme’s email that contradicts the receipt forecast.
Within the plan’s Step Functions workflow, Python code running in Lambda pulls the verified amounts and beneficiaries from the treasury book, prices the urgent EUR supplier wire (including the SWIFT fee) from the locked quote, and defers lower-priority spend to keep the proposed plan within its $20,000 USD reserve floor. Because Acme’s email contradicts the expected $8,000 USD receipt, the workflow drops the automatic conversion limit to zero and routes the plan to a second authorized user for approval. A default Kit 1 deployment loads two of these five obligations as sample data, and the Kit 1 README explains how to add the rest.
Eight Starter Kits Across Two Operating Models
The eight kits use this same architecture across two operating models on Airwallex: businesses running their own finance operations on a single Airwallex account (Kits 1 to 4), and multi-tenant platforms running embedded financial services across their customers’ Airwallex Connected Accounts (Kits 5 to 8).

Kits 1 to 4: Single-Account Finance Operations
Kit 1: Adaptive Treasury Controller (Multi-Currency Treasury and FX): Plans FX conversions and supplier payouts against wallet reserve floors using locked quotes and corroborated receipt forecasts, as walked through above.
Kit 2: Intent-Bound Purchase Agent (Virtual Cards for Procurement): Compares vendor payment terms (such as an annual discount versus monthly billing) against available cash and issues a virtual card with spending limits tied to that purchase.
Kit 3: Payment Ops Incident Commander (Missing Payout Recovery): Checks the status of delayed or failed supplier transfers and blocks any replacement while the original transfer is still in flight, allowing a replacement behind a duplicate lock only after Airwallex confirms an eligible final failure.
Kit 4: Dispute Response Agent (Merchant Card-Payment Disputes): Evaluates chargeback fees, deadlines, and evidence to recommend whether to accept or challenge a dispute; because the agent has no refund tool and responses require human approval, instructions hidden inside uploaded dispute PDFs cannot directly issue a refund or accept a claim.
Kits 5 to 8: Multi-Tenant Platform Operations (Connected Accounts)
Software platforms, payroll providers, lenders, and marketplaces use Airwallex Connected Accounts to enable end-customers to hold and move funds. The kits map every signed-in user to their permitted tenant. When policy requires an approval for a transfer from a platform, lender, or marketplace balance to a customer, the platform operator approves it, not the customer receiving the funds.
Kit 5: Platform Spend Controller (Connected Account Cards and Bridge Funding): Issues corporate cards on the platform’s customer Connected Accounts and provides short-term bridge transfers from a platform capital ledger when a customer’s deposit is delayed. Any bridge funding would be provided by the platform, not by Airwallex.
Kit 6: Multi-Employer Payroll Executor (Multi-Employer Global Payroll): Prices and funds multi-currency contractor payroll across employers, running an isolated workflow per employer funded from that employer’s Connected Account and verifying the balance change afterward.
Kit 7: Portfolio Lending Agent (Revenue-Based Merchant Advances): Tracks a loan subledger across borrower Connected Accounts to size advances, collect revenue-share repayments, and check the platform’s reserve floor. Advances would be offered by the lending platform under its own licences.
Kit 8: Marketplace Settlement Agent (Marketplace Seller Payouts and Reserves): Tracks a per-seller reserve ledger, raises reserve requirements for sellers with carrier delivery issues, and releases payouts, with operator approval when policy requires it.
Testing in the Sandbox
You can clone the GitHub repository and deploy the reference starter kits into your own AWS account to test the workflows and adapt the policies, tools, and prompts against the Airwallex Sandbox. The kits deploy to the US West (Oregon) Region (us-west-2) by default. They call Claude Sonnet 5 on Amazon Bedrock through the geographic cross-Region inference profile of the Region they’re deployed to, so model requests can be processed in another Region in the same geography. The deployment guide covers other Regions. The resources the kits create incur AWS charges. The kits also set up email alerts on a $100 USD monthly budget in AWS Budgets, and those alerts don’t stop spending.
To run the full scenarios against the live Sandbox, enable Online Payments on your Sandbox account for Kit 4, and ask us to enable Connected Accounts and platform payments for Kits 5 to 8 (send your Sandbox account email and Client ID to [email protected]). Kit 4 has been tested only against a simulated Airwallex API, not the live Sandbox.
Read the deployment guide, the Airwallex Agentic Banking Builder Guide, and the Amazon Bedrock AgentCore documentation to start building.
Disclaimer: The reference starter kits, architecture patterns, and code described in this post are provided strictly "as is" for evaluation and proof-of-concept testing in the Airwallex Sandbox environment. They are not production-ready financial software and do not include the complete security, identity, compliance, accounting, or operational controls required for live money movement. Any person or organization that adapts, deploys, or connects these materials to production systems or live credentials does so at their own risk and assumes full responsibility and liability for securing their infrastructure, authenticating users, verifying transactions, meeting regulatory obligations, and preventing unauthorized or duplicate payments. To the maximum extent permitted by applicable law, Airwallex bears no responsibility or liability for any losses, damages, or unauthorized transactions arising from the use or modification of these reference materials. The starter kits are published by Airwallex and are not an AWS product or service. Product features and timelines described in this post are subject to change. Amazon Web Services, AWS, Amazon Bedrock and related marks are trademarks of Amazon.com, Inc. or its affiliates; other trademarks belong to their respective owners.
The material presented here is for informational purposes only and does not constitute legal, regulatory, taxation, or investment advice. Readers should engage their own advisors or counsel for advice unique to their circumstances.

Dan Kim
VP, Product Partnerships, Ecosystem & Developer Experience
Dan Kim is VP, Product Partnerships, Ecosystem & Developer Experience at Airwallex, where he works at the intersection of global financial infrastructure, developer platforms, and agentic finance. A builder and operator, he previously spent five years at Coinbase and co-authored x402, an internet-native payments standard for APIs, apps, and AI agents. His work focuses on what happens after an agent decides to act: how identity, permissions, payments, and financial execution come together in the real world.


