Skip to content
Pine Computer Request access
Menu

16 / 26 Assistants that finish the request · Example

Cancel a subscription

Every “before you go” offer is noted, and the plan is still cancelled before it renews.

Illustration of an example: a person asks your assistant, in its chat, to move their Ironbark membership to off-peak and to cancel Reelhouse and Pantrybox before they renew. A computer works through each provider’s plan page at the same moment, shown on a small live screen in the chat, and declines each offer to stay. Ironbark lets only the member change a plan, so the person takes the controls on the screen, signs in, and hands back. Each confirmation is saved in the chat as a PDF, with the date the change takes effect and the offer that was turned down.
Who it’s for
Assistants whose users ask them to cancel a plan or move to a cheaper one.
Why it’s hard
The cancel button sits behind pages of offers to stay, and one wrong click accepts a discount. A cancellation with no confirmation is hard to dispute when the next charge arrives.
You get back
  • Each provider’s confirmation, with the date it takes effect
  • The offers that were turned down
How it runs, in your product’s code

For each provider, a computer finds the plan page and works through to the change. Ironbark lets only the member change a plan, so your assistant asks in the chat and the person signs in on the screen there. Offers to stay are declined and written down. Each confirmation page is saved as a PDF in the conversation, with the date the change takes effect.

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  Move the gym membership to off-peak, and cancel the streaming  and meal-kit subscriptions before they renew.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.