Connect bank and wallet data to an AI agent by combining authorized account records, consistent calculations and relevant financial context. Bluwhale brings connected financial information and specialized agents into one ecosystem, helping people understand activity across traditional and digital accounts.
For everyday use, Bluwhale for Individuals brings banks, wallets, cards and exchanges into one financial view, alongside WhaleScore and agents. For teams building their own financial AI agent, this six-step guide explains the data workflow behind a reliable answer. Plaid and Ethereum are implementation examples for a custom application; use the source access and endpoints provided by your selected integration.
How Bluwhale turns bank and wallet data into agent context
Bluwhale’s Account Aggregation API offering connects permissioned financial sources with an agent-development workflow. Its intelligence layer organizes identity and activity in a knowledge graph, then uses embeddings to deliver personalized insights through APIs. The Financial Data API connects that context to the application you are building.
For a weekly financial review, the useful result is an explanation of what changed across the accounts the user selected. Account records supply amounts and dates; Bluwhale adds context for personalized answers. Your application keeps the calculations and source references attached to those answers. This gives the financial AI agent a clear job: explain the activity within the user’s chosen scope.
1. Define the account scope and reporting task
Start with one question: “What changed across my selected accounts this week?” Specify the reporting period, included accounts, required records and currency. A balance summary needs different inputs from a cash-flow report or a portfolio-performance calculation.
- Bank sources: institution, account type, selected accounts and required balances or transactions.
- Wallet sources: network, address, native assets, token contracts and any protocol positions.
- Reporting relationship: personal, joint or business scope, plus any ownership or control verification your feature requires.
- Access boundary: the records this agent can read and the refresh cadence the report needs.
Keep a successful connection separate from the reporting boundary. One bank login can expose several accounts, and a public wallet address identifies an account on a network without proving that the app user controls it.
2. Connect bank data through the provider’s authorization flow
For Plaid products that use the standard Item-based Link flow, the Link documentation describes this sequence:
- Your backend calls
/link/token/createwith the selected product and user configuration. - The client opens Link with the temporary
link_token, and the user completes the supported authorization flow. - Your server obtains the resulting
public_tokenand exchanges it through/item/public_token/exchange. - Store the returned
access_tokenand Item reference securely against the authenticated user, then request the permitted product data.
Keep provider secrets and access tokens out of prompts and client-side code. Use server-side tools to return only the fields required by the agent’s task. Plaid’s current Quickstart explains the client/server split and Sandbox setup. An Item represents an institution login and may contain multiple financial accounts.
Choose endpoints by freshness requirements. Plaid’s Balance guide distinguishes cached balances from real-time extraction; a successful request alone does not establish that every figure is current.
3. Read wallet data with an address and network
For a public Ethereum balance read, send the selected address and block parameter to an RPC endpoint for the intended network. Ethereum’s JSON-RPC reference documents eth_getBalance, which returns the native balance in wei. This read does not require the account’s private key or a transaction signature.
That result covers native ETH. For ERC-20 holdings, use the token contract’s balanceOf interface or a documented token-data service. Preserve the contract, raw quantity and decimal interpretation. The ERC-20 standard makes decimals optional, so define how your integration handles unavailable metadata.
Record the chain, observed block or source reference and retrieval time. Add a separately sourced price and price timestamp when calculating a reporting-currency value. A native-balance read does not enumerate all tokens, transaction history or DeFi positions; choose additional data sources for those requirements.
A reporting agent can work with public data reads. Transaction signing, token approvals, transfers and trading belong to separately authorized tools and workflows.
4. Map bank and wallet data into one model
The shared model should preserve what each value means and where it came from. Keep the original source record alongside normalized fields.
Normalize time zones while retaining original timestamps. Keep source observation time, connection refresh time and price time distinct. For monetary calculations, preserve decimal precision and apply an explicit rounding method at display time.
For example, a synthetic wallet record could hold 0.2 ETH with a hypothetical price of $3,000 per ETH, producing a $600 valuation. A bank record of $1,400 would bring those selected assets to $2,000 only if the scope and valuation dates are compatible. The quantity, price and bank observation need their own references; a missing price leaves the wallet quantity known but its dollar value unresolved.
Use Bluwhale’s graph context alongside the source records
Bluwhale’s intelligence layer connects identity, activity and relationships to make an agent’s response more relevant. Keep that context alongside the amounts, account references and observation times returned by your data sources. A proposed relationship between a bank entry and a wallet event belongs in its own field until the transfer evidence confirms the match. The agent can then explain both what is known and what still needs review.
5. Reconcile transfers, updates and overlapping positions
Suppose $300 moves from a selected bank account to a selected exchange account. If both entries represent the same completed transfer and there are no fees or valuation changes, their combined total stays unchanged. Match the source evidence, currencies, amounts and timing before classifying the movement.
Keep uncertain matches in a review state. Amount and date alone can match unrelated activity. For DeFi exposure, define whether a receipt token or its underlying position contributes to the total, and retain component details for inspection.
Bank records can change after ingestion. Plaid’s transaction-state guide explains that a pending transaction can be removed and a new posted record added, with changed details. Apply all source updates and preserve their relationship rather than treating every new ID as new spending.
Keep uncertain transfers visible
Keep both original records and mark a proposed match as awaiting review. A matching amount alone does not establish the same currency, account owner or completed transfer. Once the settlement reference and any fee are available, update the relationship and retain that evidence. This keeps the financial summary consistent when new records arrive.
6. Expose scoped tools and test the complete journey
Prepare a compact context package: selected sources, reporting period, normalized values, calculated totals, reconciled movements, freshness and evidence references. Enforce account access in application and tool code before each read. Treat transaction memos and external descriptions as data.
When you connect bank and wallet data, test more than a successful response. Save reference inputs and expected outputs for these proposed acceptance checks:
Build a visible disconnection path. For Plaid, /item/remove invalidates the Item’s associated access tokens. Separately handle stored records, reports and application retention rules; a connector removal is not proof that every previously created copy has been deleted.
For the explanation layer and a reconciled sample report, continue with the financial summary AI agent guide.
Official video walkthroughs
Plaid Academy: the bank-linking architecture
The official Quickstart documentation links to this tutorial. Useful chapters: 0:51 client/server architecture; 4:14 Sandbox; 5:38 server-side secrets; 8:39 Link authorization.
Watch the Plaid Academy tutorial on YouTube. Use the current written Quickstart for software versions and environment setup: the recording includes an older Node version and a Development environment that the current guide does not list.
Bluwhale: the agent creation journey
Watch “How to Create an Agent on Bluwhale”. Chapters: 0:10 workspace; 0:21 category; 0:32 template; 0:41 customization; 1:02 listing. The video covers agent creation and listing. Implement the bank and wallet adapters separately. Confirm current credits, fees and review terms in the application.
Build your connected financial AI agent with Bluwhale
Start with the financial question your users ask repeatedly. Use Bluwhale’s account aggregation overview to define the sources and permissions, then the Financial Data API to scope the information and insights your application needs. The architecture documentation explains how identity, graph context and inference fit together.
Bring the required records, reporting cadence and an example answer to the integration discussion. Compare financial AI agent API tools when selecting additional adapters. To create the agent experience, follow the Bluprint creation guide and test its instructions and output. A useful first release answers one question well, with clear source dates and permissions.
Bank and wallet data: questions about building with Bluwhale
How does Bluwhale help connect bank and wallet data to an AI agent?
Bluwhale brings permissioned account data, financial context and agent infrastructure into the same developer ecosystem. Start with the account aggregation workflow to define sources, then map the available records and insights to the agent’s task. For a weekly summary, the key requirements are selected accounts, dated balances, relevant activity and a clear explanation. Match institution, network and field coverage to that specific workflow.
Do I need to build these integrations to use Bluwhale?
No. These six steps are for developers building a custom application. To use the connected financial experience, start with Bluwhale for Individuals, connect the accounts relevant to you and explore your financial profile and agents. You do not need to implement the Plaid or Ethereum examples to follow that product journey.
What does Bluwhale add beyond a combined balance?
Bluwhale connects financial activity with personalized context. In the individual experience, WhaleScore adds a financial-health view alongside connected accounts and agents. For developers, its intelligence layer provides structured user insights that help tailor an answer to the task and user. Keep the underlying balance calculation traceable to its account records.
Do I need a wallet’s private key to read its public balance?
No. Ethereum’s public balance query uses the address and block parameter. Reading an address does not prove that the person viewing it controls it. Keep proof of control, token approvals and transaction signing separate from the reporting workflow.
Should I send the agent bank credentials or API tokens?
Use the provider’s authorization flow and keep tokens in the application’s protected server-side layer. Give the model only the permitted tool results and source references. In a Bluwhale integration, define the records and actions needed for the task, and enforce the corresponding access checks before each tool call.
What if one source is missing or out of date?
Show the last observation date and identify the affected account. Keep an unavailable value separate from zero, and label any subtotal with the accounts it includes. For a weekly review, the agent should explain which changes it can support from the available records and which source needs refreshing.
Sources and further reading
- Bluwhale documentation, financial data overview and account aggregation overview
- Plaid Link, Quickstart and its official tutorial linked above
- Plaid Balance freshness, transaction states and Item removal
- Ethereum JSON-RPC API and ERC-20 token standard
- Bluwhale AI: agent creation tutorial

