Skip to content
Pine Computer Request access
Menu

05 / 26 Work on sites with no API · Example

Onboard a vendor

Your product registers your customer on a new buyer’s supplier portal, and stops for them at the terms.

Who it’s for
Billing software whose customers must sign up on each new buyer’s portal before their first invoice is paid.
Why it’s hard
Every buyer wants the same details in a different form, with its own list of documents. Acme’s terms bind your customer on every order, so accepting them is their call.
You get back
  • The portal’s confirmation, with the supplier number Acme assigned
  • Any document still owed, like Acme’s bank letter on letterhead
How it runs, in your product’s code

Your customer adds the buyer and clicks Register. A computer fills in Acme’s form from the company profile and uploads each document to its item on the portal’s list. At the terms, the row turns to “Needs you: terms”, and your customer reads them on the screen beneath the rows and clicks Accept terms.

Ruby · example
computer = pine.create_computer(  location: { country: "US" },  ephemeral: true)session = computer.create_session(name: "main", browser: true) session.agent.run(<<~JOB)  Register Penwright Print Co. as a supplier on Acme’s portal,  from the profile and documents attached. Ask before accepting  the terms.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.