Seven agents that replace hours of weekly busywork.
Financial services. A wealth management firm running on a legacy SaaS platform needed AI for grinding work: monthly cashflow reports, bank-statement export across 100+ client accounts, deposits reports, credit-card statement extraction, and reconciliation. We embedded, found the costly workflows, and engineered seven focused agents, each callable from a different surface.
By the numbers
A senior team spending its best hours on tasks that should run themselves.
A wealth management firm administering family-office and high-net-worth client accounts ran on a legacy practice-management SaaS: regulated, mission-critical, and a constant source of repetitive click-work. Every month, partners and staff manually handled the same list of jobs.
- Pulled cashflow reports and statement-of-deposits-and-payments reports per client, on demand, often from a mobile phone
- Downloaded monthly bank statements for every client account (100+) and uploaded them to a separate reconciliation database
- Ran reconciliation reports on a roughly four-hour cadence to keep the accounting system current
- Fished invoices and statements out of a shared mailbox
- Performed standard reconciliation for accounts that fell outside the bank's auto-feed
- Generated and uploaded deposit reports per client engagement
- Mass-downloaded credit-card statements per client, sorted by issuer
All of it was real work that mattered. None of it needed a CPA's brain. The firm wanted these tasks to run themselves, but the legacy SaaS had no proper API, so UI automation was the only path.
Seven specialized agents, each focused on one workflow.
We resisted the temptation to build one big agent that does everything. Each workflow got its own agent: a focused script with its own service port, logs, restart policy, and failure mode. Composable, debuggable, independently scalable. They share a Playwright browser layer that drives the legacy SaaS, a common SMS gateway, and a common deployment harness on Azure.
Text the AI from your phone, get a PDF emailed back
A partner texts the firm's Twilio number: "Run cashflow report for [client] for March." The agent authenticates VIP senders by phone number, logs into the legacy SaaS, runs the named report, downloads the PDF or Excel output, and emails it to the requested recipient. Round-trip under 90 seconds.
Every client statement, one call
One authenticated API call with a date range triggers a mass export. The agent iterates through every client, downloads each statement PDF, sanitizes filenames for Windows compatibility, packages them, and uploads it to the firm's reconciliation database via API.
Runs every four hours, pages a human if anything fails
Triggers the Report Automation Index jobs in the legacy SaaS on a four-hour cron. Date normalization (ISO to MM/DD/YYYY), auto-upload of the resulting ZIP to a central processing API, and a safety lock: if a run fails, the agent emails the team and pauses the schedule until a human clears the lock file. Failure should always be loud.
Pull every attachment from the shared inbox
Microsoft Graph API integration with a dedicated shared mailbox. Recursively extracts attachments from all new mail, including forwarded threads, saves to a structured download folder by sender and date, and feeds them into downstream reconciliation pipelines.
Reconciliation for accounts outside the standard flow
For accounts outside the primary banking partner, the agent logs into the legacy SaaS Standard Bank Recon module, fuzzy-matches bank-account names, inputs end-dates and statement balances, and downloads the generated Excel output. Disabled by default, activated per engagement when a discrepancy needs handling.
Per-client deposits reports, auto-uploaded to production
An authenticated REST endpoint. Accepts a list of clients and a date range, navigates to the Deposits Report page in the legacy SaaS, selects the right output template, downloads per-client Excel files, packages them in the expected folder structure, and POSTs the ZIP to the firm's production API with a reference ID passed through for traceability.
CHASE, AMEX, Citi, Barclays: sorted, named, downloaded
For specified clients and date ranges, the agent navigates to the Image Search interface, queries the Invoices category, uses keyboard-driven navigation to select the right clients (UI flakiness was a real issue here), and filters the results grid for credit-card vendors. It bypasses the visual popup UI and downloads the underlying PDFs directly, faster and more reliable than driving the popup.
One VM, seven services, three callable surfaces.
The harness around the agents: how they run, how they fail safely, and how the team keeps them healthy.
- Browser automation core. Playwright on Chromium drives the legacy SaaS UI. A persistent browser profile per workflow reduces MFA prompts on recurring runs.
- Service surface. Three trigger types: SMS (Twilio webhook), a REST API per workflow, and cron (every 4 hours). Each surface authenticates differently: SMS by phone-number whitelist, REST by shared secret, cron by environment.
- Failure handling. Every workflow writes structured logs. The high-frequency cron has a safety-lock pattern: on failure it emails the team, drops a
.lock_report_failurefile, and refuses to run again until a human clears the lock. Silent failure in financial workflows is unacceptable. - Process management. PM2 supervises long-running services (auto-restart, log rotation, process-list health). For workflows we manage explicitly outside PM2, plain
nohupwith structured log files. - Hosting. Single Azure VM (Ubuntu 22.04 x64), east-US region. Migrated from an earlier Ubuntu ARM64 host that broke under snap-confined Chromium, documented in the team's run-book.
- Connectivity. Locked-down administrative access and a scripted deploy. Health-check endpoints on every service for monitoring.
The team got their week back.
Two shifts mattered most. First, partners no longer spend the late afternoon waiting on a report to compile. They text it from a meeting, and the PDF lands in their inbox before they walk back to their desk. Second, the four-hour reconciliation loop runs without a person sitting in front of the legacy SaaS clicking through screens. The team now reviews exceptions instead of every transaction.
Across the seven workflows, the firm reclaimed multiple full days of senior staff time every week. The new bottleneck is no longer downloading statements. It is deciding what to do with them, which is the work that actually requires their expertise.
One subtle win is worth calling out. The safety-lock pattern on the cron-triggered agent saved the team twice in the first quarter alone. A schema change in the legacy SaaS caused the report to download an empty file. The agent noticed, paused, and emailed the team. Without the lock, four hours later the same broken run would have fired again, and again, and silently corrupted the downstream reconciliation database.
The stack.
Playwright (Chromium), Node.js services, persistent browser profiles, structured logging.
Twilio SMS (webhook), Microsoft Graph API (mailbox), REST APIs per workflow, cron, central upload API.
Azure VM (Ubuntu 22.04 x64), PM2 for long-running services, scripted deploy, health-check endpoints, safety-lock failure handling.
Three lessons from this engagement.
- Browser automation is still the right answer when the target SaaS has no API. Many mission-critical regulated systems do not expose what you need. Playwright with persistent profiles and structured selectors is a respectable production pattern when used with the same rigor as API integration.
- Multiple specialized agents beat one general one. Each agent has one job, one port, one log file, one failure mode. We could have built an operations agent that did everything, and we would still be debugging it.
- Loud failure beats quiet failure. The safety lock is unglamorous, and it is the single feature that made stakeholders comfortable letting the agent run unattended on a 4-hour cron in a financial workflow. Build the failure mode first.
Have a legacy SaaS draining your senior team's time?
If the system runs your business but its only API is log in and click, the workflow can probably still be automated. Bring us the workflow.
Start a conversation