Skip to content
Pine Computer Request access
Menu

18 / 26 Assistants that finish the request · Example

Compare and buy

Your assistant finds the cheapest place to buy it, delivery included, and places the order when the person says yes.

Who it’s for
Shopping assistants whose users say “just buy it”.
Why it’s hard
The price on the product page isn’t what you pay. Delivery and discounts only show up at checkout. Stock and delivery dates change through the day, so an old comparison is no use.
You get back
  • Each shop’s total and delivery date, side by side
  • The order confirmation, as a file in the chat

Every shop is checked at the same moment, so no price in the comparison is an hour older than the rest.

A real run: the cheapest day next week for two on the London–Paris train, found on the operator’s own site, and stopped before any passenger or payment details. Cookbook 02: Give it a goal
How it runs, in your product’s code

Your assistant starts a computer for each shop worth checking. Each fills a basket and stops on the last page before payment, so the comparison uses real totals. Then your assistant asks in the chat. The person looks over the cheapest order on the live screen, places it themselves and hands back. The confirmation lands in the conversation, with the comparison beside it.

Ruby · example
computer = pine.create_computer(  location: { country: "US" },  ephemeral: true)session = computer.create_session(name: "main", browser: true) session.agent.run(<<~JOB)  Find the cheapest grey Corva task chair that arrives by  Friday, and buy it once the person approves.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.