Skip to content
Pine Computer Request access
Menu

06 / 26 Work on sites with no API · Example

Track shipments

A held parcel or a missed delivery shows on its order before the customer writes in to ask.

Illustration of an example: in your customer’s order software, three open shipments are tracked at once, each on a computer of its own working its carrier’s site. Ridgeline shows proof of delivery only to its business account, so someone on your customer’s team signs in on its screen and hands it back. Each order gets a plain status: the proof of delivery as a PDF, a new delivery date, and a held parcel flagged with the driver’s note.
Who it’s for
Order-management software whose customers ship with several carriers, each tracked on its own site.
Why it’s hard
One carrier says “Held” where another says “Exception”, and both can mean a parcel waiting at a depot. Ridgeline shows proof of delivery only to a signed-in business account.
You get back
  • Proof of delivery, as a PDF on each delivered order
  • Held parcels and failed deliveries, flagged on the order
How it runs, in your product’s code

Each morning, a computer enters the open tracking numbers on each carrier’s site. The order gets a plain status and date, with the carrier’s own wording beside it. For Ridgeline’s proof of delivery, someone on your customer’s team signs in to the business account. A held parcel is flagged with the driver’s note.

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  Look up every open shipment on its carrier’s site. Note any  change of status or date, and save proof of delivery.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.