Skip to content
Pine Computer Request access
Menu

03 / 26 Work on sites with no API · Example

Post supplier invoices

Your payables software pulls each invoice off the supplier’s portal and matches every line to the purchase order.

Who it’s for
Accounts-payable software whose customers’ suppliers post invoices on a portal and never email them.
Why it’s hard
Few supplier portals offer an export, so each invoice is downloaded by hand. Boxwell billed PO-4471 on two invoices, so neither total matches the order alone.
You get back
  • Each new invoice, as the supplier’s PDF
  • A line-by-line match against its purchase order
  • Any price or quantity that differs, flagged
How it runs, in your product’s code

Every Monday, a computer opens each supplier’s portal and searches by purchase order. Boxwell shows invoices to account holders only, so someone in your customer’s finance team signs in. Each invoice’s lines are compared with the order’s quantities and prices. Invoices that agree turn to Ready to post, and the posting is left to your product.

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 week’s invoices from each supplier’s portal and  match every line to its purchase order. Don’t post anything.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.