// USE CASE · FINANCE

AI finance agents that close the booksand explain every variance.

Most finance teams spend the first ten days of every month chasing reconciliations, then explain a missed forecast in the next board pack with no real attribution. Melaya lets you build a finance crew that reconciles ledgers, attributes variance line by line, monitors treasury concentration, and drafts the board narrative. The agents handle the legwork, controllers approve every posting, and the audit log keeps the receipts.

01
// What breaks today

Manual workflows cost more than the agent does.

Three pains every sales and BD team hits weekly. Each one is what your reps actually complain about, not what a feature page would call them.

  1. 01

    Reconciles NAV by hand across every exchange and custody provider before month close, one CSV export at a time.

  2. 02

    Chases funding-rate costs and slippage that the backtest never priced in, strategy by strategy.

  3. 03

    Rebuilds VaR, CVaR, and stress scenarios in a spreadsheet every time a position changes.

02
// Pipelines you can build

Agent workflows: compose, approve, replay.

Every pipeline below is a shape you wire on the canvas using the crew and tools further down. Not a feature we ship for you, a pattern you configure.

P01

Monthly NAV close and reconciliation

FinancialController pulls exchange balances and book positions, reconciles NAV to the cent, and flags any break over $100 with a documented root cause. CFO reviews the reconciled numbers against the budget before sign-off. The pipeline writes flagged breaks into a workbook and posts the summary to the finance channel.

P02

P&L attribution and funding-cost audit

FPnLAnalyst decomposes each strategy's P&L into alpha, beta, transaction cost, funding, slippage, and carry, and isolates the funding-rate cost that backtests usually under-estimate. Live equity and FX context comes from Alpha Vantage; RiskManager cross-checks any anomaly against the strategy's VaR budget before it reaches the CFO.

P03

Treasury concentration and yield check

TreasuryManager checks single-venue concentration against the 25/30% NAV limits, pulls Treasury Fiscal Data for the macro cash-rate backdrop, and proposes idle-capital yield reallocation with a risk-adjusted comparison. Any rebalance above the CFO's approval threshold pauses the run and waits for a human decision.

P04

Compliance sweep and tax-lot modeling

ComplianceOfficer builds a searchable knowledge base from raw trade logs to check for wash-trading and spoofing patterns, while TaxStrategist models unrealized gains under FIFO, HIFO, and specific-ID lot selection and flags every harvesting opportunity before the deadline. InvestorRelations drafts the one-page LP letter from the same numbers.

P05

Board-ready synthesis, one chat away

ChiefFinancialSynth folds every workstream into a Financial Health Score and a board summary that leads with the worst finding, never buries it under good news. A CFO reaches the same crew from a Melaya Assistant session to ask a follow-up or trigger a re-run when new exchange data lands, no dashboard hopping, and the crew's schedule (cron, webhook, or app event) keeps the report current without a manual kickoff.

03
// The multi-agent crew

Finance & CFO office crew

Real personas from the finance_team crew. Each ships with a tuned system prompt and a default tool allowlist. Swap models per persona on the canvas.

Financial Controller

FinancialController

Owns NAV, daily reconciliation, and audit readiness. Flags every variance over one hundred dollars with a documented root cause inside twenty-four hours.

FP and L Analyst

FPnLAnalyst

Decomposes results into drivers (gross, transaction costs, funding, slippage, carry) and explains any line that drifts more than fifteen percent off plan.

Treasury Manager

TreasuryManager

Tracks cash across banks, custodians, and stablecoin issuers. Enforces concentration limits and keeps six months of operating expense in liquid reserves.

Risk Manager

RiskManager

Calculates VaR and CVaR, runs stress scenarios, and enforces non-negotiable circuit breakers on rolling drawdown.

Compliance Officer

ComplianceOfficer

Watches trading and treasury activity for wash patterns, velocity anomalies, and audit-trail gaps. Tracks license and filing deadlines per jurisdiction.

$

Tax Strategist

TaxStrategist

Models tax position under FIFO, HIFO, and Specific ID, surfaces harvesting opportunities before year-end, and maps jurisdiction exposure for each entity.

Investor Relations

InvestorRelations

Writes the one-page LP letter with benchmarks in line one. States underperformance plainly and benchmarks against the buy-and-hold baseline every time.

$

Chief Financial Officer

CFO

Owns capital allocation, budget review, and a ninety-day rolling cash flow forecast. Approves every deployment over one hundred thousand dollars.

Chief Financial Synthesis

ChiefFinancialSynth

Synthesizes every workstream into a board-ready one-pager with a Financial Health Score and a single strategic action.

04
// Scoped tools

Tool allowlists: only the actions you grant.

