Skip to content
Pine Computer Request access
Menu

21 / 26 Sales and marketing · Example

Update marketplace listings

Nobody on your user’s team has to retype the spring range into each seller portal.

Illustration of an example: your commerce software hands the spring range to Pine Computer, which updates the listings on Larkspur Market, Harbour Lane and Ferrow in turn. Larkspur asks the shop’s owner to sign in on the live screen; the paused oven glove is left alone; each listing gets a tick for each marketplace.
Who it’s for
Catalogue software whose users sell on marketplaces that give small sellers a portal and no API.
Why it’s hard
On Larkspur a price is live once saved, so a typo is a sale at the wrong price.
You get back
  • A before-and-after record of each change, with the saved page
  • Listings a marketplace paused or refused, with its reason
How it runs, in your product’s code

Larkspur won’t open the edit page until the shop’s owner signs in on the live screen. The computer then finds each listing by its SKU and types in the new price and title from the sheet. After saving, it reads the live listing back against the sheet. A paused listing, like the oat oven glove, is left alone.

Ruby · task-turn excerpt
# Existing backend Computer and session; see setup docs.# saved_message_id is your durable ID for this request.computer.require_agent_protocol!agent = session.agentgoal = <<~JOB  Update the spring range’s prices and titles on each  marketplace from the attached sheet, and save each listing  page.JOBturn = agent.run(goal, idempotency_key: saved_message_id)# Persist turn.turn_id before waiting or leaving this process.turn = agent.wait(turn_id: turn.turn_id, timeout: 30)case turn.statewhen "running", "canceling"  # Schedule another wait for this turn ID.when "needs_input"  # Present turn.question; authorize any desktop handoff.  # When the user replies, answer this turn and save the new ID:  # agent.answer(turn_id: turn.turn_id, answer: reply.text)when "answered"  # Continue with turn.next_turn_id; do not resubmit the goal.when "completed"  turn.result.artifacts.each do |file|    bytes = session.read_file(file.fetch("relative_path"))    # Save bytes in your own file store before stopping.  end  # Verify the outputs and external state against the request.when "failed", "canceled"  # Record the outcome; check side effects before any retry.end

Requires a configured Computer, session and durable request ID. The comments mark application logic you supply; this excerpt does not implement storage, polling or human handoff. Agent integration · Saving outputs

Build more.
Hand AI the work.