Second-Order Automation: Multi-Agent System for Finance Workflow Generation

ramp · Finance · 2026 · source Agentic: yes · promotional bias: med · summary-only (no fetched source) · extracted with prompt 0.5.6 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: finance workflow automation

Ramp's internal finance agent could execute accounting workflows, but each new workflow still required accountants to spend substantial time crafting prompts, preparing files, and debugging instructions.

Constraints:

Architecture

Ramp used a two-agent architecture: an Architect agent watches a screen recording of a human finance workflow, extracts the steps and external-data references, and compiles a reusable Process artifact; a Doer agent then executes that process against uploaded files using spreadsheet tools and validation checks.

Diagram confidence: reconstructed (reconstructed from prose).

flowchart LR
  A["Accountant screen recording"] --> B["Architect agent"]
  B --> C["Gemini 2.5 Pro"]
  B --> D["Reusable Process artifact"]
  D --> E["Doer agent"]
  E --> F["Claude Sonnet 4.5"]
  E --> G["Spreadsheet tools"]
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Accountant screen recording Demonstration input showing the human workflow to be automated. Architect agent
Architect agent Observes the screen recording and converts the workflow into structured instructions. Accountant screen recording, Reusable Process artifact, Gemini 2.5 Pro
Gemini 2.5 Pro Large-context multimodal model used to interpret screen recordings and workflow context. Architect agent
Reusable Process artifact Compiled workflow blueprint that can be executed repeatedly without rewriting prompts. Architect agent, Doer agent
Doer agent Executes Process instructions on uploaded finance files with spreadsheet tools and checks. Reusable Process artifact, Claude Sonnet 4.5, Spreadsheet tools
Claude Sonnet 4.5 Execution model selected for structured spreadsheet workflow completion. Doer agent
Spreadsheet tools Specialized tools for manipulating, validating, and returning finance spreadsheets. Doer agent

Data flow

An accountant records a workflow; the Architect agent processes the screen recording with Gemini 2.5 Pro, identifies workflow steps, external data, file references, and temporal dependencies, and emits a reusable Process specification; the Doer agent uses Claude Sonnet 4.5 plus spreadsheet tools to execute the Process on future files and return the completed spreadsheet.

3 supporting quotes
“The Architect agent processes screen recordings of users completing tasks using Gemini 2.5 Pro with its 1 million token context window.”summary, stated
“The Doer agent uses Claude Sonnet 4.5 and employs specialized tools to navigate and manipulate spreadsheets.”summary, stated
“This compiled Process becomes a blueprint that can be reused for future executions without requiring human intervention to recreate the instructions.”summary, stated

Why this architecture

Ramp separated workflow capture from workflow execution because long-context multimodal understanding and structured spreadsheet execution are different jobs; the Architect creates durable instructions while the Doer runs them repeatedly.

3 supporting quotes
“This separation of concerns addresses different aspects of the automation challenge.”summary, stated
“Gemini 2.5 Pro was chosen for the Architect agent specifically for its 1 million token context window and multimodal capabilities”summary, stated
“Claude Sonnet 4.5 was selected for the Doer agent based on its reported speed, precision, and cost-effectiveness for structured execution tasks.”summary, stated

Models used: Gemini 2.5 Pro · Claude Sonnet 4.5

Scale

Alternatives considered (roads not taken)

Have accountants manually craft prompts for every run

Rejected because: Manual prompt-writing made adoption scale linearly with human prompt-writing capacity.

“each use required 30-45 minutes of careful prompt engineering, file preparation, and error resolution.”summary, stated

Use one model for both video understanding and spreadsheet execution

Rejected because: Ramp used different models for complementary strengths in multimodal context capture and structured execution.

“different models excel at different tasks, and production systems often benefit from using the right model for each component”summary, stated

Treat each automation as a one-off prompt

Rejected because: Reusable Process artifacts let future executions reuse the workflow without recreating instructions.

“Once the Architect agent has watched a workflow and generated a Process, that Process can be executed repeatedly”summary, stated

Patterns