Every tool below is a real shared tool from the Melaya bundle. Allowlist per agent; HITL-gate the writes; revoke any of them in one click.

shared/tools/finance/

Pull equities, FX, and macro context for variance attribution and treasury hedging notes. Read-only, no HITL gate needed because nothing writes.

alphavantage_stock_pricealphavantage_stock_historyalphavantage_stock_indicatorsfx_ratealphavantage_macro_dataalphavantage_sector_performance
shared/tools/treasury_tools/

Reach US Treasury fiscal data for runway and cash positioning models. Read-only by design.

treasury_datasettreasury_exchange_ratestreasury_debt_to_penny
shared/tools/database/

Read from the ledger, billing, and treasury databases for close, variance, and audit work. sql_query is scoped per agent and DSN-gated, never granted to drafting personas.

sql_querysql_schemasql_export_csv
shared/tools/msoffice/

Read trial balances and budget workbooks, write the close pack, and produce the board deck. Every write to a shared path is HITL-gated by default.

excel_read_sheetexcel_write_dataexcel_createword_createpptx_create
shared/tools/knowledge/

Build the per-workflow knowledge store from chart of accounts, policy memos, prior board packs, and auditor PBC lists. Powers all three knowledge layers.

build_knowledgebuild_knowledge_from_textbuild_knowledge_from_file
shared/tools/email/

Read auditor and lender threads, prepare LP letters and bank confirmations, and stage every send for the CFO. gmail_send is HITL by default for this crew.

gmail_sendgmail_readgmail_list_labels
shared/tools/core/

General research, structured fetch, and Slack drops for the Monday close digest. pause_for_human is the explicit HITL primitive any workflow can call.

web_searchhttp_requestslack_post_textcalculatepause_for_human
05
// Three knowledge layers

The crew reads what you give it.

Every pipeline ships with three layers of knowledge access. Mix and match per agent on the canvas. No shared vector space with another tenant, no surprise reads, no opaque retrieval.

L1

Static context

includeContext

Per-pipeline documents appended to specific agents' input on every run. The ICP brief, playbook, pricing sheet, or won-deal email corpus. Whatever needs to be there before the agent thinks. You pick which personas get which docs.

L2

RAG retrieval tool

rag_retrieve

A scoped tool granted per-agent. When the agent decides it needs more depth, it queries the workflow's vector store on demand. Same knowledge base as Static context, accessed only when the model asks for it.

L3

Cross-run memory

pipeline_memory

Pipeline-level state that carries from one run to the next. Yesterday's research is in scope for today's follow-up. The crew remembers what it already prospected, what got approved, what was sent. The audit log is the second-order knowledge base.

07
// FAQ

AI agent questions we get every week.

Can AI agents reconcile crypto fund NAV across multiple exchanges automatically?

Yes. The finance_team crew's FinancialController pulls positions from every exchange and custody provider, reconciles NAV to the cent, and flags any variance over $100 with a documented root cause, using real database tools (sql_query, sql_export_csv), not a spreadsheet macro.

How does an agent calculate VaR and run stress tests on a crypto portfolio?

RiskManager computes parametric and historical VaR and CVaR, runs five tail-event stress scenarios, and enforces circuit breakers (a 7-day rolling loss over 8% triggers a 50% position cut). The output is a risk budget table per strategy, not a single portfolio number.

Can a finance agent move capital or approve a trade on its own?

No. Every capital-allocation decision above the CFO's threshold pauses the run and waits for explicit human sign-off through pause_for_human. That gate is platform policy, not prompt wording.

What tax lot selection methods does Melaya's finance crew support?

TaxStrategist models FIFO, HIFO, and specific-ID lot selection side by side, reports the estimated tax liability under each, and flags every tax-loss harvesting opportunity with a dollar-savings estimate before the deadline.

Does the finance crew flag wash trading and compliance risk automatically?

ComplianceOfficer monitors for a self-trade ratio over 2% of volume (wash trading) and an order cancel rate over 85% within 500ms (spoofing), and maintains a complete audit trail: timestamp, strategy, order id, exchange, side, qty, price, fee, venue, responsible person.

Can I run the finance crew on my own machine instead of the cloud sandbox?

Yes. Melaya runs the same crew in the cloud sandbox or on your own machine through the runner, with the same human-approval gates either way.

Build finance & cfo office pipelines on Melaya.

Sandbox tier is free with no card. Join the waitlist and we will email you the moment a slot opens.

← Back to every use case
Join the community
// Cookies
Melaya uses a small set of first-party cookies that are strictly necessary to authenticate you, maintain your session, and protect the platform from abuse. We do not use advertising cookies, cross-site trackers, or third-party analytics by default. The full cookie list is in our Privacy Policy.