Skip to content
Pine Computer Request access
Menu

13 / 26 Documents and data · Example

Extract statement tables

The bookkeeper gets the quarter’s bank and broker statements as one workbook, every figure traced to its page.

Who it’s for
Bookkeeping software whose users retype bank and broker statements into spreadsheets every quarter.
Why it’s hard
Stonecrop’s holdings table runs across several pages, with column headings only on the first. A wrong digit in a running balance is hard to spot later.
You get back
  • One Excel workbook, with a sheet for each account
  • Any sheet whose total misses the closing balance, flagged
How it runs, in your product’s code

At quarter end, your product hands a computer the list of accounts. Kestrel Bank shows statements to account holders only, so your customer signs in to it. Every table goes into the workbook with its page number, Stonecrop’s multi-page one included. Each sheet’s total is compared with the closing balance printed on its statement.

Ruby · example
computer = pine.create_computer(  location: { country: "US" },  ephemeral: true)session = computer.create_session(name: "main", browser: true) session.agent.run(<<~JOB)  Download this quarter’s statements for each of this business’s  accounts, and put every table in one workbook, a sheet per  account.JOB session.agent.events do |event|  case event.type  when "needs_input"    # Your user takes the controls on the live desktop in your    # product, does what only they can, and hands them back.    session.agent.answer(event.payload["request_id"], "Done.")  when "result"    session.list_artifacts(turn_id: event.turn_id).each do |file|      row.attach(file.filename, session.read_artifact(file.id))    end    break if event.terminal?  endend computer.stop

Build more.
Hand AI the work.

Pine Computer is invite-only while in beta.