multi-agent-orchestration (agent-architecture)

Ramp split automation generation and automation execution across Architect and Doer agents with different model/tool roles.

“Their solution represents what they term "second-order automation"—automation that creates automation—through a two-agent architecture”summary, stated

tool-use-orchestration (agent-execution)

The Doer agent executes spreadsheet workflows through specialized tools and validation checks rather than freeform text alone.

“employs specialized tools to navigate and manipulate spreadsheets. It receives the process specifications along with uploaded files”summary, stated

model-routing (model-selection)

Different models are used for Architect and Doer roles based on multimodal context-window strength versus execution precision.

“This multi-model approach reflects an important LLMOps principle: different models excel at different tasks, and production systems often benefit from using the right model for each component rather than forcing a single model to handle all responsibilities.”summary, stated

eval-driven-development (evaluation)

Ramp benchmarked the Doer agent on SpreadsheetBench and reported both benchmark accuracy and real-world task speedups.

“For the Doer agent, they conducted testing against SpreadsheetBench using approximately 50 randomly selected tasks with 3 test cases each.”summary, stated

Tradeoffs

Use an Architect/Doer split.

Chose separate agents for workflow capture and workflow execution over one monolithic finance agent prompt.

Rationale: The split lets each model/toolchain handle the part it is strongest at and produces reusable process artifacts.

“The Architect agent serves as a meta-layer that observes human work and translates it into machine-executable instructions, while the Doer agent handles the actual task execution.”summary, stated

Use a screen recording as workflow input.

Chose recording normal accountant work over requiring accountants to write detailed prompts.

Rationale: Recording lowered the barrier for non-technical users to create automations.

“The barrier to automation collapsed from weeks of engineering work to simply recording your screen, making automation accessible to non-technical users.”summary, stated

Gotchas (what bit them)

Automation setup became its own bottleneck.

Root cause: The initial finance agent still required accountants to write detailed prompts, upload context, and resolve errors.

Resolution: Use an Architect agent to derive reusable Process artifacts from screen recordings.

“Accountants needed to become proficient at prompt engineering, describe their processes with precision, upload the correct context files, and resolve errors when the agent didn't understand the task.”summary, stated

Production agents still required substantial engineering iteration.

Root cause: Model capability did not eliminate prompt, tool, and error-handling design work.

Resolution: Ramp iterated on system prompts, tool designs, and error handling over weeks.

“Despite powerful models, we spent weeks iterating on system prompts, tool designs, and error handling. There's no shortcut for testing, debugging, and refinement.”summary, stated

Doer benchmark accuracy was far from perfect.

Root cause: Spreadsheet tasks still failed frequently on some categories despite model/tool improvements.

Resolution: Use the system as acceleration with human intervention when partial completion occurs.

“32.5% accuracy on hard-restriction tasks (compared to GPT-4o's 13.38%).”summary, stated
“Importantly, the text acknowledges that in cases of partial completion, human intervention is still needed, though the agent still provides value by saving time before handoff.”summary, stated

Evaluation

Ramp reported SpreadsheetBench testing for the Doer agent, real-world task speedups, and qualitative assessment of the Architect agent's setup-time reduction.

Metrics: SpreadsheetBench soft-restriction accuracy · SpreadsheetBench hard-restriction accuracy · workflow setup time · task completion time · speedup versus manual work

“The results showed 49.5% accuracy on soft-restriction tasks (compared to OpenAI's reported 45.5%) and 32.5% accuracy on hard-restriction tasks (compared to GPT-4o's 13.38%).”summary, stated
“tasks that previously took 1-2 hours now complete in under 10 minutes, representing a 6-12x speedup.”summary, stated

Outcomes

The main scale shift is organizational: workflow creation no longer scales only with human prompt-writing capacity.

“This transforms the scaling equation: instead of adding workflows linearly with human prompt-writing capacity (first-order automation), adding workflows costs near-zero human time once the Architect agent exists (second-order automation).”summary, stated
“tasks that previously took 1-2 hours now complete in under 10 minutes, representing a 6-12x speedup.”summary, stated