Skip to content
Pine Computer Request access
Menu

20 / 26 Sales and marketing · Example

Enrich leads

Badges scanned at a trade show become complete CRM rows before anyone picks up the phone.

Illustration of an example: your CRM hands Pine Computer the leads from a trade show. For each one it reads the company’s own website first, so it finds the right company in the Tradeline directory. A rep signs in to Tradeline on the live screen, then each blank in the lead’s row is filled from the member profile, with its source beside it. Ormond Bakeries matches no company in Tradeline and is flagged for a rep.
Who it’s for
CRM software whose users return from trade shows with company names and little else.
Why it’s hard
A name alone is ambiguous, and Tradeline lists three companies called Kestry. Full profiles are for members, and the membership is the sales team’s.
You get back
  • Each lead’s row filled in, with a source beside every field
  • Leads it couldn’t match, flagged for a rep
How it runs, in your product’s code

The computer opens each lead’s own website first, so it knows which Kestry it’s after before it searches Tradeline. Tradeline keeps size and headquarters behind its member sign-in, which a rep enters on the live screen before handing it back. Each blank is then filled from the member profile.

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 each company from the trade show in the Tradeline  directory, and fill in its row with sources.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.